forked from manisandro/gImageReader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdateTranslations.sh
More file actions
executable file
·26 lines (21 loc) · 882 Bytes
/
updateTranslations.sh
File metadata and controls
executable file
·26 lines (21 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
cd "$(dirname "$(readlink -f "$0")")"
# Generate POTFILES.in
echo "Updating POTFILES.in..."
echo "# List of source files containing translatable strings." > po/POTFILES.in
echo "" >> po/POTFILES.in
echo "data/gimagereader.desktop.in" >> po/POTFILES.in
find gtk/data/ -type f -name *.ui -printf '[type: gettext/glade]%p\n' | sort >> po/POTFILES.in
find gtk/src/ -type f \( -name *.hh -or -name *.cc \) -print | sort >> po/POTFILES.in
find qt/data/ -type f -name *.ui -printf '[type: gettext/qtdesigner]%p\n' | sort >> po/POTFILES.in
find qt/src/ -type f \( -name *.hh -or -name *.cc \) -print | sort >> po/POTFILES.in
# Update POT and PO files
(
cd po
echo "Updating gimagereader.pot..."
intltool-update --gettext-package=gimagereader --pot
while read lang; do
echo "Updating $lang.po..."
intltool-update --gettext-package=gimagereader $lang
done < LINGUAS
)