Skip to content

Commit

Permalink
Add notes and changes to new language submission, since pull requests…
Browse files Browse the repository at this point in the history
… are not accepted anymore
  • Loading branch information
guysoft committed Sep 25, 2013
1 parent f9deb2d commit e7db320
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions doc/i18n.rst
Expand Up @@ -27,8 +27,9 @@ Adding a New Language
If you want to add an entirely new language to CKAN, you have two options.

* :ref:`i18n-transifex`. Creating translation files using Transifex, the open source translation software.
* :ref:`i18n-manual`. Creating translation files manually.
* :ref:`i18n-manual`. Creating translation files manually in your own branch.

.. note:: Translating CKAN in Transifex is only enabled when a 'call for translations' is issued.

.. _i18n-transifex:

Expand Down Expand Up @@ -64,8 +65,6 @@ The Transifex workflow is as follows:
Manual Setup
------------

If you prefer not to use Transifex, you can create translation files manually.

.. note:: Please keep the CKAN core developers aware of new languages created in this way.

All the English strings in CKAN are extracted into the ``ckan.pot`` file, which can be found in ``ckan/i18n``.
Expand Down Expand Up @@ -106,13 +105,13 @@ We recommend using a translation tool, such as `poedit <http://www.poedit.net/>`
3. Commit the Translation
++++++++++++++++++++++++++

When the po is complete, commit it to the CKAN i18n repo::

When the po is complete, create a branch in your source, then commit it to the CKAN i18n repo::
git checkout master
git branch translation-YOUR_LANGUAGE
git add ckan/i18n/YOUR_LANGUAGE/LC_MESSAGES/ckan.po
git commit -m '[i18n]: New language po added: YOUR_LANGUAGE' ckan/i18n/YOUR_LANGUAGE/LC_MESSAGES/ckan.po
git push

.. note:: You need to be given credentials to do this - to request these, contact the `ckan-discuss <http://lists.okfn.org/mailman/listinfo/ckan-discuss>`_ list.
git push origin translation-YOUR_LANGUAGE

4. Compile a Translation
++++++++++++++++++++++++
Expand Down

0 comments on commit e7db320

Please sign in to comment.