From 6c0a08984d1b1e07752c0add6cc9415ce0abfd75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20M=C3=B6ller?= Date: Sun, 20 Feb 2011 16:57:08 +0100 Subject: [PATCH] Adding documentation for translators We have changed to xgettext creating first version of documentation. This can be converted into a nice pdf by rst2pdf. --- docs/translation.rst | 77 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 docs/translation.rst diff --git a/docs/translation.rst b/docs/translation.rst new file mode 100644 index 00000000..6057a9ed --- /dev/null +++ b/docs/translation.rst @@ -0,0 +1,77 @@ +*********** +Translation +*********** + +DAViCAL uses the standard translation infrastructure of many projects. +It is based on ``gettext`` (http://www.gnu.org/software/gettext/). + +Translators +=========== + +Translating DAViCal +------------------- + +All translation of DAViCal is done by the Transifex tool (http://transifex.org/). +We are using the Transifex service (http://www.transifex.net/) to translate the software. + +To translate DAViCal go to http://www.transifex.net/projects/p/davical. +You can register an account there and then translate DAViCal in the webbrowser to your language. +Furthermore you can improve existing translations and join the team of your language. + +Developers +========== + +Adding translatable string to the PHP-Source +-------------------------------------------- + +DAViCal currently does not use ``_()`` but has two functions to do the translation. +These functions are named ``i18n()`` and ``translate()``. + +With ``translate()`` a message can be directly translated. + +.. code-block:: php + +