|
71.
|
|
|
A string giving the language to translate to, or None to use the default language of the game script.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/language_action:8
|
|
72.
|
|
|
The Language action can be used to add a language preference to the preferences screen, using code like::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/translation.rst:371
|
|
73.
|
|
|
There are two translation-related functions:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/translation.rst:382
|
|
74.
|
|
|
Changes the current language to `language`, which can be a string or None to use the default language.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/translation_functions:5
|
|
75.
|
|
|
Returns the set of known languages. This does not include the default language, None.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/translation_functions:10
|
|
76.
|
|
|
In addition, there are two functions that are related to string translation:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/translation.rst:386
|
|
77.
|
|
|
(Single underscore) Returns `s` unchanged. Ren'Py will scan for strings enclosed in this function, and add them to the list of translatable strings. The strings will not be translated until they are displayed.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/translation.rst:391
|
|
78.
|
|
|
(Double underscore) Returns `s` immediately translated into the current language. Strings enclosed in this function will be added to the list of translatable strings. Note that the string may be double-translated, if it matches a string translation when it is displayed.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/translation.rst:398
|
|
79.
|
|
|
There are two language-related variables. One is :var:`config.language`, which is used to change the default language of the game.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/translation.rst:404
|
|
80.
|
|
|
The name of the current language, or None if the default language is being used. This should be treated as a read-only variable. To change the language, call :func:`renpy.change_language`.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/translation.rst:410
|