New approach to support for multilanguage

e107 CMS » Forums » Miscellaneous » Translations << Previous thread | Next thread >>
ReneJM
Dec 07 2005, 07:13PM
Registered Member #452
Joined: Nov 08 2002, 04:25PM
Posts: 109
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.
Go to top
CaMer0n
Dec 12 2005, 07:48AM
CaMer0n
  • e107 Main site administrator
  • e107 Core developer
  • e107 Design Team
Registered Member #1013
Joined: Feb 27 2003, 06:41AM
Location: Las Vegas, NV, USA
Posts: 771
e107 0.7 already does multilingual content.

Go to top
ReneJM
Dec 16 2005, 10:07AM
Registered Member #452
Joined: Nov 08 2002, 04:25PM
Posts: 109
It does that only partly, not for all content.
Go to top
CaMer0n
Jan 13 2006, 01:14PM
CaMer0n
  • e107 Main site administrator
  • e107 Core developer
  • e107 Design Team
Registered Member #1013
Joined: Feb 27 2003, 06:41AM
Location: Las Vegas, NV, USA
Posts: 771
Can you give an example?
Go to top
frozenjim
Jan 14 2006, 08:34AM
Registered Member #23745
Joined: Jan 14 2006, 08:24AM
Posts: 9
"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.
Go to top
CaMer0n
Jan 15 2006, 08:46AM
CaMer0n
  • e107 Main site administrator
  • e107 Core developer
  • e107 Design Team
Registered Member #1013
Joined: Feb 27 2003, 06:41AM
Location: Las Vegas, NV, USA
Posts: 771
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..
Go to top
Hort
Jan 29 2006, 02:27AM
Registered Member #24105
Joined: Jan 25 2006, 09:38AM
Posts: 3
Hi,

how exactly does this work?

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.

Greetings

Hort
Go to top
frozenjim
Feb 05 2006, 12:11PM
Registered Member #23745
Joined: Jan 14 2006, 08:24AM
Posts: 9
Bump.

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.

Please, someone, help?

Go to top
CaMer0n
Feb 08 2006, 12:05PM
CaMer0n
  • e107 Main site administrator
  • e107 Core developer
  • e107 Design Team
Registered Member #1013
Joined: Feb 27 2003, 06:41AM
Location: Las Vegas, NV, USA
Posts: 771
Go to admin/language switch 'mutlilanguage' on.. then use the language menu on the left to switch between languages.
Go to top
drfunky
Feb 13 2006, 07:03AM
Registered Member #5291
Joined: Jan 04 2004, 05:18PM
Posts: 13
There's a tutorial here.
Go to top
 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System