forked from linuxmint/cinnamon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makepot
executable file
·14 lines (9 loc) · 982 Bytes
/
makepot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
find files/usr/share/cinnamon -name "*.ui" -exec intltool-extract --type=gettext/glade {} \;
xgettext --language=C --keyword=_ --keyword=N_ --output=cinnamon.pot src/*.c src/*/*.c
find files/usr/share/cinnamon -name "*.ui.h" -exec xgettext --language=C --keyword=_ --keyword=N_ --output=cinnamon.pot --join-existing {} \;
xgettext --language=JavaScript --keyword=_ --keyword=N_ --output=cinnamon.pot --join-existing --from-code=UTF-8 js/*/*.js files/usr/share/cinnamon/*/*/*.js
xgettext -c --language=Python --keyword=_ --output=cinnamon.pot --join-existing generate_additional_files.py files/usr/share/cinnamon/*/*.py files/usr/share/cinnamon/*/*/*.py files/usr/bin/cinnamon-launcher files/usr/bin/xlet-about-dialog
files/usr/bin/cinnamon-xlet-makepot -j -p -o cinnamon.pot files/usr/share/cinnamon/applets/
files/usr/bin/cinnamon-xlet-makepot -j -p -o cinnamon.pot files/usr/share/cinnamon/desklets/
find files/usr/share/cinnamon -name "*.ui.h" -exec rm -f {} \;