Author Topic: Translation does not work  (Read 1790 times)

Offline SlavaRom

  • User
  • *
  • Posts: 8
    • View Profile
Translation does not work
« on: April 26, 2010, 10:46:58 PM »
Hello! There is such problem. Translation does not work.
http://www.knowledgeroot.ru

phpinfo link: http://www.knowledgeroot.ru/phpinfo.php

What to me to do?
« Last Edit: April 26, 2010, 10:51:10 PM by SlavaRom »

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 553
    • View Profile
    • http://www.lordlamer.de
Re: Translation does not work
« Reply #1 on: April 27, 2010, 07:56:14 AM »
Have you enabled all the locales for the translations you want to use?
This must be done on the linux system!

With knowledgeroot 1.0 this will be obsolete because in version 1.0 we will use the gettext implementation from zendframework that does not need this procedure.

regards
Frank

Offline SlavaRom

  • User
  • *
  • Posts: 8
    • View Profile
Re: Translation does not work
« Reply #2 on: April 27, 2010, 08:50:21 AM »
I use knowledgeroot-0.9.9.5. On Linux. A base set of languages (fr, es, nl...). All do not work, except English.

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 553
    • View Profile
    • http://www.lordlamer.de
Re: Translation does not work
« Reply #3 on: April 27, 2010, 09:20:12 AM »
Yes. But you need to enable the locales in the linux system itself.
On a debian based system i make a dpkg-reconfigure locales and select all the locales i need and so the translations work.

Frank

Offline SlavaRom

  • User
  • *
  • Posts: 8
    • View Profile
Re: Translation does not work
« Reply #4 on: April 27, 2010, 09:47:57 AM »
That to me to be switched to the French language, on a hosting should be established gettext (--with-gettext)?
Unfortunately I do not have possibility to influence options of a hosting and PHP.

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 553
    • View Profile
    • http://www.lordlamer.de
Re: Translation does not work
« Reply #5 on: April 27, 2010, 10:17:34 AM »
If you have no root rights to the server you need to contact your hoster/administrator that he should enable this locales!

Frank

Offline SlavaRom

  • User
  • *
  • Posts: 8
    • View Profile
Re: Translation does not work
« Reply #6 on: April 27, 2010, 08:11:36 PM »
My hoster does not wish to change compilation php. :-(
As I can download and install knowledgeroot 1.0 ?

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 553
    • View Profile
    • http://www.lordlamer.de
Re: Translation does not work
« Reply #7 on: April 28, 2010, 08:58:25 AM »
Hi,

version 1.0 is not useable at the moment. I need some more time to make it workable. Please wait for this!

OK. The php version of your hoster has no gettext support. That should be no problem. The gettext implementation in knowledgeroot has a fallback for this scenario and a own implementation for gettext. So It should also work! The source can be found here:
http://trac.knowledgeroot.org/cgi-bin/trac.cgi/browser/branches/knowledgeroot-0.9.9/system/php-gettext

If it does not work we should make a deep inspection ;)

Frank

Offline SlavaRom

  • User
  • *
  • Posts: 8
    • View Profile
Re: Translation does not work
« Reply #8 on: April 28, 2010, 08:31:31 PM »
Has downloaded this complete set, has established, but has exchanged nothing.

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 553
    • View Profile
    • http://www.lordlamer.de
Re: Translation does not work
« Reply #9 on: April 30, 2010, 12:52:31 PM »
Hi,

sorry for late replay.

I will check out if i could realize a fallback with zendframework gettext implementation.

Frank