Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2018-11-21 14:06:59 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-11-21 14:06:59 +0300
commited1ee89288e991965773d9623fe6f3fadd2eb61e (patch)
tree1d882b7ab961031ecbb049d559d3cdeb12b29c39 /source
parent638622971b7077821eeb46295ee15aa4733a2dab (diff)
I18N: tweak some UI labels and tips.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blentranslation/intern/blt_lang.c7
-rw-r--r--source/blender/makesrna/intern/rna_userdef.c27
2 files changed, 21 insertions, 13 deletions
diff --git a/source/blender/blentranslation/intern/blt_lang.c b/source/blender/blentranslation/intern/blt_lang.c
index f373ca24861..a36fe245a2a 100644
--- a/source/blender/blentranslation/intern/blt_lang.c
+++ b/source/blender/blentranslation/intern/blt_lang.c
@@ -157,9 +157,12 @@ static void fill_locales(void)
}
if (id == 0) {
- /* The DEFAULT item... */
+ /* The DEFAULT/Automatic item... */
if (BLI_strnlen(loc, 2)) {
- locales[id] = locales_menu[idx].description = BLI_strdup("");
+ locales[id] = "";
+ /* Keep this tip in sync with the one in rna_userdef (rna_enum_language_default_items). */
+ locales_menu[idx].description = BLI_strdup("Automatically choose system's defined language "
+ "if available, or fall-back to English");
}
/* Menu "label", not to be stored in locales! */
else {
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c
index f1312eeaa2c..15618759ffa 100644
--- a/source/blender/makesrna/intern/rna_userdef.c
+++ b/source/blender/makesrna/intern/rna_userdef.c
@@ -81,7 +81,8 @@ const EnumPropertyItem rna_enum_navigation_mode_items[] = {
#if defined(WITH_INTERNATIONAL) || !defined(RNA_RUNTIME)
static const EnumPropertyItem rna_enum_language_default_items[] = {
- {0, "DEFAULT", 0, "Default (Default)", ""},
+ {0, "DEFAULT", 0, "Automatic (Automatic)",
+ "Automatically choose system's defined language if available, or fall-back to English"},
{0, NULL, 0, NULL, NULL}
};
#endif
@@ -4196,12 +4197,7 @@ static void rna_def_userdef_system(BlenderRNA *brna)
RNA_def_struct_clear_flag(srna, STRUCT_UNDO);
RNA_def_struct_ui_text(srna, "System & OpenGL", "Graphics driver and operating system settings");
- /* Language */
-
- prop = RNA_def_property(srna, "use_international_fonts", PROP_BOOLEAN, PROP_NONE);
- RNA_def_property_boolean_sdna(prop, NULL, "transopts", USER_DOTRANSLATE);
- RNA_def_property_ui_text(prop, "International Fonts", "Use international fonts");
- RNA_def_property_update(prop, NC_WINDOW, "rna_userdef_language_update");
+ /* UI settings. */
prop = RNA_def_property(srna, "ui_scale", PROP_FLOAT, PROP_NONE);
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
@@ -4246,7 +4242,12 @@ static void rna_def_userdef_system(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "Author",
"Name that will be used in exported files when format supports such feature");
- /* Language Selection */
+ /* Language. */
+
+ prop = RNA_def_property(srna, "use_international_fonts", PROP_BOOLEAN, PROP_NONE);
+ RNA_def_property_boolean_sdna(prop, NULL, "transopts", USER_DOTRANSLATE);
+ RNA_def_property_ui_text(prop, "Translate UI", "Enable UI translation and use international fonts");
+ RNA_def_property_update(prop, NC_WINDOW, "rna_userdef_language_update");
prop = RNA_def_property(srna, "language", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_items(prop, rna_enum_language_default_items);
@@ -4258,17 +4259,21 @@ static void rna_def_userdef_system(BlenderRNA *brna)
prop = RNA_def_property(srna, "use_translate_tooltips", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "transopts", USER_TR_TOOLTIPS);
- RNA_def_property_ui_text(prop, "Translate Tooltips", "Translate tooltips");
+ RNA_def_property_ui_text(prop, "Translate Tooltips",
+ "Translate the descriptions when hovering UI elements (recommended)");
RNA_def_property_update(prop, 0, "rna_userdef_update");
prop = RNA_def_property(srna, "use_translate_interface", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "transopts", USER_TR_IFACE);
- RNA_def_property_ui_text(prop, "Translate Interface", "Translate interface");
+ RNA_def_property_ui_text(prop, "Translate Interface",
+ "Translate all labels in menus, buttons and panels "
+ "(note that this might make it hard to follow tutorials or the manual)");
RNA_def_property_update(prop, 0, "rna_userdef_update");
prop = RNA_def_property(srna, "use_translate_new_dataname", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "transopts", USER_TR_NEWDATANAME);
- RNA_def_property_ui_text(prop, "Translate New Names", "Translate new data names (when adding/creating some)");
+ RNA_def_property_ui_text(prop, "Translate New Names",
+ "Translate the names of new data-blocks (objects, materials...)");
RNA_def_property_update(prop, 0, "rna_userdef_update");
/* System & OpenGL */