Actions

Difference between revisions of "Language switcher frontend"

From Joomla! Documentation

(New page: ==Language switcher {{JVer|1.6}}== It has been decided that 1.6 would not be fully multilingual, i.e. it would not be a replacement for Joomfish where each item has its equivalent. Was...)
 
(The idea)
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
==Language switcher {{JVer|1.6}}==
 
==Language switcher {{JVer|1.6}}==
 +
Reference from: [http://groups.google.com/group/joomla-dev-cms/browse_thread/thread/3a84e3c0004404d3]
  
It has been decided that 1.6 would not be fully multilingual, i.e. it  
+
It has been decided that 1.6 would not be fully multilingual, i.e. it would not be a replacement for Joomfish where each item has its equivalent. Was also decided to have a language Switcher (specially to use on frontpage) to display the items tagged for a specific language (Articles, categories, modules, ..)  
would not be a replacement for Joomfish where each item has its  
+
 
equivalent.  
+
===The idea===
Was also decided to have a language Switcher (specially to use on  
+
The Switcher would, if also present on other pages than the Home, redirect to the home page and display these items.  
frontpage) to display the items tagged for a specific language  
+
 
(Articles, categories, modules, ..)  
+
'''Joomla 1.7 is introducing the possibility to associate menu items''' in different languages, thus redirecting via the switcher to the associated menu item, if parametered this way.
The Switcher would, if also present on other pages than the Home,  
+
 
redirect to the home page and display these items.  
+
To get this, language fields have been created in the db and an interface in the UI where the items can be tagged.  
To get this, language fields have been created in the db and an  
+
interface in the UI where the items can be tagged.  
+
 
The Language Manager has 2 parts (Tabs):  
 
The Language Manager has 2 parts (Tabs):  
1. Listing site and admin languages available (installed) on the site.  
+
# Listing site and admin languages available (installed) on the site. Same function as in 1.5.  
Same function as in 1.5.  
+
# A Content part specifically designed to use for the language tagging/assign.  
2. A Content part specifically designed to use for the language  
+
 
tagging/assign.  
+
 
This "Content" part, if used, lets designate a language (even if it is  
+
This "Content" part, if used, lets designate a language (even if it is not yet installed) to populate the lists proposed for all Language fields tagging in the UI.  
not yet installed) to populate the lists proposed for all Language  
+
fields tagging in the UI.  
+
 
The idea is that,  
 
The idea is that,  
1. if the site language is present  
+
# if the site language is present AND  
AND  
+
# the same language is designated as a "Content" language AND published,  
2. the same language is designated as a "Content" language AND  
+
#:---> then the Switcher will display that language as a choice and ONLY the items tagged for that language.  
published,  
+
 
---> then the Switcher will display that language as a choice and ONLY  
+
This lets user prepare a complete set of items assigned to a specific language without even installing that language. Then release it when ready.  
the items tagged for that language.  
+
A non-registered user should get a cookie and a registered user should get its user's language params changed on the fly.
3. A parameter would let display or not untagged items with the
+
 
language chosen (That parameter may have to be elsewhere than in the
+
Tutorial is available here: http://docs.joomla.org/Language_Switcher_Tutorial_for_Joomla_1.6
module, maybe in J! Global Config)
+
This lets user prepare a complete set of items assigned to a specific  
+
language without even installing that language. Then release it when  
+
ready.  
+
Logically, a non-registered user should get a cookie and a registered  
+
user should get its user's language params changed on the fly.
+
  
 
[[Category:Dev_cookie_jar]]
 
[[Category:Dev_cookie_jar]]

Revision as of 01:47, 14 July 2011

Language switcher Joomla 1.6

Reference from: [1]

It has been decided that 1.6 would not be fully multilingual, i.e. it would not be a replacement for Joomfish where each item has its equivalent. Was also decided to have a language Switcher (specially to use on frontpage) to display the items tagged for a specific language (Articles, categories, modules, ..)

The idea

The Switcher would, if also present on other pages than the Home, redirect to the home page and display these items.

Joomla 1.7 is introducing the possibility to associate menu items in different languages, thus redirecting via the switcher to the associated menu item, if parametered this way.

To get this, language fields have been created in the db and an interface in the UI where the items can be tagged. The Language Manager has 2 parts (Tabs):

  1. Listing site and admin languages available (installed) on the site. Same function as in 1.5.
  2. A Content part specifically designed to use for the language tagging/assign.


This "Content" part, if used, lets designate a language (even if it is not yet installed) to populate the lists proposed for all Language fields tagging in the UI. The idea is that,

  1. if the site language is present AND
  2. the same language is designated as a "Content" language AND published,
    ---> then the Switcher will display that language as a choice and ONLY the items tagged for that language.

This lets user prepare a complete set of items assigned to a specific language without even installing that language. Then release it when ready. A non-registered user should get a cookie and a registered user should get its user's language params changed on the fly.

Tutorial is available here: http://docs.joomla.org/Language_Switcher_Tutorial_for_Joomla_1.6