Localizing Embedded Strings

Localize embedded strings that are used in alert and dialog windows.

  1. For each user interface string in your code, set the text property to a literal string using the NSLocalizedString macro.
    UserInterfaceLabel.text = NSLocalizedString(@"Display text", nil);
  2. Generate the.strings files from all the NSLocalizedString references in your application. by using the genstrings command line program. See Apple documentation for command syntax and parameters.
    This command processes files in your directory hierarchy and creates .strings files for them in the en.lproj directory.
  3. Provide your translator a copy of the .strings file. The translator should translate the right side of each of the .strings file entries.