Translating WeBid

From WeBid Support Wiki

(Redirected from Multi-Language Support)
Jump to:navigation, search

Contents

Creating and Using a Translation in WeBid

Depending on what language you are translating find the language code for it. The code can be found at w3.org [two letter language codes]

In this example will use the code XX but just change this with the correct code for the language you're translating to.

  1. Make new directory under /languages/ called XX: /languages/XX/
  2. Copy all files from /languages/EN/ to /languages/XX/
  3. Open the messages.inc.php file located in your newly created folder.
    Search for the variable $CHARSET the line will look something like $CHARSET= "UFT-8";. UFT-8 generally will display all alphabets although you may want to change it when using a non-standard alphabet as other charsets will generally display it better. For a list of charsets http://a4esl.org/c/charset.html
    Next you'll have to define the document reading direction. The variable to modify is $DOCDIR and can have two possible values:
    ltr (left-to-right): this is the default and means the text must be read from left to right
    rtl (right-to-left): means the text must be read from right to left (i.e. Arabian, Hebrew, etc)
  4. Translate the files in XX to the language you wish to translate to.

Use Renlok's Language Verification tool: (Follow instruction in this post)

http://www.webidsupport.com/forums/showthread.php?t=16

Enabling multilingual support with your new language

You will then need the flag image (which must be in gif format) for the languages you are going to use and place it in the includes/flags directory. Get the flag you need and change the file name to be XX.gif, where XX is the language code for your country language.

Note: for each translation, you need the corresponding flag file in includes/flags/ folder
Select the default language below. All the other available languages will be available in the home page (the corresponding flags will be shown).

Change the default language to your new translation

Get to the default language page in the admin control panel which is located at Preferences > Multi-Language Support

In the drop choose the correct language and click save

Additional Resources

[Existing translations]