Language files doesn't work
Posted: Fri Jun 02, 2006 10:17 pm
I have great troubles in getting the language files for modules to work. I have tried everything I can think of, but nothing works.
Nobody on the Danish forum here have been able to answer my question on how a language file is being activated. However I presume this is done by means of the servers locale settings - or perhaps the locale setting in the cmsms config.php file. Am I right?
My server hosts use english locale eventhough their based in Norway as they have international customers. Further tell me their norvegian locale uses "no_NO" not "nb_NO" which cmsms uses. So after trying everything with "nb_NO" and "setlocale(LC_ALL, 'nb_NO');" in usermade tag I did the same with "no_NO" - I tried to rename the languagefile in the modules/news/lang/ext folder to "no_NO" and set locale to "no_NO" in the config.php file but that didn't work.
Then in desperation I renamed the language files so that I had the norwegian language called "en_US.php" in the "lang" folder - then I got the Norwegian prompts going: the norwegian "print" and "return" links from the detail template.
Although this works it is not the right way to do it.
I wonder what is not working here. How does cmsms do to find out the servers locale?
How does cmsms activate the language files in the lang/ext/ folder?
This is now almost the only thing to get working before I can put the site online. Another thing is to translate modules FrontEndUsers and Selfregistration - I have started the work, but it is not fun when I don't know how I will get the to work for me. My Norwegian site is here: www.filmklippere.com/cms
I really hope that someone can help me out on this.
Thanks
FinnK
Nobody on the Danish forum here have been able to answer my question on how a language file is being activated. However I presume this is done by means of the servers locale settings - or perhaps the locale setting in the cmsms config.php file. Am I right?
My server hosts use english locale eventhough their based in Norway as they have international customers. Further tell me their norvegian locale uses "no_NO" not "nb_NO" which cmsms uses. So after trying everything with "nb_NO" and "setlocale(LC_ALL, 'nb_NO');" in usermade tag I did the same with "no_NO" - I tried to rename the languagefile in the modules/news/lang/ext folder to "no_NO" and set locale to "no_NO" in the config.php file but that didn't work.
Then in desperation I renamed the language files so that I had the norwegian language called "en_US.php" in the "lang" folder - then I got the Norwegian prompts going: the norwegian "print" and "return" links from the detail template.
Although this works it is not the right way to do it.
I wonder what is not working here. How does cmsms do to find out the servers locale?
How does cmsms activate the language files in the lang/ext/ folder?
This is now almost the only thing to get working before I can put the site online. Another thing is to translate modules FrontEndUsers and Selfregistration - I have started the work, but it is not fun when I don't know how I will get the to work for me. My Norwegian site is here: www.filmklippere.com/cms
I really hope that someone can help me out on this.
Thanks
FinnK