Closed Bug 1157246 Opened 11 years ago Closed 11 years ago

Firefox for iOS (Build 8-16): authentication and save password dialogs are not fully localized

Categories

(Firefox for iOS :: Browser, defect)

Other
iOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1168537
Tracking Status
fennec + ---

People

(Reporter: flod, Assigned: st3fan)

References

Details

(Whiteboard: noteworthy)

Attachments

(1 file)

Attached image Authentication dialog
Based on the fact that the dialog is partially localized, I assume build 8 picked up my strings (committed in r140377). But the main string is not localized in-product http://viewvc.svn.mozilla.org/vc/projects/l10n-misc/trunk/firefox-ios/it/firefox-ios.xliff?revision=140518&view=markup#l82
Still there in build 9 on testflight.
tracking-fennec: --- → ?
Summary: Firefox for iOS (Build 8): authentication dialog is not fully localized → Firefox for iOS (Build 8-9): authentication dialog is not fully localized
tracking-fennec: ? → +
Summary: Firefox for iOS (Build 8-9): authentication dialog is not fully localized → Firefox for iOS (Build 8-13): authentication dialog is not fully localized
See also Save password dialog with the same issue https://bugzilla.mozilla.org/attachment.cgi?id=8595984
Summary: Firefox for iOS (Build 8-13): authentication dialog is not fully localized → Firefox for iOS (Build 8-13): authentication and save password dialogs are not fully localized
Summary: Firefox for iOS (Build 8-13): authentication and save password dialogs are not fully localized → Firefox for iOS (Build 8-14): authentication and save password dialogs are not fully localized
Summary: Firefox for iOS (Build 8-14): authentication and save password dialogs are not fully localized → Firefox for iOS (Build 8-15): authentication and save password dialogs are not fully localized
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Summary: Firefox for iOS (Build 8-15): authentication and save password dialogs are not fully localized → Firefox for iOS (Build 8-16): authentication and save password dialogs are not fully localized
I'm confused. Those strings are obviously localized in code: https://github.com/mozilla/firefox-ios/blob/master/Client/Frontend/Browser/PasswordHelper.swift#L230 They aren't being picked up and used? Stefan, do you have any ideas why this would happen?
Flags: needinfo?(sarentz)
I see the strings for this in: <file original="Client/Localizable.strings" source-language="en" datatype="plaintext" target-language="en" ... <trans-unit id="A username and password are being requested by %@. The site says: %@"> <source>A username and password are being requested by %1$@. The site says: %2$@</source> <target>A username and password are being requested by %1$@. The site says: %2$@</target> <note>Authentication prompt message with a realm. First parameter is the hostname. Second is the realm string</note> </trans-unit> Maybe they were added after the last time we did a string export?
Flags: needinfo?(sarentz)
(In reply to Stefan Arentz [:st3fan] from comment #4) > Maybe they were added after the last time we did a string export? This started on build 8, I never saw that dialog localized (note that my file is up to date with iOS code, not with the extracted en-US strings). Issue is somewhere in the code.
Assignee: nobody → sarentz
I see the same with my locale set to Dutch. I'll investigate why this is happening.
The problem is in the XLIFF. I am not sure yet if this is an export problem of Xcode or if this is something our export-post-processing scrripts are doing. In SVN I see this: 81 <trans-unit id="A username and password are being requested by %@. The site says: %@"> 82 <source>A username and password are being requested by %1$@. The site says: %2$@</source> 83 <target>Sono stati richiesti un nome utente e una password da %1$@. Il sito riporta: %2$@</target> 84 <note>Authentication prompt message with a realm. First parameter is the hostname. Second is the realm string</note> 85 </trans-unit> But that should be: 81 <trans-unit id="A username and password are being requested by %@. The site says: %@"> 82 <source>A username and password are being requested by %@. The site says: %@</source> 83 <target>Sono stati richiesti un nome utente e una password da %1$@. Il sito riporta: %2$@</target> 84 <note>Authentication prompt message with a realm. First parameter is the hostname. Second is the realm string</note> 85 </trans-unit> The <source> must not have positional string arguments.
Another option is that the culprit is xliff-to-strings.py, where we write out the name/value pairs as: "trans-unit.source" = "trans-unit-destination"; But I think that actually should be: "trans-unit[id]" = "trans-unit.destination";
As commented on IRC, the problem is not the extraction, since the file comes out that way with xcodebuild -exportLocalizations One note though: we might actually need to reorder variables, so positional arguments are actually useful in these cases.
Marking this as a dupe of bug 1168537
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → DUPLICATE
Whiteboard: noteworthy
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: