{% 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. Note that for both (website/console) there is an easy way using a translation web-site (and requiring nothing else than to use that) and the other way which requires you to set up a build-environment (installing software etc.).{% endtrans %}

{% trans %}How to Translate the Website{% 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 %}

  1. {% trans %}Preparation{% endtrans %}
    1. {% trans url='http://'+i2pconv('ugha.i2p')+'/i2pTranslation' -%} 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. {%- endtrans %}
    2. {% trans newdevs=site_url('get-involved/guides/new-developers') -%} Follow the new developer's guide, including the installation of git and the gettext tools. You will need the i2p.www repository. It is not required that you sign a dev agreement. {%- endtrans %}
  2. {% trans -%} Create files: If the file for your language does not exist yet: {%- endtrans %}
    1. {% trans -%} Run "./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 %}
    2. {% trans -%} Edit i2p2www/pages/global/lang.html and add a line for your language (copy an existing line). {%- endtrans %}
    3. {% trans -%} Add a flag image file to i2p2www/static/images/flags/ for the menu (copy from the router). {%- endtrans %}
  3. {% trans -%} Edit files: Edit i2p2www/translations/locale/LC_MESSAGES/messages.po. To work with .po files efficiently, you may wish to use POEdit {%- endtrans %}
  4. {% trans -%} Git Workflow: You can then add all new and changed files to your next commit using git add . (or specify which files instead of the dot). Please note the suggested workflow for git on our git-page. {%- endtrans %}
  5. {% trans -%} Repeat. Check in often. Don't wait until it is perfect. {%- endtrans %}

{% trans %}How to Translate the Router Console{% 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 %}

  1. {% trans %}Preparation{% endtrans %}
    1. {% trans url='http://'+i2pconv('ugha.i2p')+'/i2pTranslation' -%} 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. {%- endtrans %}
    2. {% trans newdevs=site_url('get-involved/guides/new-developers') -%} Follow the new developer's guide, including the installation of git and the gettext tools. You will need the i2p.i2p repository. {%- endtrans %}
    3. {% trans -%} Generate your own gpg key and sign the dev agreement. {%- endtrans %}
  2. {% trans -%} Before starting a console translation, better help translate some i2p webpages first. At least an i2p homepage in your language would be great. {%- endtrans %}
  3. {% trans -%} What to translate: There are about 15 files in the i2p.i2p branch that needs translation: {%- endtrans %} {% trans -%} 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. {%- endtrans %}
  4. {% trans -%} 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". {%- endtrans %}
  5. {% trans -%} 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 {%- endtrans %}
  6. {% trans -%} Git Workflow: You can then add all new and changed files to your next commit using git add . (or specify which files instead of the dot). Please note the suggested workflow for git on our git-page. {%- endtrans %}
  7. {% trans -%} Repeat. Check in often. Don't wait until it is perfect. {%- 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 %}FAQ{% endtrans %}

{% trans -%} Q: Why do I have to install git, 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: You do not / 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 %}More Information{% endtrans %}

{% trans zzz=i2pconv('zzz.i2p') -%} The #i2p-dev channel on IRC, or the translation forum on {{ zzz }}. {%- endtrans %}

{% endblock %}