I am a new Elgg user and I am learning how to use this tool. I am using Elgg v5.1.5
I have created a site (I don't know if I should put the URL) and I set the main language of the site to Spanish. It works fine when I'm logged in, but when I log out everything is back to English.
That is, a new visitor encounters the menu and instructions to register in English despite the default language defined for the site.
I have tried changing the default language to something else and still everything is presented in English if the user is not logged in.
I thank you in advance for any suggestions.
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.
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- Jerome Bakker@jeabakker
Jerome Bakker - 0 likes
- an URL parameter 'hl=es' will set the language of the site to Spanish. 'hl' stands for Human Language and is a standard to support interface languages
- Check a cookie with a language setting. This is set when the 'hl' parameter is detected so following pages don't need the parameter.
- Browser language, if you have your browser set to German the site will load in German.
- Site default language
- English as the fallback.
- Rubenalf@rubenalf
Rubenalf - 0 likes
- Rubenalf@rubenalf
Rubenalf - 0 likes
- Jerome Bakker@jeabakker
Jerome Bakker - 0 likes
- Rubenalf@rubenalf
Rubenalf - 0 likes
- Jerome Bakker@jeabakker
Jerome Bakker - 0 likes
You must log in to post replies.Welcome to Elgg Community!
Thanks for this topic.
Issue is opened.
Hi Rubenalf,
I'll try and explain what the order is in which we try to determine the interface language for logged out users
Also keep in mind not all languages are 100% translated so there could also be a mixture. If you wish to help translating Elgg in your language check out https://explore.transifex.com/elgg/elgg-core-5/
You can disable languages in the Site Settings in which case if the language from 1,2 or 3 isn't available it'll load the site language.
Thanks for your answer.
"if you have your browser set to German..." In fact this computer is set to English, I should try using another PC set to Spanish
"an URL parameter 'hl=es' will set the language of the site to Spanish". How to use the 'hl' parameter? What is the syntax?
------------------
"If you wish to help translating Elgg..." I have already registered for transiflex but it seems that someone at Elgg must approve it.
Elgg says that the Spanish language is 52% translated, but comparing 'es.php' with 'en.php' I find that many lines are missing in 'es.php'.
I would also like to add a new language: Esperanto (eo). I have done a test by creating 'eo.php' in my site and the new language is recognized correctly.
------------
By the way, there is an old post that seems to be outdated. There it says:
"Elgg deals in language files. Go to your root folder and you will find a languages folder." In fact the languages folder is well hidden in '/elgg-site/vendor/elgg/elgg/languages'
And "you need to do is change the following:"
Those strings no longer exist, you should ignore them. It is enough to change the file name from 'en.php' to 'eo.php' or whatever.
It would be good to add this information to the Developer Guides:Internationalization (http://learn.elgg.org/en/stable/guides/i18n.html) where it only deals with the translation of the plugins and does not mention the main language files.
You were right. Simply set the browser language to Spanish and Elgg respects the browser language. But IMHO the language defined on the site should be a priority. Thanks again.
https://your-web-site.tdl/?hl=es
approved the EO language
As you would expect with only 52%
That is because the main languages files are managed by Transifex. We pull the translation before every release of Elgg.
It's not recommended to manually add language files to the Elgg core and Elgg core plugins as when you update those files might get lost or overridden.
Thank you. I cannot translate because I am not a member of the Esperanto team. That's what Transifex says
Regarding the request to add Spanish (Argentina) to the project I never did it. (at least intentionally)
DM me your Transifex username/email and I'll add you. And if you wish I can add you to Spanish as well, let me know in the DM.