Warning: Can't synchronize with repository "(default)" (/var/lib/mercurial/IrssiNotifier does not appear to contain a Mercurial repository.). Look in the Trac log for more information.

Changes between Initial Version and Version 1 of ContributeTranslation


Ignore:
Timestamp:
07-11-2007 18:49:50 (10 years ago)
Author:
s0undt3ch
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ContributeTranslation

    v1 v1  
     1= Contribute A Translation = 
     2 
     3If you'd like to contribute a translation, we're welcome to receive it. 
     4 
     5== How To Contribute Translation == 
     6 
     7In order to contribute a translation first check-out the !IrssiNotifier's source, 
     8{{{ 
     9svn co http://irssinotifier.ufsoft.org/svn/trunk IrssiNotifier 
     10}}} 
     11and go into that directory. 
     12 
     13Let's imagine that we want to translate the application into Spanish(es_ES), issue the following command on the shell: 
     14{{{ 
     15./setup.py init -l es_ES 
     16}}} 
     17and you'll get the following output: 
     18{{{ 
     19running init 
     20creating catalog 'irssinotifier/i18n/es_ES/LC_MESSAGES/irssinotifier.po' based on 'irssinotifier/i18n/irssinotifier.pot' 
     21}}} 
     22 
     23Now you should edit the resulting file to include the Spanish translations. Also, don't forget to update the headers from: 
     24{{{ 
     25# Spanish (Spain) translations for IrssiNotifier. 
     26# Copyright (C) 2007 UfSoft.org 
     27# This file is distributed under the same license as the IrssiNotifier 
     28# project. 
     29# FIRST AUTHOR <EMAIL@ADDRESS>, 2007. 
     30# 
     31msgid "" 
     32msgstr "" 
     33"Project-Id-Version: IrssiNotifier 0.2.0\n" 
     34"Report-Msgid-Bugs-To: " 
     35"http://irssinotifier.ufsoft.org/newticket?field_component=Translations\n" 
     36"POT-Creation-Date: 2007-11-07 17:50+0000\n" 
     37"PO-Revision-Date: 2007-11-07 18:28+0000\n" 
     38"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 
     39"Language-Team: es_ES <LL@li.org>\n" 
     40"Plural-Forms: nplurals=2; plural=(n != 1)\n" 
     41"MIME-Version: 1.0\n" 
     42"Content-Type: text/plain; charset=utf-8\n" 
     43"Content-Transfer-Encoding: 8bit\n" 
     44"Generated-By: Babel 1.0dev-r325\n" 
     45 
     46#. No need to translate the app name, just leave it blank 
     47 .... 
     48}}} 
     49to for example: 
     50{{{ 
     51# Spanish (Spain) translations for IrssiNotifier. 
     52# Copyright (C) 2007 UfSoft.org 
     53# This file is distributed under the same license as the IrssiNotifier 
     54# project. 
     55# Paulo Puentes <paulo.puentes@domain.tld>, 2007. 
     56# 
     57msgid "" 
     58msgstr "" 
     59"Project-Id-Version: IrssiNotifier 0.2.0\n" 
     60"Report-Msgid-Bugs-To: " 
     61"http://irssinotifier.ufsoft.org/newticket?field_component=Translations\n" 
     62"POT-Creation-Date: 2007-11-07 17:50+0000\n" 
     63"PO-Revision-Date: 2007-11-07 18:28+0000\n" 
     64"Last-Translator: Paulo Puentes <paulo.puentes@domain.tld>\n" 
     65"Language-Team: es_ES <LL@li.org>\n" 
     66"Plural-Forms: nplurals=2; plural=(n != 1)\n" 
     67"MIME-Version: 1.0\n" 
     68"Content-Type: text/plain; charset=utf-8\n" 
     69"Content-Transfer-Encoding: 8bit\n" 
     70"Generated-By: Babel 1.0dev-r325\n" 
     71 
     72#. No need to translate the app name, just leave it blank 
     73 .... 
     74}}} 
     75 
     76After you have everything translated, save the file. 
     77 
     78Now you have to compile that file to be usable by !IrssiNotifier: 
     79{{{ 
     80./setup.py compile 
     81}}} 
     82and you should get something like: 
     83{{{ 
     84running compile 
     850 of 50 messages (0%) translated in 'irssinotifier/i18n/en/LC_MESSAGES/irssinotifier.po' 
     86compiling catalog 'irssinotifier/i18n/en/LC_MESSAGES/irssinotifier.po' to 'irssinotifier/i18n/en/LC_MESSAGES/irssinotifier.mo' 
     870 of 50 messages (0%) translated in 'irssinotifier/i18n/es_ES/LC_MESSAGES/irssinotifier.po' 
     88compiling catalog 'irssinotifier/i18n/es_ES/LC_MESSAGES/irssinotifier.po' to 'irssinotifier/i18n/es_ES/LC_MESSAGES/irssinotifier.mo' 
     8946 of 50 messages (92%) translated in 'irssinotifier/i18n/fr_FR/LC_MESSAGES/irssinotifier.po' 
     90compiling catalog 'irssinotifier/i18n/fr_FR/LC_MESSAGES/irssinotifier.po' to 'irssinotifier/i18n/fr_FR/LC_MESSAGES/irssinotifier.mo' 
     9145 of 50 messages (90%) translated in 'irssinotifier/i18n/pt_PT/LC_MESSAGES/irssinotifier.po' 
     92compiling catalog 'irssinotifier/i18n/pt_PT/LC_MESSAGES/irssinotifier.po' to 'irssinotifier/i18n/pt_PT/LC_MESSAGES/irssinotifier.mo' 
     93}}} 
     94 
     95Now launch !IrssiNotifier using the Spanish translation: 
     96{{{ 
     97irssi-notifier --gui -l es_ES 
     98}}} 
     99 
     100If everything works correctly, do: 
     101{{{ 
     102svn add irssinotifier/i18n/es_ES 
     103}}} 
     104and now get a diff file to send to us: 
     105{{{ 
     106svn diff > irssinotifier.es_ES.po 
     107}}} 
     108 
     109This resulting `irssinotifier.es_ES.po` file should be [/newticket?component=Translations&summary=New%20Translation&type=enhancement submitted to us] so we can include it in the next release.