Admin has a question :
I would like to begin the multilang support and I cannot see where is the multilingual support in Joomla Native.
Joomla do not support what Joomfish was supporting. The main difference is that the languages clones are not clones, but copies and the ID of the referent item is lost.
It means that we do not simply have to translate, but to recreate the whole structure of menus, categories and all items you can have in DB.
So, to my opinion Cook cannot use this native system.
The way I am choosing is simple :
A translatable table is containing all original entries AND partial copies of what have to be translated. But the difference is the overridings rows will contain the ID of their related original ID (rel key)
'language' key will be instancied normally.
So, my problem is in SQL.
I want to select my full row of the first table, and when a translation is found on the joined table, then the values of the main table are OVERRIDED by the values presents in the second table.
How can I do ?
I tried to look after LEFT, RIGHT, INNER, OUTER, .. JOINS, but it is not what I am searching for.
My request is only to replace the fields (not phisically, but only for the result of the query) when a row has been catched in the other table :
a. = main table (contents to translate)
_translation_. = related table (row to override the first one)
When a.id = _translation_.rel
Any clues ?