Hello,
in my Elgg Site http://dunkle-biene.honey-bees.de the default language is GERMAN.
Problem: the default language of New users is ENGLISH.
How can I change this? I would like to have the STANDARD language German for all new users. Is this possible? How?
Thank You
KAi
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- rscdev@rscdev
rscdev - 0 likes
You must log in to post replies.Changing the default language for your site in admin panel obviously doesnt change anything in the users table...
I don't know which version of elgg u use but i can answer for 1.7.4:
1st alternative:
register an event handler "register_elgg_event_handler('create','user', set_def_lang")
and update the language setting:
function set_def_lang ($event, $object_type, $object) {
$object->set("language", "de");
return true;
}
2nd alternative:
modify configuration.php, function set_default_config():
change $CONFIG->language = "en" to $CONFIG->language = "de";
1st alternative is tidier i guess. code is not tested but should give an idea