I've had the "pleasure" of doing several multilingual sites which i ended up supporting
with a 3rd party extension to make things "practical". There are a few, like Josetta and KMFastrans.
With these extensions life is more practical but i'm still missing a key concept.
I stuck with KM Fastrans and had a discussion with the developer ( Angel ) on the concept of
fallback languages.
So say you have a site supporting EN, NL, DE. And an "item" is not available in DE,
it would fall back to the NL version and finally the EN version. So one does not need
to have all pages in alle langues. Or have only key pages in all languages.
The concept of "all" does not help in this. Is there a rationale in not having a fallback mechanism
for translated items from development point of view, is there some thread i can read up on?
I could not find it and some group members seem to walking ecyclopdia when it comes to these things
Cheers Marco
--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-cms/-/mr3ts9jltlYJ.
To post to this group, send an email to joomla-...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
Hello
It was never the intention originally to create a replacement for Joomfish when we implemented multilang in 1.6+
Thus why a fallback mechanism does not exist. The purpose was to make it possible to create simple multilanguage sites where each Content Language would display whatever looked necessary to the site admin (Ex: 10 menus and 200 items in English, 2 menus and 12 items in another language, etc.), thus why the switcher would by default redirect to the Home Page for each content language.
In the days to come, and hopefully completed for 3.1, items associations will be implemented for all core components and a wiki doc published to explain to 3pd how to modify their components to take advantage of the feature.
So, to make it short, the easiest way at this stage to create fallbacks is to batch copy the item concerned to the Content Language where there is no localised translation and then associate it. If/when a translation becomes available, it's simple to replace the said content.
The Tag "All" is not used for this purpose as it allows displaying the same items for each content language without using the lang switcher, providing one has created the necessary menu items.
One way to build a multilang site which would act as Joomfish in 1.5 is to systematically batch/copy all the default site language structure and items to their equivalent for the other content Languages and then modify these to fit when translations are available. Then do the same when a new item is created.
If a patch is proposed that would let do that in an easier way (batch copy for example at the same time all the categories and their items) via the batch functions, we would welcome this in core.
Another nice improvement would be to implement at all times the display of the lang switcher and the various flags only when associations do exist (and on Home page) if desired.
Any other working proposal is welcome.
JM
Hello,I believe that the proposal of Marco Dings of having a default language can be very useful. The problem on having the same element replicated n times is maintenance. If you have a site with 5 languages for example and have a default language, when you modify an item in the default language you only have to do this once. If you have the item replicated five times you have to make the change five times.Although I have not studied this in depth yet, I think what should be done is:1. Define one content language (or two) to be the default language to display items that have no translation into the LS selected language.2. Modify all places (component models, libraries, modules and some plugins) in which items in the selected language and the language 'All' are read from the database to read also the items in the default language.3. Modify the LS to choose the item in the default language when there is no translation of that item to the selected language.I have expressed this in a simplified form and I'm sure I've missed a lot of things.Cheers,Angel M.