-
-
Notifications
You must be signed in to change notification settings - Fork 294
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
Adding files to variants #113
Comments
Hello @st3fan,
Based on that sequence, i can determine what new sections were created and how they are linked to one another. The I'm more than happy to do this for you guys if you send over the project.pbxproj after the changes have been done manually. :) |
Awesome. We really appreciate the help. This is what I did:
Attached are the projects files before and after. The Git status:
Diff of the project file:
Zip file containing both project files: |
Thanks for the files, i took a look at the way Xcode imports the files, and i saw some funny behaviors when importing the .xliff file with the Editor > Import localization menu. Note to self: so far, this is what i manage to gather: I will try to tackle this this week/weekend. |
Is this feature done or included in current stable build |
(I know this is not really a bug report, but I don't know where else to ask questions - I'm happy to convert this into a wiki page as an example usage though)
Hello and thank you for maintaining this project. At Mozilla we are trying to use this for the following use case:
We have a product called Focus at https://github.com/mozilla-mobile/focus which currently is English only.
We localize the product by exporting an
en.XLIFF
file to our localization volunteers and we get back XLIFF files for other locales. To import these we runxcodebuild -importLocalizations -localizationPath l10n/nl.xliff
for example. This spits out .strings files in the proper .lproj directories.The problem is that
xcodebuild
only generates the files. It does not actually add them to the project.This is where
pbxproj
comes in. I'd like to use it to find for example thePBXVariantGroup
forLocalizable.strings
and then add aPBXFileReference
reference forit.lproj/Localizable.strings
to it.However, we are lost in the complexity of both the Xcode projects and the pbxproj API.
My question to you is if we can get some help to find out how to do this. I'm happy to turn the end result in some reusable code that anyoen can use. Or a blog post or a wiki page.
🧀
The text was updated successfully, but these errors were encountered: