Create a new string using the Localization Files Editor by adding a new row.
-
Launch the Localization Files Editor using one of the following methods:
- Double-click res/values/strings.xml (or any of the localized strings.xml files in your project).
- Right-click res/values/strings.xml (or any of the localized strings.xml files in your project) and select . From the Editor Selection dialog, select
Localization Files Editor and click OK.
The Localization Files Editor appears, showing the base (or default) strings file and any localized
strings files.
-
Click
(located immediately above the
Localization Files Editor table).
A new row is added to the table, and the default key value is highlighted. Note that a warning icon
(
) appears next to the key, indicating that the
default strings file does not yet have a value defined for this key.
-
Enter the key that will be used to access the new string, replacing the default value that was generated
when the new row was created.
-
Enter string values for the key in the appropriate columns. Generally you will enter a default, or base,
string in the values column and localized versions of that string in columns for those
locales in which the default string is not appropriate. Note that you can enter multi-line string values by
pressing the Return key between lines.
-
Select to save your
changes.
To remove a string simply click within the row and then click

.