Translate Elgg
How can to translate Elgg
Open the file
elgg\languages\en.php
Change from English to your own language
or
Create the new file
elgg\languages\your_language.php
And change from English to your own language
Use languages according to ISO 639-1:
"aa" => "Afar",
"ab" => "Abkhazian",
"af" => "Afrikaans",
"am" => "Amharic",
"ar" => "Arabic",
"as" => "Assamese",
"ay" => "Aymara",
"az" => "Azerbaijani",
"ba" => "Bashkir",
"be" => "Byelorussian",
"bg" => "Bulgarian",
"bh" => "Bihari",
"bi" => "Bislama",
"bn" => "Bengali; Bangla",
"bo" => "Tibetan",
"br" => "Breton",
"ca" => "Catalan",
"co" => "Corsican",
"cs" => "Czech",
"cy" => "Welsh",
"da" => "Danish",
"de" => "German",
"dz" => "Bhutani",
"el" => "Greek",
"en" => "English",
"eo" => "Esperanto",
"es" => "Spanish",
"et" => "Estonian",
"eu" => "Basque",
"fa" => "Persian",
"fi" => "Finnish",
"fj" => "Fiji",
"fo" => "Faeroese",
"fr" => "French",
"fy" => "Frisian",
"ga" => "Irish",
"gd" => "Scots / Gaelic",
"gl" => "Galician",
"gn" => "Guarani",
"gu" => "Gujarati",
"he" => "Hebrew",
"ha" => "Hausa",
"hi" => "Hindi",
"hr" => "Croatian",
"hu" => "Hungarian",
"hy" => "Armenian",
"ia" => "Interlingua",
"id" => "Indonesian",
"ie" => "Interlingue",
"ik" => "Inupiak",
"in" => "Indonesian",
"is" => "Icelandic",
"it" => "Italian",
"iu" => "Inuktitut",
"iw" => "Hebrew (obsolete)",
"ja" => "Japanese",
"ji" => "Yiddish (obsolete)",
"jw" => "Javanese",
"ka" => "Georgian",
"kk" => "Kazakh",
"kl" => "Greenlandic",
"km" => "Cambodian",
"kn" => "Kannada",
"ko" => "Korean",
"ks" => "Kashmiri",
"ku" => "Kurdish",
"ky" => "Kirghiz",
"la" => "Latin",
"ln" => "Lingala",
"lo" => "Laothian",
"lt" => "Lithuanian",
"lv" => "Latvian/Lettish",
"mg" => "Malagasy",
"mi" => "Maori",
"mk" => "Macedonian",
"ml" => "Malayalam",
"mn" => "Mongolian",
"mo" => "Moldavian",
"mr" => "Marathi",
"ms" => "Malay",
"mt" => "Maltese",
"my" => "Burmese",
"na" => "Nauru",
"ne" => "Nepali",
"nl" => "Dutch",
"no" => "Norwegian",
"oc" => "Occitan",
"om" => "(Afan) Oromo",
"or" => "Oriya",
"pa" => "Punjabi",
"pl" => "Polish",
"ps" => "Pashto / Pushto",
"pt" => "Portuguese",
"qu" => "Quechua",
"rm" => "Rhaeto-Romance",
"rn" => "Kirundi",
"ro" => "Romanian",
"ru" => "Russian",
"rw" => "Kinyarwanda",
"sa" => "Sanskrit",
"sd" => "Sindhi",
"sg" => "Sangro",
"sh" => "Serbo-Croatian",
"si" => "Singhalese",
"sk" => "Slovak",
"sl" => "Slovenian",
"sm" => "Samoan",
"sn" => "Shona",
"so" => "Somali",
"sq" => "Albanian",
"sr" => "Serbian",
"ss" => "Siswati",
"st" => "Sesotho",
"su" => "Sundanese",
"sv" => "Swedish",
"sw" => "Swahili",
"ta" => "Tamil",
"te" => "Tegulu",
"tg" => "Tajik",
"th" => "Thai",
"ti" => "Tigrinya",
"tk" => "Turkmen",
"tl" => "Tagalog",
"tn" => "Setswana",
"to" => "Tonga",
"tr" => "Turkish",
"ts" => "Tsonga",
"tt" => "Tatar",
"tw" => "Twi",
"ug" => "Uigur",
"uk" => "Ukrainian",
"ur" => "Urdu",
"uz" => "Uzbek",
"vi" => "Vietnamese",
"vo" => "Volapuk",
"wo" => "Wolof",
"xh" => "Xhosa",
"y" => "Yiddish",
"yi" => "Yiddish",
"yo" => "Yoruba",
"za" => "Zuang",
"zh" => "Chinese",
"zu" => "Zulu",
And change your language in this code
$english = array(
and
add_translation("en",$english);

Example for French:
1. Create the new file
elgg\languages\fr.php
2. Change from English to French
$french = array(
'item:site' => 'Sites',
'login' => "Connexion",
'loginok' => "Vous etes desormais connecte(e).",
...etc...
add_translation("fr",$french);




thank you very useful information, I think your blog has good content and article of interest to be discussed and serve as an example of writing a good article
Thank you
Make a another post about this sometime
I'll publish an article about translating in the next month
Hello! Very valuable advice on this post!
Very nice blog. Thanks for the great tips!
Great website, Thanks a lot, for the reat hints!!
Thx, man
I already changed all my language, but some are still in english.
what all the language is already here, or are there others?
thk's
Not all of the changes in languages via the strings (as 'item:item'). Some files and plugins contain the text in English.
You need to find this text and replace it with your own language or (best way) add your own string
but it's still on file? or in another file?
>>but some are still in english<<
Write some examples here
Can I translate Privacy, Terms and About pages (2 languages)
Sure.
Just create new file in the languages folder for 'External Pages' plugin:
Go to elgg/mod/externalpages/languages
And create new languages file (or files)
Example for Spanish & German:
1. Create the new files
elgg/mod/externalpages/languages/es.php
elgg/mod/externalpages/languages/de.php
2. Change from Spanish to French
$spanish = array(
'expages' => "Páginas del sitio",
'admin:appearance:expages' => "Páginas del Sitio",
'expages:about' => "Acerca de",
'expages:terms' => "Términos",
'expages:privacy' => "Privacidad",
'expages:contact' => "Contacto",
…s k i p e d…
);
add_translation("es", $spanish);
3. Change from English to German
$german = array(
'expages' => "Externe Seiten",
'admin:appearance:expages' => "Externe Seiten",
'expages:about' => "Impressum",
'expages:terms' => "AGBs",
'expages:privacy' => "Datenschutz",
'expages:contact' => "Kontakt",
…s k i p e d…
);
add_translation("de", $german);
Done!
and their content?
It's impossible without a rewriting of the plugin
Try to use CustomHTML (http://elgghacks.com/custom-html/), CustomTabs (http://elgghacks.com/custom-tabs/) or AnyPage () plugins and create the static pages with your own contents.
Hi pianist,
I want to put a date picker plugin in my page. I'm working with elgg 1.8.6. I got this plugin. but i want to change the date format like 2012-03-23 to 23-03-2012. Is there any possible solution please let me know.
Thanks
In first, try this plugin – 'Flexible Friendlytime':
In second, if you using 'jQuery Datepicker' plugin then read this tutorial:
And in third, just find into your plugin 'yyyy-mm-dd' and replace it with 'mm-dd-yyyy'
Hi pianist,
Thanks u very much for ur reply. I found this.
It works fine.
Thanks.
Can I add language selector like this:
netaof . dk ?
Sure.
Just integrate it:
And how to put it in footer?
in language_selector\start.php
replace strings between 46-50
function language_selector_pagesetup(){
if(elgg_get_plugin_setting("show_in_header", "language_selector") == "yes"){
elgg_extend_view("page/elements/header", "language_selector/default");
}
}
with
function language_selector_pagesetup(){
if(elgg_get_plugin_setting("show_in_header", "language_selector") == "yes"){
elgg_extend_view("page/elements/footer", "language_selector/default");
}
}
Thanks,
I already do that