[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sup-talk] i18n?



Excerpts from Fabio Riga's message of Mi Okt 21 14:29:59 +0200 2009:
> Well, I'm really interested, but I'm just a user. I could only make
> Italian translation, but how? Is it a normal gettext .po file? What I
> have to do?

Get my sup clone git repository at gitorious: 

$ git clone git://gitorious.org/~bakkdoor/sup/bakkdoors-clone.git

Then, checkout the i18n branch.

$ cd bakkdoors-clone
$ git checkout i18n

Then have a look at the m17n folder. You should find a de.yaml and
en.yaml file.  They are for german and english translations. You can
create your own translation files in there. For example, fr.yaml for
french or it.yaml for italian.  Have a look at en.yaml to see, what
the original texts are (in english) and come up with your own
translation. That's basically it. Then, if you have sup set up to run
from that branch, you can set within your sup config file
(~/.sup/config.yaml) to use any language, e.g.:

:language: de

for german. Sup will then look into the m17n folder for a file called "de.yaml"

I hope that helped.

Cheers,
Christopher.
-- 
================================
Christopher Bertels
http://www.adztec-independent.de
GPG Key ID: 0x2345b203

Attachment: signature.asc
Description: PGP signature

_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk