Skip to content

Commit

Permalink
Multilingual
Browse files Browse the repository at this point in the history
  • Loading branch information
janezd committed Jun 11, 2024
1 parent cd22075 commit 57f5ac2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
2 changes: 0 additions & 2 deletions i18n/si/trubar-config.yaml

This file was deleted.

9 changes: 4 additions & 5 deletions i18n/trans.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
if [ "$#" -ne 2 ]
if [ "$#" -ne 1 ]
then
echo "Usage: trans <language> <destination>"
echo "Usage: trans <destination>"
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
13 changes: 13 additions & 0 deletions i18n/trubar-config.yaml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 57f5ac2

Please sign in to comment.