ios - Localization not working on Xcode -


I can not work with my app localization.

  • I have a localization The strings file and the languages ​​that I have localized are marked. (For now I am base, English and Spanish.)
  • Local storyboard with three languages.
  • In the Project Settings> I checked the information Usage of base internationalization and all languages ​​are correctly added. (Besides this, it displays 2 files localized next to the language, which I think should be a storyboard and a .string file.

I am using this example:

  self.loginLabel.text = NSLocalizedString (@ "login", @ "login text information");  

  "login" = "log in" like this;  

However, this is not working and instead it Showing login . I have forgotten the important step?

BTW: I have already tried to replace the login text overriding the label.

However, instead of just the base, make sure you are one Line also add English and Spanish fi les (clearly translated as appropriate).

Next, to show the language, set the device in the said language. Close your app and start it again. The strings should now be displayed in another language.

Note that simulators often have trouble with new translations, especially when they have been added to a previously planned app. In that case, remove the app from the simulator, click on Product - Clean, and re-deploy.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -