Weblate issue - Spaces are autoreplaced
Checklist
- [x] I have used the search function to see if someone else has already submitted the same bug report.
- [x] I will describe the problem with as much detail as possible.
App
Thunderbird for Android
App version
NA
Where did you get the app from?
None
Android version
NA
Device model
No response
Steps to reproduce
For languages that typographically require regular or thin non-breaking spaces, if these are not entered at translation time, Weblate replaces them automatically with the appropriate regular or thin non-breaking spaces. The issue is that Thunderbird Android doesn’t support these regular or thin non-breaking spaces and they are replaced by regular spaces at the production level. For these languages, for months, we have been stuck in a loop where reviewed translation are being unreviewed automatically for strings where we have such spaces. Here are examples for French: https://hosted.weblate.org/translate/tb-android/app-strings/fr/?q=state%3Atranslated&offset=14
Expected behavior
Since it seems that Thunderbird Android cannot support regular or thin non-breaking spaces, the Weblate space autoreplace feature should be disabled so that translations can stay reviewed. Having translations unreviewed let them open to changes by translators who are not reviewers, and poses a problem for the integrity of these unreviewed strings landing in production.
Actual behavior
See above
Logs
No response
Hi @wmontwe when can I expect someone to look into this, and to the other translation-related issues raised in Weblate?
@AO-LocLab After a deeper dive with Weblate, the issue appears to be related to the Punctuation spacing behavior, which is applied by default for French. This can automatically introduce narrow non-breaking spaces (U+202F), potentially leading to differences during repository synchronization and causing reviewed strings to become unreviewed.
As a test, the punctuation spacing behavior has been disabled for the tb-android/app-strings component.
If this does not resolve the issue, we will need to normalize the translations received from Weblate in our pipeline by replacing non-breaking spaces with their explicit Unicode escape sequences (e.g., \u00A0, \u202F) to ensure a stable representation in the repository.
At this point, non-breaking spaces are preserved in the repository, so a sync with Weblate should no longer introduce space-related differences. The remaining requirement is to ensure that Weblate does not apply additional spacing modifications when importing translations from the repository.
@wmontwe Thanks for looking into it, it’s much appreciated as that behaviour was time consuming. I’ll let you know how it goes. The fact that we are not keeping non-breaking spaces in production could result, for languages that e.g., need a regular non-breaking space before : in having the colon pushed to the next line.
@AO-LocLab Did this change help you? We transitioned in the meantime to a new Weblate project and this setting is now enabled for all components.
https://hosted.weblate.org/projects/thunderbird/
Hi @wmontwe Sorry for the late answer. I’m not able to check if the new setting has fixed the issue, as all components have been locked for French on the new project.
Should work now