diff --git a/i18n/si/trubar-config.yaml b/i18n/si/trubar-config.yaml deleted file mode 100644 index 2d1c8ff..0000000 --- a/i18n/si/trubar-config.yaml +++ /dev/null @@ -1,2 +0,0 @@ -auto-import: "from orangecanvas.utils.localization.si import plsi, plsi_sz, z_besedo # pylint: disable=wrong-import-order" -encoding: "utf-8" diff --git a/i18n/trans.sh b/i18n/trans.sh index 85d2bc9..1b5e902 100755 --- a/i18n/trans.sh +++ b/i18n/trans.sh @@ -1,8 +1,7 @@ -if [ "$#" -ne 2 ] +if [ "$#" -ne 1 ] then - echo "Usage: trans " + echo "Usage: trans " else - lang=$1 - dest=$2 - trubar --conf $lang/trubar-config.yaml translate -s ../orangecontrib/geo -d $dest/orangecontrib/geo $lang/msgs.jaml + dest=$1 + trubar --conf trubar-config.yaml translate -s ../orangecontrib/geo -d $dest/orangecontrib/geo msgs.jaml fi diff --git a/i18n/trubar-config.yaml b/i18n/trubar-config.yaml new file mode 100644 index 0000000..f31b182 --- /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("orangecontrib.geo", "biolab.si", "Orange") + del Translator +encoding: "utf-8" \ No newline at end of file