From c51bee3119229a3fd6bde976b60a6ecd86a0ad53 Mon Sep 17 00:00:00 2001 From: janezd Date: Tue, 11 Jun 2024 18:09:02 +0200 Subject: [PATCH] Add multilingual configuration --- i18n/trans.sh | 8 ++++++++ i18n/trubar-config.yaml | 13 +++++++++++++ 2 files changed, 21 insertions(+) create mode 100755 i18n/trans.sh create mode 100644 i18n/trubar-config.yaml diff --git a/i18n/trans.sh b/i18n/trans.sh new file mode 100755 index 00000000000..42fba294866 --- /dev/null +++ b/i18n/trans.sh @@ -0,0 +1,8 @@ +if [ "$#" -ne 1 ] +then + echo "trans " + exit +else + dest=$1 + trubar --conf trubar-config.yaml translate -s ../Orange -d $dest/Orange msgs.jaml +fi diff --git a/i18n/trubar-config.yaml b/i18n/trubar-config.yaml new file mode 100644 index 00000000000..0479f418995 --- /dev/null +++ b/i18n/trubar-config.yaml @@ -0,0 +1,13 @@ +languages: + en: + name: English + original: true + si: + name: Slovenščina + international-name: Slovenian + auto-import: from orangecanvas.utils.localization.si import plsi, plsi_sz, z_besedo # pylint: disable=wrong-import-order +auto-import: |2 + from orangecanvas.utils.localization import Translator # pylint: disable=wrong-import-order + _tr = Translator("Orange", "biolab.si", "Orange") + del Translator +encoding: "utf-8" \ No newline at end of file