thunderbird-android icon indicating copy to clipboard operation
thunderbird-android copied to clipboard

Weblate issue - Spaces are autoreplaced

Open AO-L10N opened this issue 9 months ago • 6 comments

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

AO-L10N avatar Feb 18 '26 15:02 AO-L10N

Hi @wmontwe when can I expect someone to look into this, and to the other translation-related issues raised in Weblate?

AO-L10N avatar Feb 25 '26 14:02 AO-L10N

@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 avatar Feb 26 '26 18:02 wmontwe

@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-L10N avatar Feb 26 '26 20:02 AO-L10N

@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/

wmontwe avatar Apr 29 '26 10:04 wmontwe

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.

AO-L10N avatar May 12 '26 21:05 AO-L10N

Should work now

wmontwe avatar Sep 17 '26 14:09 wmontwe