Removed PO files from repository

Currently, message translation is done at launchpad.  All PO files can
be exported from there. The merge process from launchpad is done when
new release. First download export file from launchpad And use
import-po script to import PO files into po directory.
pull/36/head
Tatsuhiro Tsujikawa 2012-11-28 23:42:08 +09:00
parent 74520b03f8
commit 8ce0e69c2b
33 changed files with 74 additions and 91523 deletions

49
import-po Executable file
View File

@ -0,0 +1,49 @@
#!/bin/sh -e
# Update po files using launchpad-export.tar.gz
WORK_DIR=launchpad-work
INPUT_TGZ=$1
PO_DIR=po
if [ -z "$INPUT_TGZ" ]; then
echo "Usage: import-po /path/to/launchpad-export.tar.gz"
echo "Specify input launchpad-export.tar.gz file"
exit 1
fi
if [ ! -e "$INPUT_TGZ" ]; then
echo "Input file $INPUT_TGZ does not exist"
exit 1
fi
if [ -e "$WORK_DIR" ]; then
rm -rf "$WORK_DIR"
fi
mkdir "$WORK_DIR"
echo "Extracting po files from the archive..."
tar -x -C "$WORK_DIR" -f "$INPUT_TGZ"
echo "Renaming po files..."
# The directory structure of launchpad-export.tar.gz is a bit
# strange. It even contains absolute file path. We first gather all
# files in top level directory.
mv "$WORK_DIR"/aria2/*.po "$WORK_DIR"
echo -n "en@quot en@boldquot" > "$PO_DIR"/LINGUAS
for file in `ls "$WORK_DIR"/*.po`; do
# First remove useless '\r' in messages
sed -i -e 's/\\r//' "$file"
bn=`basename "$file"`
bn=${bn#aria2-}
dst="$PO_DIR"/"$bn"
# copy file to po directory
echo "Moving \`$file' to \`$dst'..."
mv "$file" "$dst"
# Upate LINGUAS here too.
echo -n " ${bn%.po}" >> "$PO_DIR"/LINGUAS
done
rm -rf "$WORK_DIR"
cd "$PO_DIR"
make update-po

View File

@ -1 +0,0 @@
ar bg ca da de el es fi fr he hu id it ja ko nl nn pl pt pt_BR ru sk sr sv th tr uk vi zh_CN zh_TW en@quot en@boldquot

25
po/README.rst Normal file
View File

@ -0,0 +1,25 @@
GNU gettext translation files
=============================
We use `launchpad
<https://translations.launchpad.net/aria2/trunk/+pots/aria2>`_ to
translate gettext translation files (PO files).
The PO files are not stored in the repository. They are exported from
launchpad and imported to this directory when creating the
distribution archive.
Exporting PO files from launchpad
---------------------------------
Visit `launchpad <https://translations.launchpad.net/aria2/trunk/+pots/aria2>`_
and follow the link ``download``.
Importing PO files from launchpad-export.tar.gz
-----------------------------------------------
The downloaded file is named as launchpad-export.tar.gz at the time of
this writing. It includes all PO files translated at launchpad. To
import those files, use ``import-po`` script in the top directory. It
will deflate the tar.gz file and rename PO files and move them to po
directory and run ``make update-po``.

2638
po/ar.po

File diff suppressed because it is too large Load Diff

3633
po/bg.po

File diff suppressed because it is too large Load Diff

3051
po/ca.po

File diff suppressed because it is too large Load Diff

2870
po/da.po

File diff suppressed because it is too large Load Diff

2880
po/de.po

File diff suppressed because it is too large Load Diff

3730
po/el.po

File diff suppressed because it is too large Load Diff

2686
po/es.po

File diff suppressed because it is too large Load Diff

3689
po/fi.po

File diff suppressed because it is too large Load Diff

2986
po/fr.po

File diff suppressed because it is too large Load Diff

2836
po/he.po

File diff suppressed because it is too large Load Diff

2687
po/hu.po

File diff suppressed because it is too large Load Diff

3424
po/id.po

File diff suppressed because it is too large Load Diff

3208
po/it.po

File diff suppressed because it is too large Load Diff

4636
po/ja.po

File diff suppressed because it is too large Load Diff

2678
po/ko.po

File diff suppressed because it is too large Load Diff

2830
po/nl.po

File diff suppressed because it is too large Load Diff

2702
po/nn.po

File diff suppressed because it is too large Load Diff

2630
po/pl.po

File diff suppressed because it is too large Load Diff

2699
po/pt.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

3672
po/ru.po

File diff suppressed because it is too large Load Diff

2695
po/sk.po

File diff suppressed because it is too large Load Diff

2891
po/sr.po

File diff suppressed because it is too large Load Diff

2982
po/sv.po

File diff suppressed because it is too large Load Diff

2795
po/th.po

File diff suppressed because it is too large Load Diff

2977
po/tr.po

File diff suppressed because it is too large Load Diff

4064
po/uk.po

File diff suppressed because it is too large Load Diff

2609
po/vi.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff