diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-04-07 00:30:43 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-04-10 15:40:48 +0200 |
commit | 758b7bf054f9dcb888211900eaab5f58d463c909 (patch) | |
tree | a7bb27bada018e4cf78866a394f83f82b3e8fcb3 /web | |
parent | f507f360a09ce3a42da02810753bde982f6e8e42 (diff) | |
download | aur-758b7bf054f9dcb888211900eaab5f58d463c909.tar.gz aur-758b7bf054f9dcb888211900eaab5f58d463c909.tar.xz |
Convert translation files to gettext compatible portable objects.
Put new gettext compatible files into "po/" while keeping old
translations in "web/lang/".
Conversion was done using following hacky shell script:
----
for f in *.po; do
# Remove "<?php" shebang and "global" statements.
sed -i '1d; /^global/d' "$f"
# Convert former translation strings into real PO statements.
sed -i 's/^$_t\[\(.*\)\] = \(.*\);.*/msgid \1\nmsgstr \2/' "$f"
# Ensure there always is an empty line after each msgstr.
sed -i '/^msgstr/!b; n; /^$/!i\
' "$f"
done
----
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web')
0 files changed, 0 insertions, 0 deletions