Topic: Utilizing Language Selection Options
Topic type:
How to utilize the various options for language in your Kete site.
Changing the position of the language chooser
By default, the language chooser is positioned in the footer of every page.
You can change this position to be in the header (under search), in the middle of the top menu, to the far right of the top menu, or in the footer (as it is by default).
The settings for this are available at Administrators Panel > Reconfigure Site > Advanced Options > Language Choices Position, then providing one of the options the description of that field describes.
Changing the display of the language chooser
By default, the language chooser is displayed as a dropdown. You can change this display type to be links instead.
Displaying language choices as links is often preferable for sites that support less than 5 languages as it gives a more obvious user interface for what languages are available to the user.
The settings for this are available at Administrators Panel > Reconfigure Site > Advanced Options > Language Choices Display Type, then providing one of the options the description of that field describes.
Hiding the currently displayed language (links display type only)
When viewing the language choices as links, you can hide the currently selected language. Simply add the following CSS to your default theme.
#language_choices_links li.current { display: none; }
Utilizing all these features for sites with only 2-3 lanaguages
Sites with 2 or 3 languages might prefer to make those languages more promenant. The suggested settings to do this are:
Position: Far right of the top menu
Type: Links
And utilizing the CSS above to hide the current language. These make it more clear to the users which other languages are available on the site.
Discuss This Topic
There are 4 comments in this discussion.
Read and join this discussion
> With these advanced language features I assume that people working on Kete 1.3
> beta need to update their installation with the latest batches in order for
> these configuration options to appear on their Admin screen.
That's correct. Doing a "git pull" from the master branch should bring in the latest changes that are stable.
> We have faced several terms in Kete that can only be one language, like About
> and Help in top menu, which means they will appear in only one (stored) language
> regardless of the language of the interface selected. You have mentioned earlier
> that these few remaining terms will be muti-language enabled soon.
Yes, we are working on these in the following "add on" code repositories:
http://github.com/kete/kete_translatable_content/
and the general functionality that that relies upon:
http://github.com/kete/mongo_translatable
These are progressing quickly, however, they are not yet stable and production ready. We'll let you know when they are.
> What about screen orientation switching for languages like Arabic (R2L) and back
> to English or French (L2R) ? As you planned to instruct the browser to upload
> the correct CSS for redering the page, as you suggested in your earlier email,
> I will send the Arabic CSS to you as soon as we have the orientation rules
> documented.
Yes, after the multilocale support is done we'll have a crack at the R2L and L2R switching. It would be great to have your help with the CSS.
Tags: Arabic orientation, css, Multilanguage
Hello Walter, Kieran,
After updating Kete 1.3 beta to the latest git code to provide the new language options feature, the "Administrators Panel > Reconfigure Site > Advanced Options" has no mention of the "Language Choices Display Type" link.
Shouldn't the feature appear without any additional configuration ?
Thanks, Massoud.
Tags: Arabic orientation, css, Multilanguage
Hello Massoud,
The option is under "Administrators Panel > Reconfigure Site > Advanced Options > System" (you need to click "System" to see it).
If you still don't see it, make sure after you've updated the codebase, you've run the following to insert the necessary fields and data to make it functional:
RAILS_ENV=production rake db:migrate
RAILS_ENV=production rake kete:upgrade
Regards
Kieran
Tags: Arabic orientation, css, Multilanguage
KwareTech
said Kete 1.3 beta update
Hello Kieran, Wlalter,
With these advanced language features I assume that people working on Kete 1.3 beta need to update their installation with the latest batches in order for these configuration options to appear on their Admin screen.
For our environment, the 2-3 languages is what we need to our users in the region (mainly Arabic or English and French is required for Arabic users from North Africa countries). Therefore, the idea of fixing the language links available suits us quite well. Well done thinking!
We have faced several terms in Kete that can only be one language, like About and Help in top menu, which means they will appear in only one (stored) language regardless of the language of the interface selected. You have mentioned earlier that these few remaining terms will be muti-language enabled soon.
What about screen orientation switching for languages like Arabic (R2L) and back to English or French (L2R) ? As you planned to instruct the browser to upload the correct CSS for redering the page, as you suggested in your earlier email, I will send the Arabic CSS to you as soon as we have the orientation rules documented.
Thanks.
Massoud AlShareef, Kware
Tags: Arabic orientation, css, Multilanguage