Adding Languages
Localizations can be found here: https://github.com/ushahidi/Ushahidi-Localizations
To add a language, copy the language folder you need in your application/i18n directory (NOT the system/i18n directory). Ushahidi will automatically pick up the new language and include it in the language switcher drop down and admin language settings options. If it doesn’t show up right away, go into your application/cache directory and delete the files there.
Then you can go to http://Your_Ushahidi_site/index.php/reports?l=hy_AM for example if you installed Armenian language.
The default language can be selected on the site settings page (/admin/settings/site)
(Based on info from the forums)
Best practices for developers and themers adding text to the platform:
We've documented a list of tips for developers and themers adding text to the platform here
8 Comments
Hide/Show CommentsRobbie Mackay
Not sure this is quite the right home for this yet.. there are 2 parts to this..
1. Adding localizations to your deployment (which could live in installation guide)
2. Creating localizations .. which should probably live in developer or administrator guide?
naim
I'm not sure I understand what to do to get my site to display with an extra language .. I copy ushahidi-Ushahidi-Localizations-***/ar to /home/public/system/i18n/ ?? ar/ for arabic in my case.
On https://github.com/ushahidi/Ushahidi-Localizations/tree/master/ar I see a message Move ar_EG to ar (since transifex only supports ar or ar_SA) .. Still not getting Arabic localization .
Heather Leson
HI Naim,
Welcome to the wiki
This type of question is best asked on the Forums, skype or IRC : Contact Us.
Or, if you identify it as a bug, you can file an issue on Github for localizations.
Heather
naim
I'm glad to be here!
Yes true, this is not a forum. But part of my comment, I was trying to say that the the documentation above is not clear enough. I'll take my business to the forum, thank you.
Heather Leson
I agree on the documentation. Can you help make it more clear? [There are a few posts on the forums on this topic. |http://forums.ushahidi.com/?post_type[]=topic&post_type[]=reply&s=multi+language]
I agree it is a hard one.
Heather
naim
Ok, i'll write what I know so far, and what's missing.
What I still didn't figure out:
Robbie Mackay
Hopefully my edits answer that first question.. languages are automatically added to the drop down language menu.
I'm not sure what you mean with the 2nd question. Where would target language come from?
naim
Browsers send http request with language preference, this way server knows what flavor to serve, if the site is available in more than one language.
I'm not sure how exactly this is programmed. Found this >>
http://www.w3.org/International/questions/qa-lang-priorities.en.php
http://www.w3.org/International/questions/qa-apache-lang-neg