Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2004-10-28 13:03:51

Oddsson
New Member
From: Munich, Germany
Registered: 2004-10-28
Posts: 2

Translation HOWTO?

Are there any general instructions on how to go about translating Txp to one’s own language? What needs to be done? Can I immediately start using my translation or must I submit it to the developer(s) first?

I’ve tried searching around the forums but haven’t found anything concrete. I believe that we could all use a thorough HOWTO on this subject.

Offline

#2 2004-10-28 16:13:00

hafnius
Archived Plugin Author
From: DK
Registered: 2004-09-02
Posts: 47

Re: Translation HOWTO?

What you need to do to translate TXP to your own lang:

Translate Textpattern/lang/en-gb.txt
Translate the date/time

To use the new lang you need to change two files:

Near the top of /publish.php you need to change:

$textarray = load_lang('en-gb');

should be

$textarray = load_lang('your-lang');

Near the top of /index.php you need to change:

define("LANG","en-gb");

should be

define("LANG","your-lang");

That should be it – other members might have something to add or correct :)

Last edited by hafnius (2004-10-28 16:14:01)


– Nobody puts Baby in the corner !
Johnny Castle, Dirty Dancing

Offline

#3 2004-10-29 17:40:10

Oddsson
New Member
From: Munich, Germany
Registered: 2004-10-28
Posts: 2

Re: Translation HOWTO?

How/where does the language selection under Admin->Preferences come into play here?

Offline

#4 2004-10-29 23:44:12

hafnius
Archived Plugin Author
From: DK
Registered: 2004-09-02
Posts: 47

Re: Translation HOWTO?

AFAIK it does not :) its for future use so it becomes possible to switch the lang here instead of fiddling with code.
/Hafnius

Last edited by hafnius (2004-10-29 23:44:58)


– Nobody puts Baby in the corner !
Johnny Castle, Dirty Dancing

Offline

Board footer

Powered by FluxBB