Does weblate enable auto fix? #5001
Replies: 5 comments 10 replies
-
Another issue is this string: https://hosted.weblate.org/translate/mumble/mumble-client/zh_Hans/?checksum=ebd74cc588258530 Each line of the source should have some spaces, but weblate only shows one. |
Beta Was this translation helpful? Give feedback.
-
Hm I actually don't know. I just checked but I could not find anything related in the settings... For your first example though: The unit's label is displayed behind a SpinBox anyways, so there's no need (imo) to add an extra space. For the second example though the matter is of course different... |
Beta Was this translation helpful? Give feedback.
-
I created a ticket on Weblate: WeblateOrg/weblate#6022 |
Beta Was this translation helpful? Give feedback.
-
What’s the source string for that? I feel like this should be handled as a different source string. number + unit formatting should be handled together, with locale settings or a combined string. I can’t find |
Beta Was this translation helpful? Give feedback.
-
The best approach in this is to use a formatting string in the source string. That way the translator can easily see how the string will be used. Without that additional investigation has to be done to understand whether it is appended to the number, with space or without that, or whether that is a text inside some control, where no additional whitespace is needed. Based on the previous discussion, the last option is actually the case here, so the whitespace is probably not really desired... |
Beta Was this translation helpful? Give feedback.
-
I'm talking about this string: https://hosted.weblate.org/translate/mumble/mumble-client/zh_Hans/?checksum=c095acfb2423b8e9
The source is
m
which is a unit, it will be displayed like50m
. In modern Chinese UI design, we prefer to add a space between ASCII and non-ASCII characters to make it prettier, such as50 米
. So the only option for me is translating it to" 米"
(with a prefix space).I cannot add prefix space to this string, weblate is always applying an auto fix to it when I'm saving, thus the translation is changed to
米
without space.There were some other checks that supposed to fail since they were not making any sense, but I was able to skip them after saving.
Beta Was this translation helpful? Give feedback.
All reactions