{% extends "_layout.html" %} {% block title %}New Translator's Guide{% endblock %} {% block content %} Here's a very quick guide to getting started.

How to Translate the Website

  1. Preparation
    1. Come to #i2p-dev on irc and talk to people. Claim the language - To make sure other coworkers don't bump onto the files you are working on, please update the translation status on this wiki page .
    2. Follow the new developer's guide, Including the installation of monotone, checking out i2p.www branch, and generate your own monotone keys. It is not required that you sign a dev agreement.
  2. Create files: If the file for your language does not exist yet, copy another language file to a new file foo_xx.bar for your language. Then 'mtn add' the file. Also add a _layout_xx.html for your language xx. Add a flag image file for the menu (copy from the router).
  3. Edit files: Edit _layout_xx.html and _menu.html, and other files. Edit the files with any text editor. Be sure not to use an editor in HTML mode that reformats everything.
  4. Check in: 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.
  5. Repeat. Check in often. Don't wait until it is perfect.

How to Translate the Router Console

  1. Preparation
    1. Come to #i2p-dev on irc and talk to people. Claim the language - To make sure other coworkers don't bump onto the files you are working on, please update the translation status on this wiki page .
    2. Follow the new developer's guide, Including the installation of monotone and the gettext tools, checking out i2p.i2p branch, and generate your own monotone keys.
    3. Generate your own gpg key and sign the dev agreement.
  2. Before starting a console translation, better help translate some i2p webpages first. At least an i2p homepage in your language would be great. This will also help you learn monotone.
  3. What to translate: There are about 15 files in the i2p.i2p branch that needs translation:
    1. installer/resources/readme/readme_xx.html
    2. installer/resources/initialNews/initialNews_xx.xml
    3. apps/routerconsole/locale/messages_xx.po
    4. installer/resources/proxy/*_xx.ht (about 9 files)
    5. apps/routerconsole/jsp/help_xx.jsp
    6. installer/resources/eepsite.help/help/index_xx.html
    7. apps/i2ptunnel/locale/messages_xx.po
    8. apps/i2psnark/locale/messages_xx.po
    9. apps/susidns/locale/messages_xx.po
    Where xx is your language code like fr/de/ch/zh/... There may be or may not be files with your lang code. If not, you can create your own. by copying and renaming other language files you know with your own lang code.
  4. Create files: If the file for your language does not exist yet, copy another language file to a new file foo_xx.bar for your language. Then 'mtn add' the file. After creating a .po file, edit the headers. Then run 'ant distclean poupdate'.
  5. Start to work: Edit the HTML files with any text editor. Be sure not to use an editor in HTML mode that reformats everything. To work with .po files efficiently, you may wish to use POEdit
  6. Check in: 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.
  7. Repeat. Check in often. Don't wait until it is perfect.
As you see it's simple. If you have questions about the meaning of the terms in the console, ask in #i2p-dev on IRC.

FAQ

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?

Answer: Several reasons:

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.

More Information

The #i2p-dev channel on IRC, or the translation forum on zzz.i2p. {% endblock %}