[GH-ISSUE #71] Unable to change screen name in server settings until remove whole string (video inside) #57

Closed
opened 2026-05-05 04:52:49 -06:00 by gitea-mirror · 6 comments
Owner

Originally created by @Ashark on GitHub (Jun 24, 2018).
Original GitHub issue: https://github.com/debauchee/barrier/issues/71

Operating Systems

Server: Arch Linux
Client: this is interface bug, so client does not matter

Barrier Version

2.1.0

Steps to reproduce bug

  1. Set your system locale to Russian
  2. Open main barrier window, click "Server settings"
  3. Another window will appear with tab "Screens and relations"
  4. Drag a new monitor somewhere to the grid. It will stick to grid with name "Без названия"
  5. Double click just added screen, another window will appear
  6. If you click to text field, it will be unhighlighted. Try to press backspace or some symbols, it wont work
    See video demonstration here: https://youtu.be/U2OYTUyRI1M

Workaround: you can highlight a whole string "Без названия", press Del and then you are able typing screen name

Originally created by @Ashark on GitHub (Jun 24, 2018). Original GitHub issue: https://github.com/debauchee/barrier/issues/71 ### Operating Systems ### Server: Arch Linux Client: this is interface bug, so client does not matter ### Barrier Version ### 2.1.0 ### Steps to reproduce bug ### 0. Set your system locale to Russian 1. Open main barrier window, click "Server settings" 2. Another window will appear with tab "Screens and relations" 3. Drag a new monitor somewhere to the grid. It will stick to grid with name "Без названия" 4. Double click just added screen, another window will appear 5. If you click to text field, it will be unhighlighted. Try to press backspace or some symbols, it wont work See video demonstration here: https://youtu.be/U2OYTUyRI1M Workaround: you can highlight a whole string "Без названия", press Del and then you are able typing screen name
gitea-mirror 2026-05-05 04:52:49 -06:00
Author
Owner

@walker0643 commented on GitHub (Jun 30, 2018):

This is a strange one. I don't see why locale would cause this??

@Ashark, thank you very much for taking the time to submit a video with this bug. It was very helpful :) I have a couple of questions for you to help narrow down the cause...

  • Do any other text boxes/input fields in Barrier or elsewhere on your system exhibit similar problems or is it just the one field?

  • Do you have to have your locale set to Russian to make this bug happen?

  • How did you install Barrier? From a package (which one?) or compiled from source?

  • Which version of Qt do you have installed?

Thanks!

<!-- gh-comment-id:401551596 --> @walker0643 commented on GitHub (Jun 30, 2018): This is a strange one. I don't see why locale would cause this?? @Ashark, thank you very much for taking the time to submit a video with this bug. It was very helpful :) I have a couple of questions for you to help narrow down the cause... - Do any other text boxes/input fields in Barrier or elsewhere on your system exhibit similar problems or is it just the one field? - Do you have to have your locale set to Russian to make this bug happen? - How did you install Barrier? From a package (which one?) or compiled from source? - Which version of Qt do you have installed? Thanks!
Author
Owner

@Ashark commented on GitHub (Jun 30, 2018):

I think this is because of this field has restriction. Because of hostname restrictions, I suggest it only allows latin characters. But because of this field is pre-filled with "Без названия", it do not let you to write further. Space is also restricted, but presented in case of russian locale.
I wated to test it with other languages so I changed directory to src/gui/res/lang/ and run

for file in `ls *.ts`
 do
    echo $file
    cat $file | grep "Unnamed" -A1
done 

Then I got these strings (stripped source and translation tags):

Click to expand
gui_af-ZA.ts
        Unnamed
        
gui_ar.ts
        Unnamed
        غير مسمى
gui_bg-BG.ts
        Unnamed
        Безименен
gui_ca-AD.ts
        Unnamed
        Sense nom
gui_cs-CZ.ts
        Unnamed
        Nepojmenováno
gui_cy.ts
        Unnamed
        Heb ei enwi
gui_da.ts
        Unnamed
        Unavngivet
gui_de.ts
        Unnamed
        Unbenannt
gui_es.ts
        Unnamed
        Sin nombre
gui_et-EE.ts
        Unnamed
        Nimetu
gui_fi.ts
        Unnamed
        Nimetön
gui_fr.ts
        Unnamed
        Sans nom
gui_gl.ts
        Unnamed
        Sen nome
gui_grk.ts
        Unnamed
        
gui_he.ts
        Unnamed
        ללא שם
gui_hi.ts
        Unnamed
        
gui_hr-HR.ts
        Unnamed
        Neimenovan
gui_hu-HU.ts
        Unnamed
        Névtelen
gui_id.ts
        Unnamed
        Tanpa nama
gui_is-IS.ts
        Unnamed
        
gui_it.ts
        Unnamed
        Senza nome
gui_ja-JP.ts
        Unnamed
        名前なし
gui_ko.ts
        Unnamed
        이름없음
gui_lt.ts
        Unnamed
        
gui_lv.ts
        Unnamed
        
gui_mr.ts
        Unnamed
        
gui_nl-NL.ts
        Unnamed
        Naamloos
gui_no.ts
        Unnamed
        Uten navn
gui_pes-IR.ts
        Unnamed
        بی نام
gui_pl-PL.ts
        Unnamed
        Nienazwany
gui_pt-BR.ts
        Unnamed
        Sem nome
gui_pt-PT.ts
        Unnamed
        Sem nome
gui_ro.ts
        Unnamed
        Anonim
gui_ru.ts
        Unnamed
        Без названия
gui_si.ts
        Unnamed
        නිර්නාමික 
gui_sk-SK.ts
        Unnamed
        
gui_sl-SI.ts
        Unnamed
        
gui_sq-AL.ts
        Unnamed
        Paemer
gui_sr.ts
        Unnamed
        
gui_sv.ts
        Unnamed
        Namnlös
gui_th-TH.ts
        Unnamed
        ยังไม่มีชื่อ
gui_tr-TR.ts
        Unnamed
        İsimsiz
gui_uk.ts
        Unnamed
        Без назви
gui_ur.ts
        Unnamed
        
gui_vi.ts
        Unnamed
        
gui_zh-CN.ts
        Unnamed
        未命名
gui_zh-TW.ts
        Unnamed
        未命名

So now we need test this bug with any language which translates "Unnamed" with space and/or some special symbols. Do you know fast way how can I run application with specified language without need to logout? I tryed "LANG=de barrier", but it did not work.

I have installed barrier from aur, currently it is 2.1.1-2. According to system info, I have Qt version 5.11.0

<!-- gh-comment-id:401565658 --> @Ashark commented on GitHub (Jun 30, 2018): I think this is because of this field has restriction. Because of hostname restrictions, I suggest it only allows latin characters. But because of this field is pre-filled with "Без названия", it do not let you to write further. Space is also restricted, but presented in case of russian locale. I wated to test it with other languages so I changed directory to src/gui/res/lang/ and run ``` for file in `ls *.ts` do echo $file cat $file | grep "Unnamed" -A1 done ``` Then I got these strings (stripped source and translation tags): <details> <summary>Click to expand</summary> <pre> gui_af-ZA.ts <source>Unnamed</source> <translation type="unfinished"></translation> gui_ar.ts <source>Unnamed</source> <translation type="finished">غير مسمى</translation> gui_bg-BG.ts <source>Unnamed</source> <translation type="finished">Безименен</translation> gui_ca-AD.ts <source>Unnamed</source> <translation type="finished">Sense nom</translation> gui_cs-CZ.ts <source>Unnamed</source> <translation type="finished">Nepojmenováno</translation> gui_cy.ts <source>Unnamed</source> <translation type="finished">Heb ei enwi</translation> gui_da.ts <source>Unnamed</source> <translation type="finished">Unavngivet</translation> gui_de.ts <source>Unnamed</source> <translation type="finished">Unbenannt</translation> gui_es.ts <source>Unnamed</source> <translation type="finished">Sin nombre</translation> gui_et-EE.ts <source>Unnamed</source> <translation type="finished">Nimetu</translation> gui_fi.ts <source>Unnamed</source> <translation type="finished">Nimetön</translation> gui_fr.ts <source>Unnamed</source> <translation type="finished">Sans nom</translation> gui_gl.ts <source>Unnamed</source> <translation type="finished">Sen nome</translation> gui_grk.ts <source>Unnamed</source> <translation type="unfinished"></translation> gui_he.ts <source>Unnamed</source> <translation type="finished">ללא שם</translation> gui_hi.ts <source>Unnamed</source> <translation type="unfinished"></translation> gui_hr-HR.ts <source>Unnamed</source> <translation type="finished">Neimenovan</translation> gui_hu-HU.ts <source>Unnamed</source> <translation type="finished">Névtelen</translation> gui_id.ts <source>Unnamed</source> <translation type="finished">Tanpa nama</translation> gui_is-IS.ts <source>Unnamed</source> <translation type="unfinished"></translation> gui_it.ts <source>Unnamed</source> <translation type="finished">Senza nome</translation> gui_ja-JP.ts <source>Unnamed</source> <translation type="finished">名前なし</translation> gui_ko.ts <source>Unnamed</source> <translation type="finished">이름없음</translation> gui_lt.ts <source>Unnamed</source> <translation type="unfinished"></translation> gui_lv.ts <source>Unnamed</source> <translation type="unfinished"></translation> gui_mr.ts <source>Unnamed</source> <translation type="unfinished"></translation> gui_nl-NL.ts <source>Unnamed</source> <translation type="finished">Naamloos</translation> gui_no.ts <source>Unnamed</source> <translation type="finished">Uten navn</translation> gui_pes-IR.ts <source>Unnamed</source> <translation type="finished">بی نام</translation> gui_pl-PL.ts <source>Unnamed</source> <translation type="finished">Nienazwany</translation> gui_pt-BR.ts <source>Unnamed</source> <translation type="finished">Sem nome</translation> gui_pt-PT.ts <source>Unnamed</source> <translation type="finished">Sem nome</translation> gui_ro.ts <source>Unnamed</source> <translation type="finished">Anonim</translation> gui_ru.ts <source>Unnamed</source> <translation type="finished">Без названия</translation> gui_si.ts <source>Unnamed</source> <translation type="finished">නිර්නාමික </translation> gui_sk-SK.ts <source>Unnamed</source> <translation type="unfinished"></translation> gui_sl-SI.ts <source>Unnamed</source> <translation type="unfinished"></translation> gui_sq-AL.ts <source>Unnamed</source> <translation type="finished">Paemer</translation> gui_sr.ts <source>Unnamed</source> <translation type="unfinished"></translation> gui_sv.ts <source>Unnamed</source> <translation type="finished">Namnlös</translation> gui_th-TH.ts <source>Unnamed</source> <translation type="finished">ยังไม่มีชื่อ</translation> gui_tr-TR.ts <source>Unnamed</source> <translation type="finished">İsimsiz</translation> gui_uk.ts <source>Unnamed</source> <translation type="finished">Без назви</translation> gui_ur.ts <source>Unnamed</source> <translation type="unfinished"></translation> gui_vi.ts <source>Unnamed</source> <translation type="unfinished"></translation> gui_zh-CN.ts <source>Unnamed</source> <translation type="finished">未命名</translation> gui_zh-TW.ts <source>Unnamed</source> <translation type="finished">未命名</translation> </pre> </details> <br> So now we need test this bug with any language which translates "Unnamed" with space and/or some special symbols. Do you know fast way how can I run application with specified language without need to logout? I tryed "LANG=de barrier", but it did not work. I have installed barrier from aur, currently it is 2.1.1-2. According to system info, I have Qt version 5.11.0
Author
Owner

@walker0643 commented on GitHub (Jun 30, 2018):

@Ashark - can you pull and try again with the patch? Thanks!

<!-- gh-comment-id:401567697 --> @walker0643 commented on GitHub (Jun 30, 2018): @Ashark - can you pull and try again with the patch? Thanks!
Author
Owner

@Ashark commented on GitHub (Jun 30, 2018):

@walker0643 Yes, it is fixed, thank you! Now it is empty line in Russian.
Can you please answer this: Do you know fast way how can I run application with specified language without need to logout? [Here I mean qt applications]. I tryed "LANG=de barrier", but it did not work.

<!-- gh-comment-id:401569406 --> @Ashark commented on GitHub (Jun 30, 2018): @walker0643 Yes, it is fixed, thank you! Now it is empty line in Russian. Can you please answer this: Do you know fast way how can I run application with specified language without need to logout? [Here I mean qt applications]. I tryed "LANG=de barrier", but it did not work.
Author
Owner

@walker0643 commented on GitHub (Jun 30, 2018):

Sorry, @Ashark, I do not. I have never set a non-english locale (nor would I know what to do with it if i did!). I'm glad we got your issue resolved and thank you for being patient.

<!-- gh-comment-id:401570590 --> @walker0643 commented on GitHub (Jun 30, 2018): Sorry, @Ashark, I do not. I have never set a non-english locale (nor would I know what to do with it if i did!). I'm glad we got your issue resolved and thank you for being patient.
Author
Owner

@Ashark commented on GitHub (Jul 2, 2018):

@walker0643 I will just add this for information. I have found a way how to change barrier's language. In this project it is made using qt native way (ts files). Just go to menu Change Settings -> and in Language we can select needed from drop down list. Language changes immidiately, so you do not even need to restart application.

<!-- gh-comment-id:401765064 --> @Ashark commented on GitHub (Jul 2, 2018): @walker0643 I will just add this for information. I have found a way how to change barrier's language. In this project it is made using qt native way (ts files). Just go to menu Change Settings -> and in Language we can select needed from drop down list. Language changes immidiately, so you do not even need to restart application.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/barrier#57
No description provided.