Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

20190529 1350 #5

Closed
wants to merge 6 commits into from
Closed

20190529 1350 #5

wants to merge 6 commits into from

Conversation

devinreams
Copy link
Contributor

Latest based on mozilla-lockwise/lockwise-ios#992

Looks like it really wants to translate those bundle names (CredentialProvider, Firefox Lockwise).

But this should expose the Face ID usage description as noted at mozilla-lockwise/lockwise-ios#1009

Copy link

@Pike Pike left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would the paths continue to roundtrip with the Strings/en.lproj in them?

<trans-unit id="hwO-wS-oS4.text">
<source>Take your passwords everywhere</source>
<target>Nehmen Sie Ihre Passwörter überall mit hin</target>
<note>Class = "UILabel"; text = "Take your passwords everywhere"; ObjectID = "hwO-wS-oS4";</note>
</trans-unit>
</body>
</file>
<file original="lockbox-ios/Common/Resources/InfoPlist.strings" source-language="en" target-language="de" datatype="plaintext">
<file original="lockbox-ios/Common/Resources/Strings/en.lproj/InfoPlist.strings" source-language="en" target-language="de" datatype="plaintext">
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Strings/en.lproj path insert is surprising to me.

@devinreams
Copy link
Contributor Author

Would the paths continue to roundtrip with the Strings/en.lproj in them?

@Pike Yes I believe so. I think the original inclusion of the InfoPlist.strings was at an incorrect path in the project so after doing some cleanup and removing of redundant files (and I just tried it again) this is what the result is.

I looked at the Localizable.strings and its included in Xcode and configure the same way. So I'm not sure why this would change now but don't see any way to "put it back" on this side.

image

image

@Pike Pike requested a review from mathjazz May 29, 2019 22:40
@Pike
Copy link

Pike commented May 29, 2019

Looping in Matjaz. @mathjazz, can you take a look at this, and see if the changed file path drops many localizations in Pontoon? Might just be a single Lockwise string at this point?

@flodolo
Copy link
Contributor

flodolo commented May 30, 2019

Looping in Matjaz. @mathjazz, can you take a look at this, and see if the changed file path drops many localizations in Pontoon? Might just be a single Lockwise string at this point?

The update script already dropped them: it reads the strings, and inject them in the template. If the file path changed, that translation doesn't exist in the translated XLIFF.

If you look at German, you'll see that the translation for Lockwise has been removed.

P.S. Reminder that Matjaz is on PTO for the next week ;-)

Copy link

@Pike Pike left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, dug a little deeper, and this is actually a regression in @joeyg's export branch.

https://github.com/joeyg/ios-l10n-scripts/blob/fb87542e86e6ead31e44012fd929db833dfc99c3/export-locales.sh#L98 doesn't catch the new /Strings/ path.

I'd be OK with just the few string being lost and keeping the /Strings/ in the filepath, but I think we need a fix to at least remove the en.lproj in the path.

@joeyg
Copy link

joeyg commented May 31, 2019

@Pike ahh great catch. Sorry about that

@devinreams
Copy link
Contributor Author

I think we need a fix to at least remove the en.lproj in the path.

OK, since this blocks additional strings being exported (we may have 1 for a future release, fairly uncommon) I will submit a change to @joeyg's fork/branch and re-submit an extract here.

@devinreams devinreams mentioned this pull request Jun 22, 2019
@devinreams
Copy link
Contributor Author

Revised output at #6

@devinreams devinreams closed this Jun 22, 2019
@devinreams devinreams deleted the 20190529_1350 branch June 22, 2019 18:23
devinreams added a commit to mozilla-mobile/ios-l10n-scripts that referenced this pull request Jun 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants