Closed
Bug 1422742
Opened 7 years ago
Closed 7 years ago
[ach] Strings longer than allowed in pipnss.properties
Categories
(Mozilla Localizations :: ach / Acholi, enhancement)
Mozilla Localizations
ach / Acholi
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: flod, Assigned: denish)
Details
pipnss.properties includes a few special strings with hard length limits
https://hg.mozilla.org/l10n/gecko-strings/file/default/security/manager/chrome/pipnss/pipnss.properties#l10
Once converted to UTF-8, the string needs to be shorter than the specified limit (32 or 64 bytes), otherwise it will be truncated in the interface.
There are currently some strings in your localization that exceed this limit:
Fips140TokenDescription (Nyonyo me Gwoko kuc me purugram (FIPS)) is longer than 32 bytes (current length: 38 bytes)
To check the length of a string, you can use the Console in Firefox:
1. Open Tools->Web Developer->Browser Console
2. In the input field at the bottom of the window copy and paste the following code, replacing YOURSTRING with your actual translation
(new TextEncoder('utf-8').encode('YOURSTRING')).length
3. Press enter
The number displayed is the current string length.
One important consideration: it might be impossible for some languages to come up with a reasonable translation within these limits, since the length in bytes does not match the length in character. For example: "cookie" is 6 bytes, "కుకీలు" is 18 bytes.
In this case, it's better to keep the English text than a translation that won't be understandable because of truncations.
Reporter | ||
Comment 1•7 years ago
|
||
Looks like this was fixed
https://hg.mozilla.org/l10n-central/ach/rev/ee96c965c0cf
Assignee: nobody → denish
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•