Closed Bug 1422766 Opened 8 years ago Closed 8 years ago

[es-CL] Strings longer than allowed in pipnss.properties

Categories

(Mozilla Localizations :: es-CL / Spanish (Chile), defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: flod, Assigned: ravmn)

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: - Fips140TokenDescription (Dispositivo de seguridad de software (FIPS)) is longer than 32 bytes (current length: 43 bytes) - InternalToken (Dispositivo de software de seguridad) is longer than 32 bytes (current length: 36 bytes) - LibraryDescription (Servicios de criptografía interna PSM) is longer than 32 bytes (current length: 38 bytes) - TokenDescription (Servicios de criptografía genéricos) is longer than 32 bytes (current length: 37 bytes) - TokenDescription (Servicios de criptografía genéricos) is longer than 32 bytes (current length: 37 bytes) Strings are available in this file in Pontoon https://pontoon.mozilla.org/es-CL/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.
Updated list: - Fips140TokenDescription (Dispositivo de seguridad de software (FIPS)) is longer than 32 bytes (current length: 43 bytes) - InternalToken (Dispositivo de software de seguridad) is longer than 32 bytes (current length: 36 bytes) - LibraryDescription (Servicios de criptografía interna PSM) is longer than 32 bytes (current length: 38 bytes) - PrivateTokenDescription (Dispositivo de software de seguridad) is longer than 32 bytes (current length: 36 bytes) - TokenDescription (Servicios de criptografía genéricos) is longer than 32 bytes (current length: 37 bytes)
Richard, is there anyone keeping an eye on bugs for es-CL? https://mozilla-l10n.github.io/localizer-documentation/misc/bugzilla_l10n.html
Flags: needinfo?(ravmn)
Hi Flod, this bug was under the radar for me. I think I'm the only one that have bugzilla set to send me a mail for this component. I sent the new translations via pontoon some minutes ago, please check. Thanks!
Flags: needinfo?(ravmn) → needinfo?(francesco.lodolo)
(In reply to Richard von Moltke Necochea from comment #3) > Hi Flod, > this bug was under the radar for me. I think I'm the only one that have > bugzilla set to send me a mail for this component. It would be great to have at least another person looking at the component. In the meantime, I can confirm that the problem is fixed. https://hg.mozilla.org/l10n-central/es-CL/rev/d38e66c7facf
Assignee: nobody → ravmn
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(francesco.lodolo)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.