diff options
-rwxr-xr-x | tools/translations/extract.py | 9 | ||||
-rw-r--r-- | tools/translations/fr.po | 20 | ||||
-rw-r--r-- | tools/translations/it.po | 20 | ||||
-rw-r--r-- | tools/translations/ru.po | 20 | ||||
-rw-r--r-- | tools/translations/tools.pot | 20 | ||||
-rw-r--r-- | tools/translations/zh_CN.po | 20 | ||||
-rw-r--r-- | tools/translations/zh_HK.po | 20 |
7 files changed, 103 insertions, 26 deletions
diff --git a/tools/translations/extract.py b/tools/translations/extract.py index 237664ab6a..b2fa6d8af3 100755 --- a/tools/translations/extract.py +++ b/tools/translations/extract.py @@ -59,11 +59,16 @@ for fname in matches: lc = 1 while (l): + patterns = ['RTR(\"', 'TTR(\"'] + idx = 0 pos = 0 while (pos >= 0): - pos = l.find('TTR(\"', pos) + pos = l.find(patterns[idx], pos) if (pos == -1): - break + if (idx < len(patterns) - 1): + idx += 1 + pos = 0 + continue pos += 5 msg = "" diff --git a/tools/translations/fr.po b/tools/translations/fr.po index ac83dbb1f5..72ec7902f4 100644 --- a/tools/translations/fr.po +++ b/tools/translations/fr.po @@ -234,6 +234,22 @@ msgstr "" "popup() ou une des fonctions popup*(). Les rendre visibles pour l'édition ne " "pose pas de problème, mais elles seront cachées lors de l'exécution." +#: scene/gui/dialogs.cpp tools/editor/io_plugins/editor_scene_import_plugin.cpp +msgid "Cancel" +msgstr "Annuler" + +#: scene/gui/dialogs.cpp +msgid "OK" +msgstr "" + +#: scene/gui/dialogs.cpp +msgid "Alert!" +msgstr "" + +#: scene/gui/dialogs.cpp +msgid "Please Confirm..." +msgstr "" + #: scene/gui/text_edit.cpp scene/gui/line_edit.cpp #: tools/editor/plugins/shader_editor_plugin.cpp #: tools/editor/plugins/script_editor_plugin.cpp @@ -5709,10 +5725,6 @@ msgid "Import Anyway" msgstr "Importer quand même" #: tools/editor/io_plugins/editor_scene_import_plugin.cpp -msgid "Cancel" -msgstr "Annuler" - -#: tools/editor/io_plugins/editor_scene_import_plugin.cpp msgid "Import & Open" msgstr "Importer et ouvrir" diff --git a/tools/translations/it.po b/tools/translations/it.po index 5b37695754..e4a8940c73 100644 --- a/tools/translations/it.po +++ b/tools/translations/it.po @@ -251,6 +251,22 @@ msgstr "" "popup() o qualsiasi altra funzione popup*(). Renderli visibili per la " "modifica nell'editor è okay, ma verranno nascosti una volta in esecuzione." +#: scene/gui/dialogs.cpp tools/editor/io_plugins/editor_scene_import_plugin.cpp +msgid "Cancel" +msgstr "Cancella" + +#: scene/gui/dialogs.cpp +msgid "OK" +msgstr "" + +#: scene/gui/dialogs.cpp +msgid "Alert!" +msgstr "" + +#: scene/gui/dialogs.cpp +msgid "Please Confirm..." +msgstr "" + #: scene/gui/text_edit.cpp scene/gui/line_edit.cpp #: tools/editor/plugins/shader_editor_plugin.cpp #: tools/editor/plugins/script_editor_plugin.cpp @@ -5741,10 +5757,6 @@ msgid "Import Anyway" msgstr "Importa ComunqueImporta Comunque" #: tools/editor/io_plugins/editor_scene_import_plugin.cpp -msgid "Cancel" -msgstr "Cancella" - -#: tools/editor/io_plugins/editor_scene_import_plugin.cpp msgid "Import & Open" msgstr "Importa e Apri" diff --git a/tools/translations/ru.po b/tools/translations/ru.po index 7a60d2bdfa..ea9311cb83 100644 --- a/tools/translations/ru.po +++ b/tools/translations/ru.po @@ -246,6 +246,22 @@ msgstr "" "или любой из popup*(). Делая их доступными для редактирования хорошая мысль, " "хотя они будут прятаться при запуске." +#: scene/gui/dialogs.cpp tools/editor/io_plugins/editor_scene_import_plugin.cpp +msgid "Cancel" +msgstr "Отмена" + +#: scene/gui/dialogs.cpp +msgid "OK" +msgstr "" + +#: scene/gui/dialogs.cpp +msgid "Alert!" +msgstr "" + +#: scene/gui/dialogs.cpp +msgid "Please Confirm..." +msgstr "" + #: scene/gui/text_edit.cpp scene/gui/line_edit.cpp #: tools/editor/plugins/shader_editor_plugin.cpp #: tools/editor/plugins/script_editor_plugin.cpp @@ -5712,10 +5728,6 @@ msgid "Import Anyway" msgstr "Импорт в любом случае" #: tools/editor/io_plugins/editor_scene_import_plugin.cpp -msgid "Cancel" -msgstr "Отмена" - -#: tools/editor/io_plugins/editor_scene_import_plugin.cpp msgid "Import & Open" msgstr "Импортировать & Открыть" diff --git a/tools/translations/tools.pot b/tools/translations/tools.pot index 52ec6b5791..70e0255aab 100644 --- a/tools/translations/tools.pot +++ b/tools/translations/tools.pot @@ -186,6 +186,22 @@ msgid "" "upon running." msgstr "" +#: scene/gui/dialogs.cpp tools/editor/io_plugins/editor_scene_import_plugin.cpp +msgid "Cancel" +msgstr "" + +#: scene/gui/dialogs.cpp +msgid "OK" +msgstr "" + +#: scene/gui/dialogs.cpp +msgid "Alert!" +msgstr "" + +#: scene/gui/dialogs.cpp +msgid "Please Confirm..." +msgstr "" + #: scene/gui/text_edit.cpp scene/gui/line_edit.cpp #: tools/editor/plugins/shader_editor_plugin.cpp #: tools/editor/plugins/script_editor_plugin.cpp @@ -5593,10 +5609,6 @@ msgid "Import Anyway" msgstr "" #: tools/editor/io_plugins/editor_scene_import_plugin.cpp -msgid "Cancel" -msgstr "" - -#: tools/editor/io_plugins/editor_scene_import_plugin.cpp msgid "Import & Open" msgstr "" diff --git a/tools/translations/zh_CN.po b/tools/translations/zh_CN.po index b6724d9021..2c4f62794a 100644 --- a/tools/translations/zh_CN.po +++ b/tools/translations/zh_CN.po @@ -221,6 +221,22 @@ msgstr "" "Popup对象在你调用popup()方法之前将保持隐藏,这里设置为可见并不代表执行场景时它" "会出现。" +#: scene/gui/dialogs.cpp tools/editor/io_plugins/editor_scene_import_plugin.cpp +msgid "Cancel" +msgstr "取消" + +#: scene/gui/dialogs.cpp +msgid "OK" +msgstr "" + +#: scene/gui/dialogs.cpp +msgid "Alert!" +msgstr "" + +#: scene/gui/dialogs.cpp +msgid "Please Confirm..." +msgstr "" + #: scene/gui/text_edit.cpp scene/gui/line_edit.cpp #: tools/editor/plugins/shader_editor_plugin.cpp #: tools/editor/plugins/script_editor_plugin.cpp @@ -5638,10 +5654,6 @@ msgid "Import Anyway" msgstr "仍然导入" #: tools/editor/io_plugins/editor_scene_import_plugin.cpp -msgid "Cancel" -msgstr "取消" - -#: tools/editor/io_plugins/editor_scene_import_plugin.cpp msgid "Import & Open" msgstr "导入|打开" diff --git a/tools/translations/zh_HK.po b/tools/translations/zh_HK.po index 18bba18ee0..2ff54e70c2 100644 --- a/tools/translations/zh_HK.po +++ b/tools/translations/zh_HK.po @@ -190,6 +190,22 @@ msgid "" "upon running." msgstr "" +#: scene/gui/dialogs.cpp tools/editor/io_plugins/editor_scene_import_plugin.cpp +msgid "Cancel" +msgstr "" + +#: scene/gui/dialogs.cpp +msgid "OK" +msgstr "" + +#: scene/gui/dialogs.cpp +msgid "Alert!" +msgstr "" + +#: scene/gui/dialogs.cpp +msgid "Please Confirm..." +msgstr "" + #: scene/gui/text_edit.cpp scene/gui/line_edit.cpp #: tools/editor/plugins/shader_editor_plugin.cpp #: tools/editor/plugins/script_editor_plugin.cpp @@ -5597,10 +5613,6 @@ msgid "Import Anyway" msgstr "" #: tools/editor/io_plugins/editor_scene_import_plugin.cpp -msgid "Cancel" -msgstr "" - -#: tools/editor/io_plugins/editor_scene_import_plugin.cpp msgid "Import & Open" msgstr "" |