ios - Develop app in Japanese, add localization into English -


i developing ios app targeted exclusively @ japanese audience, possibility of small portion of english-speaking users.

all storyboards , xibs being designed japanese strings, , localization english should take place @ later stage.

from beginning, project's info/localizations section in xcode reads:

enter image description here

(the 2 files are, of course, "main.storyboard" , "launchscreen.xib")

because "english" added (as development language), can not click "+" button , add localization. add 'japanese' instead, want development language, not (secondary) localization.

also, , in apparent contradiction above, target's info.plist file reads:

enter image description here

when select either of localized files (main.storyboard , launchscreen.xib) in project navigator, , check file inspector, 'localization' section reads:

enter image description here

...which seems suggest existing, japanese files (.xib , .storyboard) 'base' , checking 'english' add support language (the pull-down menu seems indicate can chose between using strings file or dedicated duplicate of storyboard. inclined believe strings approach better).

...so, how should proceed?

a. check 'english' box in file inspector / localization section? creates en.lproj folder , adds strings file inside should translate later, guess. seems treat existing interface builder files (populated japanese labels) 'base', , provide localization english through strings file created (if understand correctly). however, english development language in project settings remains somehow unsettling...

b. remove english , instead add japanese in project/info/localizations pane? make japanese development language, , can re-add english localization afterwards. reason, if japanese not treated 'base' language, , (unnecessary) string files added japanese, not english.

edit: found this question, somehow provides 'fix' option b above.

ok, settled (but still accept better/smarter answers):

i did suggested the question mentioned before, , edited xcode project file force japanese "development language":

developmentregion = english;             hasscannedforencodings = 0;             knownregions = (                 en,                 base,             ); 

becomes:

developmentregion = japanese;             hasscannedforencodings = 0;             knownregions = (                 en,                 ja,                 base, 

next, storyboards/xibs want localize, check 'english' checkbox in file inspector/localization:

enter image description here

...and create string files english localization (notice 'japanese' checkbox below 'english'. i'd rather not there @ all, because base xibs/storyboards have japanese text labels default, can leave unchecked).

now, project's info pane, 'localizations' section looks this:

enter image description here

addendum: think of it, things setup this, if ever launches app on (say) iphone set french, app fall japanese (not english). not ideal, since default language non-japanese speakers should english, not other way around.

however, can not afford design xibs english text , translate them japanese afterwards.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -