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.
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
On May 9, 1:25 pm, dupola <dup...@gmail.com> wrote:
> 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.
> 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
> On May 9, 1:25 pm, dupola <dup...@gmail.com> wrote:
> > 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.
On Fri, May 09, 2008 at 10:25:00AM -0700, dupola wrote:
> 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?
As of r1693 this is fixed and you can specify your locale in config.php.