Closed Bug 1422808 Opened 7 years ago Closed 7 years ago

[ne-NP] Strings longer than allowed in pipnss.properties

Categories

(Mozilla Localizations :: ne-NP / Nepali (Nepal), defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: flod, Assigned: nootan.ghimire)

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 क्रिप्टोग्राफिक, कुञ्जी र प्रमाणपत्र सेवाहरू) is longer than 64 bytes (current length: 131 bytes) - Fips140TokenDescription (सफ्टवेयर सेक्युरिटी यन्त्र (FIPS)) is longer than 32 bytes (current length: 81 bytes) - InternalToken (सफ्टवेयर सेक्युरिटी यन्त्र) is longer than 32 bytes (current length: 74 bytes) - LibraryDescription (PSM आन्तरिक गुप्त सेवाहरू) is longer than 32 bytes (current length: 63 bytes) - TokenDescription (सामान्य गोप्य सेवाहरू) is longer than 32 bytes (current length: 59 bytes) - TokenDescription (सामान्य गोप्य सेवाहरू) is longer than 32 bytes (current length: 59 bytes) Strings are available in this file in Pontoon https://pontoon.mozilla.org/ne-NP/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: - Fips140SlotDescription (FIPS 140 क्रिप्टोग्राफिक, कुञ्जी र प्रमाणपत्र सेवाहरू) is longer than 64 bytes (current length: 131 bytes) - Fips140TokenDescription (सफ्टवेयर सेक्युरिटी यन्त्र (FIPS)) is longer than 32 bytes (current length: 81 bytes) - InternalToken (सफ्टवेयर सेक्युरिटी यन्त्र) is longer than 32 bytes (current length: 74 bytes) - LibraryDescription (PSM आन्तरिक गुप्त सेवाहरू) is longer than 32 bytes (current length: 63 bytes) - PrivateTokenDescription (सफ्टवेयर सेक्युरिटी यन्त्र) is longer than 32 bytes (current length: 74 bytes) - TokenDescription (सामान्य गोप्य सेवाहरू) is longer than 32 bytes (current length: 59 bytes)
+ roosan.gm@gmail.com + er.rabirajkhadka@gmail.com Suggested the translation to use English strings because these are fairly technical terms and most of them were transliterated anyways.
Assignee: nobody → nootan.ghimire
Status: NEW → ASSIGNED
Hi @flod , these issues have been fixed. Is there a way to verify the resolution from your side and resolve this ticket? Or can I resolve this myself? Thanks.
Flags: needinfo?(francesco.lodolo)
(In reply to Nootan Ghimire from comment #2) > + roosan.gm@gmail.com > + er.rabirajkhadka@gmail.com > > Suggested the translation to use English strings because these are fairly > technical terms and most of them were transliterated anyways. You need to add them to the CC field (I just did), adding them to a comment is not going to have any effect ;-) I see this landing and I don't have other errors https://hg.mozilla.org/l10n-central/ne-NP/rev/3fffb56fe849 Thanks for fixing it.
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Flags: needinfo?(francesco.lodolo)
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.