Skip to content

Commit

Permalink
Separe gettext messages extraction and merge
Browse files Browse the repository at this point in the history
  • Loading branch information
marcogiusti committed Dec 7, 2019
1 parent 756e2f3 commit 6798666
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
5 changes: 2 additions & 3 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
include COPYING
include COPYING LICENCE
include glade-catalog.xml
include l10nextract.sh
include LICENCE
include l10nextract.sh l10nmerge.sh
include locale/virtualbricks/virtualbricks.pot locale/virtualbricks/*.po
recursive-include share *
10 changes: 0 additions & 10 deletions l10nextract.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# Virtualbricks - a vde/qemu gui written in python and GTK/Glade.
# Copyright (C) 2019 Virtualbricks team

LANGUAGES="it nl es fr de"
TMPFILE=$(mktemp)
trap "rm $TMPFILE" EXIT

Expand All @@ -16,12 +15,3 @@ xgettext \
--copyright-holder="Virtualbricks team" \
--package-name=Virtualbricks \
--package-version=$(python setup.py -V)

for lang in $LANGUAGES;
do
msgmerge \
--update \
locale/virtualbricks/${lang}.po \
--lang=$lang \
locale/virtualbricks/virtualbricks.pot
done
14 changes: 14 additions & 0 deletions l10nmerge.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh
# Virtualbricks - a vde/qemu gui written in python and GTK/Glade.
# Copyright (C) 2019 Virtualbricks team

LANGUAGES="it nl es fr de du"

for lang in $LANGUAGES;
do
msgmerge \
--update \
locale/virtualbricks/${lang}.po \
--lang=$lang \
locale/virtualbricks/virtualbricks.pot
done

0 comments on commit 6798666

Please sign in to comment.