Skip to content

Commit

Permalink
Note that translation workflow is WIP now.
Browse files Browse the repository at this point in the history
Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
  • Loading branch information
omasanori committed Jan 14, 2014
1 parent 1ba61b9 commit 006d169
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,15 @@ http://kramdown.rubyforge.org/quickref.html

# Notes for translators

Notice: The procedure described below is a work in progress. We are working on
translation system but the procedure contains some manual operations for now.

To start the translation for a new language, see po4a.conf at first.

To generate .pot and .po files, do something like:

~~~~
po4a --copyright-holders="The Rust Project Developers" \
po4a --copyright-holder="The Rust Project Developers" \
--package-name="Rust" \
--package-version="0.10-pre" \
-M UTF-8 -L UTF-8 \
Expand All @@ -71,13 +74,13 @@ change:

~~~~
for f in doc/po/**/*.po; do
msgattrib --untranslated $f -o $f.strip
msgattrib --translated $f -o $f.strip
if [ -e $f.strip ]; then
mv $f.strip $f
else
rm $f
fi
done
~~~~
~~~~

This removes untranslated entries from .po files to save disk space.

5 comments on commit 006d169

@bors
Copy link
Contributor

@bors bors commented on 006d169 Jan 14, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 006d169 Jan 14, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging omasanori/rust/reduce-po = 006d169 into auto

@bors
Copy link
Contributor

@bors bors commented on 006d169 Jan 14, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

omasanori/rust/reduce-po = 006d169 merged ok, testing candidate = d150f6b

@bors
Copy link
Contributor

@bors bors commented on 006d169 Jan 14, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 006d169 Jan 14, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = d150f6b

Please sign in to comment.