forked from linuxmint/cinnamon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makepot
executable file
·15 lines (11 loc) · 1.06 KB
/
makepot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
intltool-extract --type=gettext/glade files/usr/share/cinnamon/cinnamon-menu-editor/cinnamon-menu-editor.ui
intltool-extract --type=gettext/glade files/usr/share/cinnamon/cinnamon-settings/cinnamon-online-accounts-info.ui
xgettext --language=C --keyword=_ --keyword=N_ --output=cinnamon.pot src/*.c src/*/*.c files/usr/share/cinnamon/cinnamon-menu-editor/cinnamon-menu-editor.ui.h files/usr/share/cinnamon/cinnamon-settings/cinnamon-online-accounts-info.ui.h
xgettext --language=JavaScript --keyword=_ --keyword=N_ --output=cinnamon.pot --join-existing --from-code=UTF-8 js/*/*.js files/usr/share/cinnamon/*/*/*.js
xgettext --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
cd files
usr/share/cinnamon/cinnamon-json-makepot/cinnamon-json-makepot.py ../cinnamon
cd ..
rm -f files/usr/share/cinnamon/cinnamon-menu-editor/cinnamon-menu-editor.ui.h
rm -f files/usr/share/cinnamon/cinnamon-settings/cinnamon-online-accounts-info.ui.h