summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2013-06-22 11:56:07 +0000
committerTails developers <amnesia@boum.org>2013-06-23 15:44:07 +0200
commitb22bdc27743d73718e0bf17f61cfbb96e6e8e549 (patch)
tree93e293d48e07aca243aee968f00eb8a712d40978
parent4e025947ab6dd69034d9fbdc644440b74b3eb6b5 (diff)
Auto-detect languages that have translations ready.
-rwxr-xr-xrefresh-translations11
1 files changed, 3 insertions, 8 deletions
diff --git a/refresh-translations b/refresh-translations
index 51a20bc..c8c61ab 100755
--- a/refresh-translations
+++ b/refresh-translations
@@ -10,15 +10,10 @@ PYTHON_PROGS="/etc/whisperback/config.py /usr/local/bin/shutdown_helper_applet \
/usr/local/bin/tails-about /usr/local/sbin/tails-additional-software"
SHELL_PROGS="/usr/local/sbin/unsafe-browser"
+LANGUAGES=$(for po in po/*.po ; do rel="${po%.po}" ; echo "${rel#po/}"; done)
LOCALE_BASEDIR=config/chroot_local-includes/usr/share/locale
POTFILE=config/chroot_local-includes/usr/share/tails/messages.pot
-# get AMNESIA_SUPPORTED_LANGUAGES
-. config/amnesia
-if [ -e config/amnesia.local ] ; then
- . config/amnesia.local
-fi
-
### Functions
prog_potfile () {
@@ -94,5 +89,5 @@ for prog in $SHELL_PROGS ; do refresh_pot $prog Shell ; done
concat_pot_files $PERL_PROGS $PYTHON_PROGS $SHELL_PROGS > $POTFILE
-refresh_po $POTFILE $AMNESIA_SUPPORTED_LANGUAGES
-refresh_mo $AMNESIA_SUPPORTED_LANGUAGES
+refresh_po $POTFILE $LANGUAGES
+refresh_mo $LANGUAGES