One of the problems with the current approach to support multiple languages is that only the fixed texts are multilingual. Any content is in 1 language only and does not switch when changing the language.
Its a little bit of work, but I suggest for the NEXT version to change the way languages are supported. Translations are supported currently as php includes, and that makes them less flexible, also it doesnt translate the contents.
To solve this I suggest to add a 2 char field to every table key for language and change the mysql class to always include the where condition for the language. Instead of php includes a new message table should be created that will contain all the languages and messages. Plugins deliver their messages as a sql insert/modify file so that they can easily be added to the general message file, some work will need to be done to ensure unique names for each message, however that can be done via a message code generator function.
This will allow you to create content in any language by just switching to that language and creating the content. If the language is not available a default language should be used, for instance I make english the default language on my site, but support german as well. Then when someone works in german but I didnt create certain content in german it should get the english version instead.
Its a bit of work, but certainly doable and would provide great flexibility.
"ReneJM" wrote ... It does that only partly, not for all content.
Yes please, I too would like to know what you mean.
It seems a simple enought question: Will we be able to translate all content using the new version 7?
I have recently switched from Joomla/Mambo and enjoyed the easy translation of all my content into whatever languages I set up. Is this the new direction of e107?
To a great many of us, this is a key feature. I for one would like to know for sure what the plan is for content translation.
Yes 0.7 allows you to duplicate your db tables for any language. (see admin/language) This means that all your plugins can be multilingual as well. For anything else, that is NOT stored in the database or preferences, you can use YourLanguage_custom.php in your e107_languages/YourLanguage folder. ie. English_custom.php - create the definitions you want to use.. and then use them in your site-preferences..
I uploaded a second language, I can switch (mostly, there are missing translations) the interface language, but I can't translate content.
I've tried setting up multilanguage tables, but I don't see any, nor any means to translate content. For both languages (default and new one) the admin interface tells me "tables - not installed", regardless of what I do or click.
I cannot figure out how to make a bilingual site from the short hints here. Neither have I been able to find any documentation on how it is done.
So I create a file called french_custom.php? Should I put some text into this file? How do I go about telling my custom documents if they are english or french?
Is there a tutorial on this topic anywhere?
It sounds really simple - if you already know how to do it. I don't know how to do it yet so it is impossible.