5 elgg.provide(
'elgg.config.translations');
8 elgg.config.language =
'en';
15 elgg.provide(
'elgg.config.translations.' + lang);
24 elgg.get_language =
function() {
25 var
user =
elgg.get_logged_in_user_entity();
27 if (user && user.language) {
31 return elgg.config.language;
45 if (
elgg.isString(argv)) {
52 dlang =
elgg.get_language(),
58 map = translations[
language] || translations[dlang];
59 if (map && map[key]) {
60 return vsprintf(map[key], argv);
$CONFIG translations
String translations for the current language.