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

Offline MHolkamp

  • User
  • *
  • Posts: 36
    • View Profile
Translation does not work
« on: May 27, 2009, 11:32:14 AM »
Hello,

I created a translation file to dutch.
When i look at the uers options i can choose the language, but the file was not read.


Offline admin

  • Administrator
  • User
  • *****
  • Posts: 553
    • View Profile
    • http://www.lordlamer.de
Re: Translation does not work
« Reply #1 on: May 27, 2009, 12:42:59 PM »
Hi,

could you give me a overview of of your folders and files in you created for the language?
Have you the chance to restart apache?

Frank

Offline MHolkamp

  • User
  • *
  • Posts: 36
    • View Profile
Re: Translation does not work
« Reply #2 on: May 27, 2009, 01:16:31 PM »
folders:

System -> Language -> nl_NL.UTF8 -> LC_MESSAGES
2 files knowledgeroot.mo and knowledgeroot.po


Stopping and starting appache does not solve the problem.

I have upgraded from 0.8.6 -> 0.9.9

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 553
    • View Profile
    • http://www.lordlamer.de
Re: Translation does not work
« Reply #3 on: May 27, 2009, 01:25:04 PM »
Hi,

could you send me this files? So i can try it out here.

Frank

Offline MHolkamp

  • User
  • *
  • Posts: 36
    • View Profile
Re: Translation does not work
« Reply #4 on: May 27, 2009, 01:41:48 PM »
I will send them to you.

I even tried to switch to de or fr but that does not work either

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 553
    • View Profile
    • http://www.lordlamer.de
Re: Translation does not work
« Reply #5 on: May 27, 2009, 01:54:11 PM »
So you only see englisch?

What PHP Version?
What Apache Version?
Is php a module in apache?

Offline MHolkamp

  • User
  • *
  • Posts: 36
    • View Profile
Re: Translation does not work
« Reply #6 on: May 27, 2009, 01:59:05 PM »
PHP Version 5.2.8

stem    Windows NT HP6820S-MH 6.0 build 6001
Build Date    Dec 8 2008 19:30:48
Configure Command    cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--with-snapshot-template=d:\php-sdk\snap_5_2\vc6\x86\template" "--with-php-build=d:\php-sdk\snap_5_2\vc6\x86\php_build" "--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared"
Server API    Apache 2.0 Handler
Virtual Directory Support    enabled
Configuration File (php.ini) Path    C:\Windows
Loaded Configuration File    C:\Users\martin\Prive\xampp\apache\bin\php.ini
Scan this dir for additional .ini files    (none)
additional .ini files parsed    (none)
PHP API    20041225
PHP Extension    20060613
Zend Extension    220060519
Debug Build    no
Thread Safety    enabled
Zend Memory Manager    enabled
IPv6 Support    enabled
Registered PHP Streams    php, file, data, http, ftp, compress.zlib, zip
Registered Stream Socket Transports    tcp, udp
Registered Stream Filters    convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.*


Im running XAMPP 1.7.0

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 553
    • View Profile
    • http://www.lordlamer.de
Re: Translation does not work
« Reply #7 on: May 29, 2009, 08:09:47 AM »
Hi,

short feedback: i have the same problem with gettext on windows.

I am working on a solution.

Frank

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 553
    • View Profile
    • http://www.lordlamer.de
Re: Translation does not work
« Reply #8 on: June 15, 2009, 03:52:15 PM »
I did not get gettext working on windows at the moment. So i will give you feedback if i know more.

Frank

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 553
    • View Profile
    • http://www.lordlamer.de
Re: Translation does not work
« Reply #9 on: June 18, 2009, 10:19:36 PM »
Hi,

i think i got it :)

could you make a test for me?!
Please change your init.php the following:
Search for line with T_setlocale and replace this with that here:
putenv ('LANG='.$locale);
// gettext setup
T_setlocale(LC_ALL, $locale);

Make a apache restart and test it.
If it will work i will create a small bugfixrelease.

Frank