Closed
Bug 1422760
Opened 8 years ago
Closed 7 years ago
[cak] Strings longer than allowed in pipnss.properties
Categories
(Mozilla Localizations :: cak / Kaqchikel, defect)
Mozilla Localizations
cak / Kaqchikel
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: flod, Assigned: ajtzibsyani)
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 and need to be fixed:
- Fips140SlotDescription (FIPS 140 Chib'äl taq samaj, richin ewan tzij chuqa' ruwujil b'i'aj) is longer than 64 bytes (current length: 67 bytes)
- Fips140TokenDescription (Kema' okisaxel richin jikomal (FIPS)) is longer than 32 bytes (current length: 36 bytes)
- LibraryDescription (PSM aj rupam chib'alil taq ruk'u'x samja) is longer than 32 bytes (current length: 40 bytes)
Strings are available in this file in Pontoon
https://pontoon.mozilla.org/cak/firefox/security/manager/chrome/pipnss/pipnss.properties/
***
HOW TO FIX THIS BUG
To check the length of a string, you can use the Browser 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, keeping the surrounding quotes
(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 characters. 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
|
||
Juan, is there anyone keeping an eye on bugs for cak?
https://mozilla-l10n.github.io/localizer-documentation/misc/bugzilla_l10n.html
Flags: needinfo?(ajtzibsyani)
| Assignee | ||
Comment 2•7 years ago
|
||
Hi Flod
I just made the changes in the three chains, it is very true that there is a bit limit, however I never read the comments of each of the channels, I'm sorry. How can I check other chains with similar case?
Flags: needinfo?(ajtzibsyani)
| Reporter | ||
Comment 3•7 years ago
|
||
(In reply to Juan Ajsivinac from comment #2)
> Hi Flod
> I just made the changes in the three chains, it is very true that there is a
> bit limit, however I never read the comments of each of the channels, I'm
> sorry. How can I check other chains with similar case?
These are the only strings with this kind of limitations. We hope to have checks in the future.
The problem looks fixed, thanks!
https://hg.mozilla.org/l10n-central/cak/rev/a4fa0435f8c8
P.S. please make that someone in the team is receiving emails for bugs filed in cak
Assignee: nobody → ajtzibsyani
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
•