localizable.strings

Localize Localizable.strings with Xcode 4.5 [duplicate]

戏子无情 提交于 2019-11-29 18:38:21
问题 Possible Duplicate: Localization - Add additional language to localizable.strings file With Xcode 4.5 SDK iOS 6.0, I cannot add localization to Localizable.strings file. In Xcode 4.4.1- under the list of all added languages was a "+" to add other languages. But in Xcode 4.5 I can't see it and I can't add any other languages apart the default English. Someone has resolved this problem ? Thanks ! 回答1: If you select your top level project file in the Project Navigator, and then in the area on

iOS Localizable.strings not being retrieved from BASE file

為{幸葍}努か 提交于 2019-11-29 12:38:15
I am having a problem getting localization on iOS to work the way I think it is suppose to, but this is my first foray into localization so maybe I am misunderstanding. I have three Localizable.strings files: Base "TAB_TITLE_Camera" = "CAMERA"; English "TAB_TITLE_Camera" = "Camera"; Spanish "TAB_TITLE_Camera" = "Cámara"; NSLocalizedString(@"TAB_TITLE_Camera", nil) iOS 6.1 On Xcode 5 with a 4th generation iPod Touch running iOS 6.1 , English and Spanish seem to work, but if I change to German (or any other language without a localization file) it does not pull from Base Localizable.strings ,

Custom NSLocalizedString?

天大地大妈咪最大 提交于 2019-11-28 12:43:18
Is it possible to use the NSLocalizedString infrastructure (based on localizable.strings) with a custom-defined "localization"? The thing is, there are some languages that have different wordings for males and females. I want to ask the user's gender on first launch and then use the appropriate phrases. Of course, both are based on the same language. I can do it with my own code but I'd rather do it the easy way if possible. NSLocalizedString is just a macro defined in NSBundle.h Redefine it or create a new one, for example NSGenderAwareLocalizedString to fit your needs. With the new macro,

iOS - Could I change the localizable.strings content during runtime?

☆樱花仙子☆ 提交于 2019-11-28 10:24:07
I am loading the translation through a JSON file every time I launch the application. Could I parse that JSON, clean it up and place it in the localizable.strings file? If not, will I be able to load localization from localizable file created in the Documents directory? no the first as you can't edit app resources after deployment you can however tell NSBundle to use a different localizeFile.. or rather download the json and put it in a NSBundle put the localizable into: <APP/DOCUMENTS>/<APPNAME>.bundle/<LANGUAGE_CODE>.lproj/Localizable.strings init a new cocoa bundle NSBundle *b = [NSBundle

How Can I set Localised Direction within application?(RTL if user select arabic, LTR is selected language is English)

孤人 提交于 2019-11-28 04:24:48
My Application must support Arabic(right to left direction) and English(left to right direction) language, I need to set UI and based on user select language from my application. I will implement UI with NSLayoutConstraint so it can update UI automatically, based on leading and trailing constraints. Now My Question is how can i achieve this? As My device language is say English and from my application user select Arabic(limited to my app only), So my Flow,UI,Animations etc should be right to left. here are the sample snap for ui Direction Thanks Bottom line you can change the language from

NSLocalizedString only retrieves the key, not the value in Localizable.strings (IOS)

时光总嘲笑我的痴心妄想 提交于 2019-11-27 20:22:59
I've made a strings file named "Localizable.strings" and added two languages to it, like so: "CONNECTIONERROR" = "Check that you have a working internet connection."; "CONNECTIONERRORTITLE" = "Network error"; I have also converted the files to Unicode UTF-8 However, when I create a UIAlertView like this: UIAlertView *myAlert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"CONNECTIONERRORITLE",nil) message:NSLocalizedString(@"CONNECTIONERROR",nil) delegate:self cancelButtonTitle:@"Ok" otherButtonTitles:nil]; the alert view only shows the key text, not the value. It works if I, for

How to localize an app icon?

限于喜欢 提交于 2019-11-27 13:41:02
I am comfortable with localizing strings and images within the app. But I am having a lot of difficulty trying to localize the app icon for my supported languages (english and german). Is this even possible? According to the Apple documentation, you can: An iOS application should be internationalized and have a language.lproj folder for each language it supports. In addition to providing localized versions of your application’s custom resources, you can also localize your application icons and launch images by placing files with the same name in your language-specific project directories .

Custom NSLocalizedString?

北战南征 提交于 2019-11-27 07:22:46
问题 Is it possible to use the NSLocalizedString infrastructure (based on localizable.strings) with a custom-defined "localization"? The thing is, there are some languages that have different wordings for males and females. I want to ask the user's gender on first launch and then use the appropriate phrases. Of course, both are based on the same language. I can do it with my own code but I'd rather do it the easy way if possible. 回答1: NSLocalizedString is just a macro defined in NSBundle.h

iOS - Could I change the localizable.strings content during runtime?

坚强是说给别人听的谎言 提交于 2019-11-27 03:34:45
问题 I am loading the translation through a JSON file every time I launch the application. Could I parse that JSON, clean it up and place it in the localizable.strings file? If not, will I be able to load localization from localizable file created in the Documents directory? 回答1: no the first as you can't edit app resources after deployment you can however tell NSBundle to use a different localizeFile.. or rather download the json and put it in a NSBundle put the localizable into: <APP/DOCUMENTS>/

iphone - reading from Localizable.strings file as a key-value in a dictionary

戏子无情 提交于 2019-11-27 01:23:36
问题 I want to read the text from the localizable.strings file. I am collecting the strings for translation from several directories and file in one .strings file. But then I have several copies of the same translation strings. I want to remove this programmatically. So I need to read the strings only (not the comments) from the .strings file, and - then sort them, - remove repeated strings then create a new .strings file. Is it possible to read the strings file and keep the key string and