Is Base Internationalization only for storyboards?
Is Base Internationalization only for storyboards?
- Subject: Is Base Internationalization only for storyboards?
- From: Roland King <email@hidden>
- Date: Sat, 08 Dec 2012 18:13:02 +0800
I just turned Base i18n on in my project, fairly new to i18n in cocoa, not new to i18n in general. My storyboard then headed nicely into Base.lproj and Xcode is creating strings files for me in the individual locales too. Perfect.
I can't figure out whether it's possible to do this for other resources too. I have an XML file with basic data in it, it's a super candidate for localization in some locales (only) and I want the default one picked up if there's not a localized one, else the localized one. That sounds just like base localization again. However when I click and ask Xcode to localize I get the option only of my 'real' locales to put the file in, not 'Base'.
If I go mess with the built product on the simulator and move the 'base' version of my xml file into Base.lproj, then run, it does what I want, just using NSBundle getURLForResource .. gets a localized one if it exists, else it gives me the one in Base.lproj. But you can't mess with the built product like that in a real build.
Is there a way to configure Xcode to use Base Internationalization for your own files? I expected that when hitting the Localize button I'd have seen an option for Base, but there isn't.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden