Contribute  :  Support  :  Downloads  :  Forum  :  Links  :  Polls  :  Calendar  :  Directory  :  Advanced Search  
Geeklog The Ultimate Weblog System
Welcome to Geeklog
Thursday, May 15 2008 @ 11:03 PM EDT
   

Multi-Language Support Idea

Geeklog 2 Just an idea... I've seen multi-language support implimented thus far as one (or more) files with the alternate language versions of key words and/or phrases. This is great, and allows Geeklog to be used in other languages.
Wouldn't it be great if a single site could be viewed by anybody in any language? Not just the certain phrases, but all added content? I've kind of devised a way it would be possible, but not without some serious hacking. Here's the idea:

Static storage method:
Separate versions of the contributions are kept for each language. The first time an article is requested for a specific language, it is translated on the fly and added to the database. This new version is then displayed to the user in their chosen language.

On-the-fly method:
Item is stored only in the language it was originated in, along with a flag indicating the language it is in. Items are translated on the fly for ech request.

The second method involves much more overhead, but less resource space on the HD. With the price of HDs these days, space is usually not an issue though. The second method also ends up being more processor intensive, which means it may not "play nice" with other applications on the server.

I have figured out a way to use the SYSTRAN Personal 4.0 language translation software to translate from within a CGI program, so, using this you could get translations to and from any of the language translation pairs offered by SYSTRAN...

Is this a feature anybody would find usefull? Will this be any easier to accomplish in GL2? I invite your comments.

Story Options

Multi-Language Support Idea | 4 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Multi-Language Support Idea
Authored by: Anonymous on Monday, July 07 2003 @ 10:21 PM EDT
This would be useful, particularly for sites with users from many language groups (and using multiple charsets). I did this once with a site using a simple table in every story (left English, right Japanese), but it was a pain in the arse for those who didn't know HTML. Would be useful to have the former version (different articles stored in the database, and called depending on the users preferences).

Euan.
Multi-Language Support Idea
Authored by: raffles on Tuesday, July 22 2003 @ 06:58 PM EDT
I was thinking about getting something like multi-language support for GL1 stories already. If it would be possible to get the variable $_USER['language'] it would be possible to output a story in php (either direct in the form - or by force ... manipulating the database)
Then I could offer stories in 2 languages and display the right one automatically.
How come I cannot get the variable $_USER['language'] even when I add a global $_USER? Can anybody help me?

regards
Daniel
Multi-Language Support Idea
Authored by: Anonymous on Friday, September 26 2003 @ 06:44 PM EDT
You may also want to look at try to use some of the web methods out there that do translation on the fly.
Multi-Language Support Idea
Authored by: Euan on Tuesday, February 17 2004 @ 02:34 AM EST
Another way to do this:

Set a topic for each language (English, Japanese, Chinese, Korean).
Publish your stories in each language as separate articles.
In config.php, remove the "Home" link.
Set a static page as site top page, offering language options.
People can only see one topic at at time, so only one language at a time.

If you want to change the language of block titles as well, then copy the
relevant "whats new" and other funcitons to lib-custom.php and set the
language of choice from the topic, not the users language setting.

If you were to hack the way that langauge was set in lib-common.php it
should also be possible to change the language shown simply by viewing a
new topic (eg Japanese, German, etc.)

Clear as mud? Under construction at http://WarRecords.net/

Euan.