51 |
} |
} |
52 |
|
|
53 |
potempl() { |
potempl() { |
54 |
xgettext -L perl -o - $@ \ |
xgettext --from-code UTF-8 -L perl -o - $@ \ |
55 |
| sed 's@charset=CHARSET@charset=UTF-8@;s@[^ ]*/root/@root/@g;s@Project-Id-Version.*\\n@Project-Id-Version: SME Console\\n@' \ |
| sed 's@charset=CHARSET@charset=UTF-8@;s@[^ ]*/root/@root/@g;s@Project-Id-Version.*\\n@Project-Id-Version: SME Console\\n@' \ |
56 |
| sed '/Report-Msgid-Bugs-To/d;/POT-Creation-Date/d;/PO-Revision-Date/d;/Language-Team/d;/X-Generator/d;0,/^msgid/{/^#/d}' \ |
| sed '/Report-Msgid-Bugs-To/d;/POT-Creation-Date/d;/PO-Revision-Date/d;/Language-Team/d;/X-Generator/d;0,/^msgid/{/^#/d}' \ |
57 |
| msgcat -F -t UTF-8 - |
| msgcat -F -t UTF-8 - |
85 |
-k=N_ \ |
-k=N_ \ |
86 |
-o - \ |
-o - \ |
87 |
$(sed -n '/\.py/s@^\([^ \t]\+\)[ \t]\+\([^/]\+\)\(/.*\)\?@/etc/pootle/cvs/smeserver/\2/sme7/\2-*\3/\1@p' \ |
$(sed -n '/\.py/s@^\([^ \t]\+\)[ \t]\+\([^/]\+\)\(/.*\)\?@/etc/pootle/cvs/smeserver/\2/sme7/\2-*\3/\1@p' \ |
88 |
/etc/pootle/cvs/smeserver/cdrom.image/updates/README.txt) \ |
/etc/pootle/cvs/smeserver/cdrom.image/sme7/updates/README.txt) \ |
89 |
/etc/pootle/cvs/smeserver/cdrom.image/updates/*.py \ |
$(sed -n '/\.py/s@^\([^ \t]\+\)[ \t]\+\([^/]\+\)\(/.*\)\?@/etc/pootle/cvs/smeserver/\2/sme8/\2-*\3/\1@p' \ |
90 |
/etc/pootle/cvs/smeserver/cdrom.image/product/installclasses/*.py \ |
/etc/pootle/cvs/smeserver/cdrom.image/sme8/updates/README.txt) \ |
91 |
| sed 's@charset=CHARSET@charset=UTF-8@;s@[^ ]*/sme7/[^:]\+/\([^:]\+\):@updates/\1:@g;s@[^ ]*/cdrom.image/@@g;' \ |
/etc/pootle/cvs/smeserver/cdrom.image/sme7/updates/*.py \ |
92 |
| sed 's@Project-Id-Version.*\\n@Project-Id-Version: SME Anaconda\\n@' \ |
/etc/pootle/cvs/smeserver/cdrom.image/sme7/product/installclasses/*.py \ |
93 |
|
/etc/pootle/cvs/smeserver/cdrom.image/sme8/updates/*.py \ |
94 |
|
/etc/pootle/cvs/smeserver/cdrom.image/sme8/updates/installclasses/*.py \ |
95 |
|
| sed 's@charset=CHARSET@charset=UTF-8@;s@Project-Id-Version.*\\n@Project-Id-Version: SME Anaconda\\n@' \ |
96 |
|
| sed 's@/etc/pootle/cvs/smeserver/[^/]\+/@@' \ |
97 |
| msgcat -u \ |
| msgcat -u \ |
98 |
--use-first \ |
--use-first \ |
99 |
- \ |
- \ |
100 |
<(sed 's@CHARSET@UTF-8@' /etc/pootle/cvs/smeserver/anaconda/sme7/anaconda-*/po/anaconda.pot) \ |
<(sed 's@CHARSET@UTF-8@' /etc/pootle/cvs/smeserver/anaconda/sme7/anaconda-*/po/anaconda.pot) \ |
101 |
<(sed 's@CHARSET@UTF-8@' /etc/pootle/cvs/smeserver/anaconda/sme7/anaconda-*/po/anaconda.pot) \ |
<(sed 's@CHARSET@UTF-8@' /etc/pootle/cvs/smeserver/anaconda/sme7/anaconda-*/po/anaconda.pot) \ |
102 |
|
<(sed 's@CHARSET@UTF-8@' /etc/pootle/cvs/smeserver/anaconda/sme8/anaconda-*/po/anaconda.pot) \ |
103 |
|
<(sed 's@CHARSET@UTF-8@' /etc/pootle/cvs/smeserver/anaconda/sme8/anaconda-*/po/anaconda.pot) \ |
104 |
| sed '/Report-Msgid-Bugs-To/d;/POT-Creation-Date/d;/PO-Revision-Date/d;/Last-Translator/d;/Language-Team/d;/X-Generator/d;0,/^msgid/{/^#/d}' \ |
| sed '/Report-Msgid-Bugs-To/d;/POT-Creation-Date/d;/PO-Revision-Date/d;/Last-Translator/d;/Language-Team/d;/X-Generator/d;0,/^msgid/{/^#/d}' \ |
105 |
| msgcat -F -t UTF-8 - |
| msgcat -F -t UTF-8 - |
106 |
} |
} |