Login   Register  
PHP Classes
elePHPant
Icontem

Error

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      phpMultiLang  >  All threads  >  Error  >  (Un) Subscribe thread alerts  
Subject:Error
Summary:Unable to set locale for language 'en'.; Code: 512
Messages:4
Author:Kasper Nielsen
Date:2006-09-14 09:11:18
Update:2007-10-12 11:47:05
 

  1. Error   Reply  
Picture of Kasper Nielsen
Kasper Nielsen
2006-09-14 09:11:18
I get this error:
Unable to set locale for language 'en'.; Code: 512

Any suggestions?

  2. Re: Error   Reply  
Picture of XOOX
XOOX
2006-10-26 16:14:36 - In reply to message 1 from Kasper Nielsen
I get the same error! Can't figure out where I am wrong. I use the example.php file for building my own pages, still got the same error!
And the webpage of this project is out, so maybe, we must try other multilanguage classes.

  3. Re: Error   Reply  
Picture of Bruno
Bruno
2007-04-12 14:29:58 - In reply to message 2 from XOOX
I have this error too, but with me the locae is pt_BR (Portuguese Brazilian) for a latin site.

  4. Re: Error   Reply  
Picture of Luciano Kripper
Luciano Kripper
2007-10-12 11:47:05 - In reply to message 1 from Kasper Nielsen
You will get this error if the locale functionality is not implemented on your platform, the specified locale does not exist or the category name is invalid.

I was getting this error because I was using "cn_CN" for Chinese_China instead of the correct code "zh_CN".

You can use this code to get a list of your system's locales.

<?php

ob_start();
system('locale -a');
$str = ob_get_contents();
ob_end_clean();
print_r( split("\\n", trim($str)));

?>