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

Add base localisation by default #685

Merged
merged 1 commit into from
Oct 15, 2019
Merged

Add base localisation by default #685

merged 1 commit into from
Oct 15, 2019

Conversation

yonaskolb
Copy link
Owner

This adds a base localisation even if there are no Base localized files
Fixes #680

Copy link
Collaborator

@giginet giginet left a comment

Choose a reason for hiding this comment

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

LGTM

@yonaskolb yonaskolb merged commit fbf1a8a into master Oct 15, 2019
@yonaskolb yonaskolb deleted the add_base_localisation branch October 15, 2019 10:31
@bryansum
Copy link
Contributor

👋 After patching this version in I'm still getting the same warning. I made a change here: https://github.com/bryansum/XcodeGen/commit/f0d8eaab862b323e995fc5d63d22bd654cc510f8 which fixes it for me, although I'm not sure whether this is the right solution.

@yonaskolb
Copy link
Owner Author

If your fix works in your case, then I would think the warning is legitimate and would show up in a regular project. Xcode 11 wants you to have things localized to base

@bryansum
Copy link
Contributor

bryansum commented Oct 22, 2019

Makes sense. In my case I have an en.lproj (and other languages) but no Base.lproj, which leads to a derived knownRegions value of only en (thus the warning). I suppose I could move those strings to Base but it wasn't clear to me whether that was the "correct" solution. Thanks!

@yonaskolb
Copy link
Owner Author

Does the warning offer a fixit? See what it does

@bryansum
Copy link
Contributor

yeah it adds "Base" to knownRegions as the fix-it.

@yonaskolb
Copy link
Owner Author

It doesn’t move your en files to base or copy them? If that’s all it does, then maybe we can indeed apply your fix

@bryansum
Copy link
Contributor

No, it doesn't move them or copy them, it just adds that small change to add Base to knownRegions in the pbxproj file. Added a PR: #694 in case.

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.

Enable Base localization
3 participants