Closed Bug 1422749 Opened 8 years ago Closed 8 years ago

[ar] Strings longer than allowed in pipnss.properties

Categories

(Mozilla Localizations :: ar / Arabic, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: flod, Assigned: khaled)

Details

Attachments

(2 files)

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: - LibraryDescription (خدمات تعمية PSM داخلية) is longer than 32 bytes (current length: 38 bytes) Strings are available in this file in Pontoon https://pontoon.mozilla.org/ar/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.
Can I drop the “Internal” part from the translation? I think it would be odd to have all strings but this one translated. Alternatively may be I should just untranlsate all these strings, they seem to be rather obscure and I think any one who would understand what this means (I don’t) would be OK with the English text.
I don't know a lot about languages based on a different script like Arabic, but there's no way to abbreviate a word (e.g. internal -> intern.)? I agree that it would be confusing to only have this untranslated, so "PSM Crypto Services" should work if that's the case.
Abbreviations like this are unknown in Arabic AFAIK (abbreviations in general are pretty rare in Arabic). It would be equally as unreadable as truncated string. Where do I see the localized strings in Firefox? The “Device Manager” shows these strings untranslated.
Attached image arabic.png —
Are you using a full build or en-US+langpack? Because it shows up localized for me.
Yes I was using a langpack (testing distribution package). Just tested now with nightly localized build and it is translated indeed. It is a bit surprising that the use of langpack makes such a difference.
To be honest, I'm quite surprised that it affects internal parts of the UI. I was only aware of the profile manager, since it kicks in before preferences are loaded.
I'm going to close this, since the issue is fixed. Feel free to iterate over the string as needed, and thanks for fixing this https://hg.mozilla.org/l10n-central/ar/diff/e43ef66937d7/security/manager/chrome/pipnss/pipnss.properties
Assignee: nobody → khaledhosny
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: