diff --git a/docs/html/images/tools/studio-translations-editor.png b/docs/html/images/tools/studio-translations-editor.png new file mode 100644 index 0000000000000..22722d2dd31f5 Binary files /dev/null and b/docs/html/images/tools/studio-translations-editor.png differ diff --git a/docs/html/tools/help/index.jd b/docs/html/tools/help/index.jd index d49a27926690d..8aed91803b53e 100644 --- a/docs/html/tools/help/index.jd +++ b/docs/html/tools/help/index.jd @@ -58,6 +58,9 @@ avd) the emulator (emulator), and the Dalvik Debug Monitor S
sqlite3
Lets you access the SQLite data files created and used by Android applications.
+
Translations Editor
+
Lets you view and update all your string resource translations in one convenient place.
+ diff --git a/docs/html/tools/help/translations-editor.jd b/docs/html/tools/help/translations-editor.jd new file mode 100644 index 0000000000000..ab557e1382704 --- /dev/null +++ b/docs/html/tools/help/translations-editor.jd @@ -0,0 +1,133 @@ +page.title=Translations Editor +parent.title=Tools +parent.link=index.html +page.tags=translations +@jd:body + +
+
+

In this document

+
    +
  1. About the Translations Editor
  2. +
  3. Running the Translations Editor
  4. +
  5. Managing String Resources
  6. +
  7. Ordering Translation Services
  8. +
+ +

See also

+
    +
  1. Supporting Different + Languages
  2. +
  3. Localizing with Resources +
  4. +
  5. Providing Resources +
  6. +
+ +
+
+ +

+If your application supports multiple languages, you need to properly manage your +translated string resources. Android Studio provides the Translations Editor to make viewing and +managing your translated resources easier. +

+ +

About the Translations Editor

+ +

+Translated resources are stored in multiple XML files in multiple directories in your project. +Manually finding and editing resource files across many translations can be difficult. Because of +this, your application might have missing translations that go unnoticed until after your +application has been built and distributed to users. +

+ +

+The Translations Editor lets you view and update all your string resources in one convenient +place. The editor gives you a single view of all of your translated resources, making it easy to +change or add translations, and even find missing translations. +

+ + +

Figure 1. Manage locales and strings in the +Translations Editor.

+ +

Running the Translations Editor

+ +

+Follow these steps to start the Translations Editor: +

+ +
    +
  1. In Android Studio, open an Android app project.
  2. +
  3. In the Project window, select the + Android view.
  4. +
  5. Open the res folder, and then open the values folder.
  6. +
  7. If a strings.xml folder is present, open this folder.
  8. +
  9. Right-click the strings.xml file (not folder) and select Open + Translations Editor.
  10. +
+ +

+You can also access the Translations Editor by opening a strings.xml file for editing +and clicking the Open editor link, or clicking the globe icon + in the Design layout view and +choosing Edit Translations. +

+ +

Managing String Resources

+ +

+The Translations Editor provides a view of all your string resources and current locale +translations. The name of each resource is listed in the Key column, along with a default value +for the key, a checkbox to mark the key as untranslatable, and values for each locale translation. +

+ +

+Edit translations by double-clicking on the translation and editing the value directly +in the list view, or selecting the translation and editing the Translation field +value at the bottom of the editor. The default value can be edited by double-clicking on +the default value or selecting the default value and updating the Default Value +field.

+ +

+If a resource is missing a translation and isn't marked untranslatable, the key name is +displayed in red. If you hover over a red resource, Android Studio displays details about the +missing translations. +

+ +

Adding a new string resource

+ +

+Add a new resource by clicking the add icon . Android Studio prompts you for a key name, +default value, and resource folder that contains the strings.xml file where the new +resource is added. +

+ +

Adding additional locales

+ +

+Add additional locales by pressing the globe icon + and selecting the locale you want +to add. The Translations Editor adds the new locale column and creates the translation strings XML +file in the appropriate project directory. +

+ +

+The Translations Editor has +BCP 47 support, and +combines language and region codes into a single selection for targeted localizations. +

+ +

Ordering Translation Services

+ +

+Clicking the Order a translation link opens a page in your browser where you +can upload string resource XML files and order translation services. App translation services are +available from Google Play and other vendors. For more information about Google Play App +Translation Services, see the +Google Play App Translation Service announcement. +

+ diff --git a/docs/html/tools/studio/studio-features.jd b/docs/html/tools/studio/studio-features.jd index 44d6985dfdc6d..46ec79db26ba3 100644 --- a/docs/html/tools/studio/studio-features.jd +++ b/docs/html/tools/studio/studio-features.jd @@ -42,24 +42,24 @@ and

Translations Editor

-

Multi-language support is enhanced with the Translations Editor plugin so you can easily add -a variety of locales to the app's translation file. With -BCP 47 support, the editor -combines language and -region codes into a single selection for targeted localizations. Color codes indicate whether a -locale is complete or still missing string translations.

+

If your application supports multiple languages, you need to properly manage your +translated string resources. The Translations Editor lets you view and update all your string +resources in one convenient place.

-

To access the Translations Editor, open a strings.xml file and click the -Open Editor link, or click the globe icon -() in the Design layout view.

+

+Use the Translations Editor to view all your translated resources, modify translations, and add +new locales. You can provide default values for your resources and mark resources as +untranslatable. The Translations Editor also marks resources with missing translations in red, +and provides a link to a page where you can upload resource files and order translation services. +

+

For more details on the Translations Editor, see +Translations Editor.

- -

Figure 1. Add locales and strings in the + +

Figure 1. Manage locales and strings in the Translations Editor.

- -

Android Code Samples on GitHub

Clicking Import Samples from the File menu or Welcome page provides seamless access to Google code samples on GitHub.

diff --git a/docs/html/tools/tools_toc.cs b/docs/html/tools/tools_toc.cs index b7595ce811f0e..80babf46d340b 100644 --- a/docs/html/tools/tools_toc.cs +++ b/docs/html/tools/tools_toc.cs @@ -176,6 +176,9 @@ class="en">Tools Help
  • Systrace
  • Theme Editor
  • Tracer for OpenGL ES
  • +
  • + Translations Editor +
  • Traceview
  • Vector Asset Studio
  • zipalign