{% extends "global/layout.html" %} {% block title %}{% trans %}New Translator's Guide{% endtrans %}{% endblock %} {% block content %} {% trans %}Here's a very quick guide to getting started.{% endtrans %}
{% trans transifex='https://www.transifex.com/projects/p/I2P/' -%} Translation of the website is done with .po files. The easiest way by far to translate the website is to sign up for an account at Transifex and request to join a translation team. Alternatively it can be done "the old way" as outlined below. {%- endtrans %}
./extract-messages.sh
" to generate a messages.pot
in the base directory.
Edit the header of this file, then run "./init-new-po.sh locale
" to generate the file
i2p2www/translations/locale/LC_MESSAGES/messages.po
. "mtn add
" this file.
{%- endtrans %}i2p2www/pages/global/lang.html
and add a line for your language (copy an existing line).
{%- endtrans %}i2p2www/static/images/flags/
for the menu (copy from the router).
{%- endtrans %}i2p2www/translations/locale/LC_MESSAGES/messages.po
.
To work with .po files efficiently, you may wish to use POEdit
{%- endtrans %}mtn pull
", "mtn update
". Then check in by "mtn ci -k yourname@mail.i2p file1 file2 ...
"
This collects the diff info of your changed file into your local repo. Then "mtn sync mtn.i2p2.de -k yourname-transport@mail.i2p i2p.i2p
".
This synchronizes your local repo with the repo on the target machine.
{%- endtrans %}{% trans transifex='https://www.transifex.com/projects/p/I2P/' -%} The easiest way by far to translate the router console is to sign up for an account at Transifex and request to join a translation team. Alternatively it can be done "the old way" as outlined below. {%- endtrans %}
installer/resources/readme/readme_xx.html
installer/resources/initialNews/initialNews_xx.xml
apps/routerconsole/locale/messages_xx.po
installer/resources/proxy/*_xx.ht
(about 9 files)apps/routerconsole/jsp/help_xx.jsp
installer/resources/eepsite.help/help/index_xx.html
apps/i2ptunnel/locale/messages_xx.po
apps/i2psnark/locale/messages_xx.po
apps/susidns/locale/messages_xx.po
foo_xx.bar
for your language.
Then "mtn add
" the file.
After creating a .po file, edit the headers. Then run "ant distclean poupdate
".
{%- endtrans %}mtn pull
", "mtn update
". Then check in by "mtn ci -k yourname@mail.i2p file1 file2 ...
"
This collects the diff info of your changed file into your local repo. Then "mtn sync mtn.i2p2.de -k yourname-transport@mail.i2p i2p.i2p
".
This synchronizes your local repo with the repo on the target machine.
{%- endtrans %}{% trans -%}
As you can see, it's not that difficult.
If you have questions about the meaning of the terms in the console, ask in #i2p-dev
on IRC.
{%- endtrans %}
{% trans -%} Q: Why do I have to install monotone, Java, jsp, learn about .po files and html, etc.? Why can't I just do a translation and email it to you? {%- endtrans %}
{% trans %}A: Several reasons:{% endtrans %}
{% trans -%} In summary: Yes, we know it is somewhat of a hurdle to get started. It's really the only possible way we can do it. Give it a try, it really isn't that hard. {%- endtrans %}
{% trans zzz=i2pconv('zzz.i2p') -%} The #i2p-dev channel on IRC, or the translation forum on {{ zzz }}. {%- endtrans %}
{% endblock %}