How can I use habari in my own language?

11 views
Skip to first unread message

dupola

unread,
May 9, 2008, 1:25:00 PM5/9/08
to habari-users
Hello,

Now I am using habari 0.5-alpha, and I have translated it to
Chinese,but I don't know how to use it.

I put the po and mo files in "system\locale\zh-cn\LC_MESSAGES" and
then I modified "// $locale = '{$locale}';';" of the config.php to
"$locale = 'zh-cn';", but now it does not work.

Who know how to fix it?

Thanks
dupola
http://dupola.com

rick c

unread,
May 9, 2008, 3:34:28 PM5/9/08
to habari-users
Thank you for your translation!

Even though translation work has begun, Habari hasn't got all the
internal plumbing to use it hooked up, yet. English is hardcoded as
the locale in the index.php file that is in the root of Habari's
install directory. If you open that file, find the line that says

Locale::set( 'en-us' );

and replace it with

Locale::set('zh-cn');

it may be enough for Habari to use your translation.

Rick

dupola

unread,
May 9, 2008, 5:07:11 PM5/9/08
to habari-users
Oh I see...

Many thanks.

dupola

Michael C. Harris

unread,
May 10, 2008, 1:53:41 AM5/10/08
to habari...@googlegroups.com

As of r1693 this is fixed and you can specify your locale in
config.php.

--
Michael C. Harris, School of CS&IT, RMIT University
http://twofishcreative.com/michael/blog

Reply all
Reply to author
Forward
0 new messages