[te] Strings longer than allowed in pipnss.properties

RESOLVED FIXED

Status

Mozilla Localizations
te / Telugu
RESOLVED FIXED
2 months ago
2 months ago

People

(Reporter: flod, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 months ago
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: 72 bytes)
- InternalToken (సాఫ్టువేర్ సెక్యూరిటీ డివైజ్) is longer than 32 bytes (current length: 80 bytes)
- LibraryDescription (PSM ఇంటర్నల్ క్రిప్టో సర్వీసెస్) is longer than 32 bytes (current length: 81 bytes)
- SlotDescription (PSM ఇంటర్నల్ క్రిప్టోగ్రఫిక్ సర్వీసెస్) is longer than 64 bytes (current length: 102 bytes)
- TokenDescription (జనరిక్ క్రిప్టో సర్వీసెస్) is longer than 32 bytes (current length: 71 bytes)
- TokenDescription (జనరిక్ క్రిప్టో సర్వీసెస్) is longer than 32 bytes (current length: 71 bytes)


Strings are available in this file in Pontoon
https://pontoon.mozilla.org/te/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

2 months ago
Updated list:
- Fips140SlotDescription (FIPS 140 క్రిప్టోగ్రఫిక్, కీ మరియు ధృవీకరణపత్రం సేవలు) is longer than 64 bytes (current length: 131 bytes)
- Fips140TokenDescription (సాప్టువేర్ రక్షణ పరికరం (FIPS)) is longer than 32 bytes (current length: 72 bytes)
- InternalToken (సాఫ్టువేర్ సెక్యూరిటీ డివైజ్) is longer than 32 bytes (current length: 80 bytes)
- LibraryDescription (PSM ఇంటర్నల్ క్రిప్టో సర్వీసెస్) is longer than 32 bytes (current length: 81 bytes)
- PrivateTokenDescription (సాఫ్టువేర్ సెక్యూరిటీ డివైజ్) is longer than 32 bytes (current length: 80 bytes)
- SlotDescription (PSM ఇంటర్నల్ క్రిప్టోగ్రఫిక్ సర్వీసెస్) is longer than 64 bytes (current length: 102 bytes)
- TokenDescription (జనరిక్ క్రిప్టో సర్వీసెస్) is longer than 32 bytes (current length: 71 bytes)

Comment 2

2 months ago
Fixed the strings in Pontoon.

Tried few variations with translations. There is no way we can meet the length restrictions with Telugu translations. Keeping them in English.
(Reporter)

Comment 3

2 months ago
Thanks, looks good now.
Status: NEW → RESOLVED
Last Resolved: 2 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.