This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Webmaster forum > January 2007 > Re: how to build a multilingual system like vbulletin?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: how to build a multilingual system like vbulletin?
Qube

2007-01-31, 6:18 pm

On Jan 30, 12:11 am, ooo...@XXXXXXXXXX wrote:
> how can i build a multilingual system for my script by using xml
> phrase system like what vbulletin had
> i know there is too many methods to do a multilingual script but i
> like the method that vbulletin use and if it is copywrited for
> vbulletin !,i want to do something similar
> and if there is an XML standard format that u prefer me to use,i will
> be happy to hear from you.
>
> ########## this is a part of vbulletin-language.xml file #########
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
>
> <language name="MASTER LANGUAGE" vbversion="3.6.4" product="vbulletin"
> type="master">
>
> <skippedgroups>
> <skippedgroup>cphelptext</skippedgroup>
> </skippedgroups>
> <phrasetype name="Access Masks" fieldname="accessmask">
> <phrase name="access_denied" date="1150274290" username=""
> version="3.6.4"><![CDATA[access_denied]]></phrase>
> <phrase name="access_denied_x_users" date="1150274317" username=""
> version="3.6.4"><![CDATA[access denied {1} users]]></phrase>
> <phrase name="access_granted" date="1150274333" username=""
> version="3.6.4"><![CDATA[access granted]]></phrase>
> <phrase name="access_granted_x_users" date="1150274343"
> username="" version="3.6.4"><![CDATA[access granted {1} users]]></
> phrase>
> </phrasetype>
> <phrasetype name="Attachment / Image" fieldname="attachment_image">
> <phrase name="add_a_single_avatar" date="1157187094" username=""
> version="3.6.4"><![CDATA[add a single avatar]]></phrase>
> <phrase name="add_a_single_post_icon" date="1157187094"
> username="" version="3.6.4"><![CDATA[add a single post icon]]></
> phrase>
> <phrase name="add_a_single_smilie" date="1157187094" username=""
> version="3.6.4"><![CDATA[add a single smilie]]></phrase>
>
> etc .....
> ##########################
>
> i am waiting for a good answer ;)?
> best regards


I've never actually done this myself, but from what I understand from
sites I've worked with that are multi lingual, the core concept is
having a language file, and inside the templates where the text needs
to go, the variable placeholders would go there instead.

Then, in the code where they would select the language, depending on
that decision, it pulls from the appropriate language file, replacing
all the text elements with the text in the appropriate language.
There's probably dozens of ways to accomplish this, depending on how
elaborate the site is.

Someone can probably give more details on how to make it work, but
that's the gist of how it works in a nutshell.

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews