## Translating Text for Added Languages

Once a new language has been added to an application project, the actual translation of the strings can be done within the Carbide.c++ tool using a text editor to edit the language files or directly editing the component in the UI Design Editor.

You can identify which language is contained in each localization file by examining it’s extension. The extension uses the format of .lnn where the “l” indicates a localization file and the “nn” is the number that identifies the language. For example, a localization file called HelloUIDesigner.l04 is the Spanish localization file, while one called HelloUIDesigner.l74 is the Mongolian localization file.

Once a localization file is open you can quickly locate all the strings that require translation by searching for a text marker consisting of 2 question marks in sequence ( ??) and preceding the translatable string. An example string to translate might look like this:

#define STR_HelloUIDesignerContainerView_1 "??HelloUIDesignerContainer"

Note the translation marker before the string.

NOTE When editing, be sure to remove the translation marker from the string.

#### Translating Application Strings

1. Locate and open the language file to translate

UI Designer stores the localization files in the project's data folder. Open the data folder and double-click to open a specific localization file for editing. The file opens in an editor view.

2. Translate the text strings into the specific language

Look for occurrences of the translation marker of 2 question marks ( ??) in the file. Once you've located one, translate the string into the appropriate language, making sure to remove the translation markers. Repeat for all strings that require translation.

3. Save your work

Click File > Save to save your newly translated localization file.

4. Repeat for each localization file in the project

##### Related concepts

- Internationalization

##### Related references

- Languages Page