-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extra spaces in page translation #15
Comments
thanks for looking at this. these spaces come from the QML text layouter, as the labels are set to justified text. justification could be changed to right alignment, but that would make the text look bad (ragged right) elsewhere. another option would be to set the word wrapping to "anywhere" but that would introduce breaks in the middle of a word which also looks bad :/ |
does it look better if you remove all the hard line breaks(\n) from the translated strings? |
No, it doesn't. Most extra spaces remain. |
Ah gotta love germanic languages and their looong words ;) I just learned about |
Ah, those two do not work, but @eson57 How does it look if you call it |
See also: https://en.wikipedia.org/wiki/Soft_hyphen See also: #15
This is so weird. I use vim to edit everything, and I can enter the literal Compiling this with As soon as I run Still, a .qm file compiled from that works! Can you reproduce this? I seem to remember you use qtlinguist to edit, apparently that escapes the &somethings; into a literal string, otherwise they would not show up like in your screenshot. |
Ok, I did use qtlinguist so I'll try with lrelease instead., but something came up so I'll have to postpone everything until tomorrow. |
Well, it works like you said, but it does so for the word 'felrapportingsverktyget' only. I can't put an hyphen on all to long words because it violates the Swedish writing rules, and that would look really bad. I took a look at some other translations that I made, and I think they are all using right alignment, so maybe you should do it anyway? |
Hi,
Working on Swedish translation I found these extra spaces in translation. Don't know if it's a bug in your code or in Qt-Linguist compiler/lrelease.
The text was updated successfully, but these errors were encountered: