Skip to content

Commit

Permalink
Add multilingual configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
janezd committed Jun 11, 2024
1 parent 7b3302d commit c51bee3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
8 changes: 8 additions & 0 deletions i18n/trans.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
if [ "$#" -ne 1 ]
then
echo "trans <destination>"
exit
else
dest=$1
trubar --conf trubar-config.yaml translate -s ../Orange -d $dest/Orange 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("Orange", "biolab.si", "Orange")
del Translator
encoding: "utf-8"

0 comments on commit c51bee3

Please sign in to comment.