-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgettext.txt
17 lines (16 loc) · 1.1 KB
/
gettext.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Initialisierung
---------------
mkdir -p po/de
xgettext -L Shell --add-comments=## usr/bin/install-software-upgrades*
vi messages.po #header richtig füllen
cp messages.po po/de/install-software-upgrades.po
vi po/de/install-software-upgrades.po # erste Übersetzung
cd po; for i in *; do cd $i; msgfmt -o install-software-upgrades.mo install-software-upgrades.po; cd ..; done; cd ..
cd po; for i in *; do cd $i; MDIR="../../usr/share/locale/$i/LC_MESSAGES/"; mkdir -p ${MDIR}; rm -f ${MDIR}/install-software-upgrades.mo; cp install-software-upgrades.mo ${MDIR}; cd ..; done; cd ..
Update:
-------
xgettext -L Shell --add-comments=## usr/bin/install-software-upgrades*
cd po; for i in *; do cd $i; msgmerge -U install-software-upgrades.po ../../messages.po; cd ..; done; cd ..
vi po/*/install-software-upgrades.po
cd po; for i in *; do cd $i; msgfmt -o install-software-upgrades.mo install-software-upgrades.po; cd ..; done; cd ..
cd po; for i in *; do cd $i; MDIR="../../usr/share/locale/$i/LC_MESSAGES/"; mkdir -p ${MDIR}; rm -f ${MDIR}/install-software-upgrades.mo; cp install-software-upgrades.mo ${MDIR}; cd ..; done; cd ..