2011-04-14, 19:32:59
Joshas Wrote:How about adding a configuration page to manage languages from administration backend, like in Joomfish (Joomla translation component) http://img23.imageshack.us/img23/8430/joomfish.png ? Name, short code, active, default and order columns would be necessary. That way we could have a language switching component in frontend which could list all active languages and their names. Also adding new translations could be simplified - no more manual creation of pages with _lang-code suffix.
You only need to add the language code suffix for the first page in this language, afterwards you can use the + icons in the language's column in the I18N pages view.
A configuration page would make the plugin much more complex:
- should probably have a list of possible languages, maybe even flag items
- needs additional configurations - currently it just checks which languages are used
- ...
Joshas Wrote:Another important thing would be display of menu items only if they have translations in that language.
It is deliberately done the way it is now, e.g. if your browser language settings are french, german and the default language of the site is english:
- If there is a french version, the french page is displayed
- If there is a german version, the german page is displayed
- Otherwise the default english page is displayed - if you use Chrome, you can translate it automatically