-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate_strings.sh
executable file
·44 lines (36 loc) · 1.13 KB
/
update_strings.sh
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh
#
# PROJECT: Wine Launcher
# DESC: Wine Launcher Update Strings Shell Script
# AUTHOR: Erdem Ersoy
# LICENSE: CC0-1.0
APP_NAME=wine-launcher
APP_VERSION=0.1.0
xgettext --default-domain=${APP_NAME} \
--lang=Python \
--from-code=utf-8 \
--output=${APP_NAME}.pot \
--package-name=${APP_NAME} \
--package-version=${APP_VERSION} \
WineLauncher.py
xgettext --default-domain=${APP_NAME} \
--lang=Glade \
--from-code=utf-8 \
--output=${APP_NAME}.pot \
--package-name=${APP_NAME} \
--package-version=${APP_VERSION} \
WineLauncher.glade
msgmerge --lang=en \
--update \
locale/en/LC_MESSAGES/${APP_NAME}.po \
${APP_NAME}.pot
msgmerge --lang=tr \
--update \
locale/tr/LC_MESSAGES/${APP_NAME}.po \
${APP_NAME}.pot
msgfmt --check --directory=locale/en/LC_MESSAGES/ \
--output-file=locale/en/LC_MESSAGES/${APP_NAME}.mo \
${APP_NAME}.po \
msgfmt --check --directory=locale/tr/LC_MESSAGES/ \
--output-file=locale/tr/LC_MESSAGES/${APP_NAME}.mo \
${APP_NAME}.po \