¡@

Home 

2014/10/15 ¤U¤È 10:11:11

iphone Programming Glossary: lproj

Translating iOS app to unsupported/non-standard languages

http://stackoverflow.com/questions/10259695/translating-ios-app-to-unsupported-non-standard-languages

from the Settings.app list. This means that one version must be submitted for each language. Option 1 Abuse the en.lproj directory For each targeted language lt lv et I put the strings files for that language into an en.lproj directory. Pros.. Abuse the en.lproj directory For each targeted language lt lv et I put the strings files for that language into an en.lproj directory. Pros Uses a well known mechanism. The app just thinks it is running English. Cons Wreaks havoc on my localization.. of languages for the app to use. By setting it like this I can get the app to load for example Lithuanian from an lt.lproj directory NSUserDefaults standardUserDefaults setObject NSArray arrayWithObjects @ lt nil forKey @ AppleLanguages For historical..

loading images from the correct bundle when localizing storyboards

http://stackoverflow.com/questions/14730579/loading-images-from-the-correct-bundle-when-localizing-storyboards

lang forKey @ AppleLanguages NSBundle bnd NSBundle bundleWithPath NSBundle mainBundle pathForResource lang ofType @ lproj UIStoryboard storyBoard storyBoard UIStoryboard storyboardWithName @ MainStoryboard bundle bnd UIViewController initViewController.. after restart of the application.. For the same img_name I' tried ... to call the specific image.. from the specific lproj folder languageBundle .. but it did not work at changed the storyboard from AppDelegate.. 2 You can have only one storyboard..... the changing right in your storyboard.. For the second.. you can change recall outlets .. from specific languageBundle lproj folders .. For 1 .. I found a trick to overwrite the languageBundle until restart id initWithCoder NSCoder aDecoder self..

iPhone app available languages in appStore

http://stackoverflow.com/questions/1896269/iphone-app-available-languages-in-appstore

share improve this question This is what you need to do This is how the .app folder should look like MyApp.app en.lproj de.lproj nl.lproj etc... in the lproj folder you should place a Localizable.strings file. In this Localizable.strings file.. improve this question This is what you need to do This is how the .app folder should look like MyApp.app en.lproj de.lproj nl.lproj etc... in the lproj folder you should place a Localizable.strings file. In this Localizable.strings file you can.. question This is what you need to do This is how the .app folder should look like MyApp.app en.lproj de.lproj nl.lproj etc... in the lproj folder you should place a Localizable.strings file. In this Localizable.strings file you can put the..

language change only after restart on iphone

http://stackoverflow.com/questions/5912018/language-change-only-after-restart-on-iphone

NSString lang NSLog @ preferredLang @ lang NSString path NSBundle mainBundle pathForResource lang ofType @ lproj bundle NSBundle bundleWithPath path retain NSString get NSString key alter NSString alternate return bundle localizedStringForKey..

Memory Leak In line of code

http://stackoverflow.com/questions/7441913/memory-leak-in-line-of-code

NSString languageSelectedStringForKey NSString key NSString path NSBundle mainBundle pathForResource @ zh ofType @ lproj if selectedLanguage French FinalString NSString alloc initWithFormat @ http www.xyz.com api_com.php page_id d IDValue url..

Runtime change the language/localization in Three20

http://stackoverflow.com/questions/8351445/runtime-change-the-language-localization-in-three20

NSLocale locale TTCurrentLocale NSString path NSBundle mainBundle pathForResource locale localeIdentifier ofType @ lproj bundle NSBundle bundleWithPath path retain You will add a custom function in your AppDelegate to get the localized text..