Ver Fonte

Document how to test translations with the test project setting (#5488)

(cherry picked from commit a9af00549565a2e336e50cd9d04f009b3fca3767)
skyace65 há 3 anos atrás
pai
commit
52311e9520

BIN
tutorials/i18n/img/locale_test.png


+ 17 - 3
tutorials/i18n/internationalizing_games.rst

@@ -106,10 +106,24 @@ called the :ref:`TranslationServer <class_TranslationServer>`.
 Translations can be added or removed during run-time;
 the current language can also be changed at run-time.
 
-Command line
-------------
+Testing translations
+--------------------
+
+You may want to test a project's translation before releasing it. Godot provides two ways
+to do this.
+
+First, in the Project Settings, under **Input Devices > Locale**, there is a **Test**
+property. Set this property to the locale code of the language you want to test. Godot will
+run the project with that locale when the project is run (either from the editor or when
+exported).
+
+..image:: img/locale_test.png
+
+Keep in mind that since this is a project setting, it will show up in version control when
+it is set to a non-empty value. Therefore, it should be set back to an empty value before
+committing changes to version control.
 
-Language can be tested when running Godot from the command line.
+Translations can also be tested when running Godot from the command line.
 For example, to test a game in French, the following argument can be
 supplied: