svinus
Member
Posted 17 years ago #
I'm trying to change to default language of the admin page for my bloggers to dutch but it doesn't work als default
i already changed my config file of wordpress with the language pack and it appear in the language drop down menu but i can't set is as default.
Suggestions ?
svinus
Member
Posted 17 years ago #
also in the admin panel i changed the language so it should be active sitewide but it has no effect
To change it for the whole site, in wp-config.php, alter line 23 to look like this
define ('WPLANG', 'da');
also note the instruction above that line in the file
svinus
Member
Posted 17 years ago #
i already changed my config file of wordpress with the language pack and it appear in the language drop down menu but i can't set is as default.
I have this problem too. I manually change language of each newly created blogs. Setting different language as default work before, and stopped working since version 1.3.1 or 1.3.2 (I don't remember which one is)
bloggus
Member
Posted 17 years ago #
Same problem here. Looked in the scheme.php, but is is not set there. Anybody know where it should be set?
Akashic
Member
Posted 17 years ago #
Exactly, it is not set there.
So, what to do? Just set it up, man!
Had the same problem.
As you look carefully into newly created blog option table you'll see that WPLANG is not set up as default.
To solve it, simply insert into wp-admin/includes/schema.php following line:
add_option('WPLANG', 'ja');
Of course change the latter accordingly to you mother-tongue.
Cheers,
A.
telecarlos
Member
Posted 16 years ago #
Thank you Akashic!
It works exactly how I expect
It is better not to change core files. You can use the WPMU new blog settings plugin to set this option for new blogs.
Fredrik-S
Member
Posted 16 years ago #
Has something change to the new version 1.5.1? I downloaded "WPMU new blog settings plugin" and tryed to change my deafult language to Swedish (se) but it doesen't work.
I have put the plugin file in following folder: wp-content/mu-plugins/
and my code look like this:
<?php
/*
Plugin Name: WPMU new blog settings plugin
Version: 0.1
Plugin URI: http://www.ringofblogs.com/2007/12/21/wpmu-new-blog-settings-plugin/
Author: Elad Salomons
Author URI: http://www.ringofblogs.com
Description: WPMU new blog settings plugin
*/
function new_blogs_setting( $blog_id ) {
//set your options here:
add_option('WPLANG', 'se');
// stop editing here
return;
}
add_action('wpmu_new_blog', 'new_blogs_setting');
?>
But still it doesn't work, whats wrong?
margjedonder
Member
Posted 16 years ago #
The solution above does not work with wpmu 1.5.1
putting the line below in schema.php does not work:
add_option('WPLANG', 'nl_NL');
or using the Plugin Name: WPMU new blog settings plugin:
//set your options here:
add_option('WPLANG', 'nl_NL');
// stop editing here
Doesn't work either.
What to do to change the default language for new created blogs in wpmu v1.5.1 ?
Thanks in advance
chinafla
Member
Posted 16 years ago #
first, you need to creat a folder named languages in wp-content folder. and put your own languages files in that folder. example zh_CN.mo zh_CN.po in languages folder.
then add_option('WPLANG', 'zh_CN'); will work
Fredrik-S
Member
Posted 16 years ago #
chinafla, I have added the language I want like you said and the guide at wordpress.org.
Then I added the plugin wpmu-new-blog-settings, but it doesn't work.
Is it really good to change in the core file?
chinafla
Member
Posted 16 years ago #
no, Fredrik-S, you don't need to change the core file.
if you've got those two languages files, then login as the admin of wordpress MU,
Site Admin -> Options -> Default Language
you can select your own language at Default Language, just select and submit. done.
BTW: wpmu-new-blog-settings doesn't seem to work for 1.51
,at least for me.
margjedonder
Member
Posted 16 years ago #
@chinafla,
The path and file ../wp-content/languages/nl_NL.mo was allready present. Adding "add_option('WPLANG', 'nl_NL')" to schema.php does not work. New created blogs are in English. Users CAN set the language to dutch/chinese by hand but the default language stays English. I'll think this is a problem since 1.5.1
chinafla
Member
Posted 16 years ago #
@margjedonder
but it does work for me.
you can try it yourself, you can login:
http://baidu.pk/mu/flashflash/wp-login.php
user:flashflash
pass:123321
or you can creat a new account
http://baidu.pk/mu/wp-signup.php
this is a test site for wordpress mu, so it'll be deleted few weeks later.
margjedonder
Member
Posted 16 years ago #
your right, thanks! got it working on my site also! thanks for your time.
cheers!
chinafla
Member
Posted 16 years ago #
Is there a Japanese translation of WPMU?
Ueland
Member
Posted 16 years ago #
For those of you that has this bug, you can do the following:
1) define WPLANG as mentioned in config file
2) Add this in ./wp-includes/l10n.php, line 45:
if (empty($locale))
$locale = WPLANG;
That will default all blogs that does not have a language defined to your main language. :)
Shi-no
Member
Posted 16 years ago #
I tryed to change default language from English to Japanese.(Wordpress Mu 2.6.5)
I did ...
1. upload "ja.mo" and "ja.po" to wp-include/language
2. access to Settings but I could not find "Blog Langage"
3. access to SiteAdmin-->Options but I could not find "Default Language"
What I should do next? What is the problem?
I'm having a similar problem on wordpress mu 2.6.5, i've uploaded the *.mo, and *.po files to wp-content/languages/ folder and changed my wp-config file to ('WPLANG', 'es_ES') but nothing seems to happen... help!
('WPLANG', '???') for Greek language
which is?
VentureMaker
Member
Posted 16 years ago #
el_EL I guess... Ellanica :)
VentureMaker
Member
Posted 16 years ago #
nl_NL to the best of my knowledge :)