Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localize FXIOS-4802 [v106] Fix warnings for Info.plist keys #11720

Merged
merged 1 commit into from
Aug 29, 2022

Conversation

flodolo
Copy link
Contributor

@flodolo flodolo commented Aug 25, 2022

#11667 FXIOS-4802

@Delphine
Heads-up: this will require manual work to avoid losing existing translations for the old keys.

Once 105 is completely frozen, we can use automation as normal.

@flodolo flodolo changed the title Localize FXIOS- [v106] Fix warnings for Info.plist keys Localize FXIOS-11667 [v106] Fix warnings for Info.plist keys Aug 25, 2022
@flodolo
Copy link
Contributor Author

flodolo commented Aug 25, 2022

Note: for this one, it would be good to double check that everything works as expected, as I'm not sure where/how to verify it.

I think having the ID as string, then use it to localize is a brittle hack. Without the en* .strings files, there would be no trace of what the value (text) of those strings should be.

@lmarceau
Copy link
Contributor

Bitrise build is green here
Screen Shot 2022-08-26 at 3 36 54 PM

@lmarceau lmarceau changed the title Localize FXIOS-11667 [v106] Fix warnings for Info.plist keys Localize FXIOS-4802 [v106] Fix warnings for Info.plist keys Aug 29, 2022
Copy link
Contributor

@lmarceau lmarceau left a comment

Choose a reason for hiding this comment

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

LGTM but for sure other InfoPlist.strings file keys and translations will need to be adjusted too.

Quick summary for anyone wondering, this solves warnings:

--- WARNING: Key "ShortcutItemTitleQRCode" used with multiple values. Value "Scan QR Code" kept. Value "ShortcutItemTitleQRCode" ignored.
--- WARNING: Key "ShortcutItemTitleNewTab" used with multiple values. Value "New Tab" kept. Value "ShortcutItemTitleNewTab" ignored.
--- WARNING: Key "ShortcutItemTitleNewPrivateTab" used with multiple values. Value "New Private Tab" kept. Value "ShortcutItemTitleNewPrivateTab" ignored.

@lmarceau lmarceau merged commit ea996d3 into mozilla-mobile:main Aug 29, 2022
@flodolo flodolo deleted the fix_plist_warning branch September 12, 2022 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants