I create a folder languages and put the files there, but when i change a error appears, I already search in forum and dont find anything
Thanks fot any help
I create a folder languages and put the files there, but when i change a error appears, I already search in forum and dont find anything
Thanks fot any help
Hello,
I'm Henrique Barquero, from Portugal.
I already solve that Problem, at this moment any user can change his language.
But Unfurtunally, I don't remember Where I made the chnage.
Can you please post me the error that you Get, And I will give you the answer, :)
I think I got the answer,
Try this:
on file: /wp-includes/wp-l10n.php
on the 2nd or 3rd line you have:
if ( defined('WPLANG') && '' != constant('WPLANG') ) {
include_once(ABSPATH . 'wp-includes/streams.php');
include_once(ABSPATH . 'wp-includes/gettext.php');
}
Simply remove the IF, so:
//if ( defined('WPLANG') && '' != constant('WPLANG') ) {
include_once(ABSPATH . 'wp-includes/streams.php');
include_once(ABSPATH . 'wp-includes/gettext.php');
//}
I thinks that is the only thing to change!!
Thnak you, I will do that and post the result here
and I'm forn Brazil, i speak portuguese too :)
Nops.... give that error when i change the language file
Fatal error: Cannot instantiate non-existent class: cachedfilereader in /home/.../public_html/wp-inst/wp-includes/wp-l10n.php on line 67
Line 67 is
66 if ( is_readable($mofile))
67 $input = new CachedFileReader($mofile);
68 else
Are you sure that you have made the correct change?
I tested this change on other website that I use for tests and the change that I post upside is work fine?
Since you speak portuguese, hehehe, tell me if you use MSN Messenger so I can give you my email so you can add to your list.
if ( defined('WPLANG') && '' != constant('WPLANG') ) {
include_once(ABSPATH . 'wp-includes/streams.php');
include_once(ABSPATH . 'wp-includes/gettext.php');
}
Remove the 1st and 4th line:
include_once(ABSPATH . 'wp-includes/streams.php');
include_once(ABSPATH . 'wp-includes/gettext.php');
My e-mail is: iliodboili at gmail dot com :)
Just as a precautionary reminder, have you changed the values in wp-config.php?
Line 17:
define ('WPLANG', '<insert language code here>');
On tha Line I dont have any value:
define ('WPLANG', '');
And is working fine to me, any user can chancge his language.