Translating Blender

Blender documentation projects, tutorials, translation, learning & teaching Blender

Moderators: jesterKing, stiv

Post Reply
arangel
Posts: 0
Joined: Wed Oct 22, 2003 2:54 pm
Location: Brasília - Brazil
Contact:

Translating Blender

Post by arangel »

How can I add a missing language (Portuguese) to Blender (Buttons, tooltips...)

Alexandre Rangel

alien-xmp
Posts: 0
Joined: Sun Apr 06, 2003 2:22 pm
Location: Wellington, New Zealand
Contact:

Post by alien-xmp »

1. Grab an existing translation file (eg German)
1a. From the Blender source distribution - po/de.po
1b. From webcvs: http://projects.blender.org/viewcvs/vie ... bf-blender
2. Rename it from de.po to XX.po where XX is your country code. Country Codes: http://www.gnu.org/manual/gettext/html_ ... xt_16.html
3. The .po file consists of message ids (in English) and message strings.(translated) eg:
msgid "Start the rendering"
msgstr "Starte das rendern"
4. Translate all the msgstr's.
5. Compile the .po file to a .mo file with msgfmt (from gettext)
6. Copy the compiled .mo file to: .blender/locale/XX/LC_MESSAGES/blender.mo (XX = your country code)
7. Edit .blender/.Blanguages
8. Test.
9. Email your .po file to bf-committers@blender.org

Unless you're on Linux, compiling the .po file (step 5) is going to be the hardest part. I don't know if there is any easy way to get the compiler for Windows without downloading Cygwin. If you don't want to do that, post the .po file and I'll compile it for you. :)

Links:
The Gettext manual - http://www.gnu.org/manual/gettext/html_ ... t_toc.html
Gettext is the translation library.

KBabel: If you are on Linux :D KBabel is a GUI tool for doing translations - it's in the kdesdk package.

arangel
Posts: 0
Joined: Wed Oct 22, 2003 2:54 pm
Location: Brasília - Brazil
Contact:

Post by arangel »

Thank you very much, alien-xmp! I´ll work on that and keep you informed.

Well, I mainly work on Win, but have a machine with dual boot to Linux (Kurumin, a Brazilian distro of Knoppix). If I compile on Linux, will the .mo work on Windows too?
- Just read that .mo´s are compiled... so I guess they won´t work on Win if compiled on Linux...

Alexandre Rangel

kino
Posts: 93
Joined: Sun Oct 13, 2002 7:37 pm

Post by kino »

We do the italian translation and for win you can use poedit.sourceforge.net
it make also the .mo file but i dont know if it is valid for blender

do not translate OneWordTerms most of them are for internal use
the .mo linux version is valid for Win too as i know
you can download the it.po which is the only one translated at this time
can help a lot

ciao
kino
kino3d.com italian site

arangel
Posts: 0
Joined: Wed Oct 22, 2003 2:54 pm
Location: Brasília - Brazil
Contact:

Post by arangel »

alien-xmp, I´ve send you the br.po file by e-mail.

Alexandre Rangel
Last edited by arangel on Thu Oct 23, 2003 5:29 pm, edited 1 time in total.

arangel
Posts: 0
Joined: Wed Oct 22, 2003 2:54 pm
Location: Brasília - Brazil
Contact:

Post by arangel »

kino, thanks for your help, too.

Alexandre Rangel
Last edited by arangel on Thu Oct 23, 2003 5:28 pm, edited 1 time in total.

alien-xmp
Posts: 0
Joined: Sun Apr 06, 2003 2:22 pm
Location: Wellington, New Zealand
Contact:

Post by alien-xmp »

I have added Portuguese to tuhopuu2 cvs.

Wow - you Italian translators have gone all out - it looks like guys have done a much more complete translation than anybody else. If anyone wants to start a tranlation, you want to base it on it.po

.mo files should be portable to other OSs - by compile, it doesn't actually make cpu code, it just indexes it to make it fast to lookup.

arangel
Posts: 0
Joined: Wed Oct 22, 2003 2:54 pm
Location: Brasília - Brazil
Contact:

Post by arangel »

Yes, the Italian version is really good.

Kino, can I use the 1.3 po file as a basis for my work? Is it already done not translating OneWordTerms?? How can I spot those and not translate?
Í got to use poedit. The good thing is that it generates a valid .mo for Blender on the fly.

Alien-XMP, since you are already posting our .mo to Tuhoppu, i state something I forgot: that translation is for Brazilian Portuguese (a little different from Portuguese) ;).

I´ll work on a more complete version now, based on the Italian team work.

Alexandre Rangel

infinder
Posts: 2
Joined: Thu Feb 13, 2003 8:58 am
Contact:

Italian .po file??

Post by infinder »

Give me a direct link please, I want to make a Greek translation based on the Italion.po because the German.po doesn't covers all terms.
Yes the poedit do the job and creates valid .mo files. Thank you kino!!!

Stamatis

arangel
Posts: 0
Joined: Wed Oct 22, 2003 2:54 pm
Location: Brasília - Brazil
Contact:

Post by arangel »

This is where I got the italian .op from (version 1.3)...

http://projects.blender.org/viewcvs/vie ... er#dirlist

Rangel

kino
Posts: 93
Joined: Sun Oct 13, 2002 7:37 pm

Post by kino »

Hi all
soory for the late reply

Thanks all :) was a big work
thanks to point at the file arangel
infider here is the direct link, you can use at your own risk ;)
http://projects.blender.org/viewcvs/vie ... bf-blender

at the time of 2.28 i have added and corrected some terms but no one have committed (i think), here is the link to .po and .mo (not tested)
http://kino3d.com/blender-i18n-i/it.po.mo.zip
if someone can update the file with the new commands i can update the it.po
for the new 2.3, but Ton said there is no coder is working on the localization system at the moment

ciao
kino
kino3d.com italian site

arangel
Posts: 0
Joined: Wed Oct 22, 2003 2:54 pm
Location: Brasília - Brazil
Contact:

Post by arangel »

Kino, the last link you send for the it.po and .mo doesn´t work. Is that the latest Italian file we should work upon?

Alexandre Rangel

kino
Posts: 93
Joined: Sun Oct 13, 2002 7:37 pm

Post by kino »

arangel wrote:Kino, the last link you send for the it.po and .mo doesn´t work. Is that the latest Italian file we should work upon?

Alexandre Rangel

No why is not tested, use the 1.3 version
http://projects.blender.org/viewcvs/vie ... bf-blender

sorry for the wrong link http://kino3d.com/blender-i18n-it/it.po.mo.zip
i cannot compile ftgl this is why i cannot test with the current bf-blender,
ther's someone who can test it??

ciao
kino
kino3d.com italian site

Post Reply