[Ilugc] unicoding???

  • From: parth.technofreak@xxxxxxxxx (Parthan)
  • Date: Thu Jan 25 12:16:04 2007

Kenneth Gonsalves wrote:

1. In your source code, mark all translateable strings: _("to be 
translated")
2. In your html mark all strings suitably - for example in django do {% 
trans "to be translated" %}
3. using xgettext create a .pot file which is of the form:

msgid:
"to be translated"
msgstring:
"fill in tamil here"

4. then compile your .po file into a .mo file
5. put the .mo file in ~locale/ta/LC_MESSAGES

then, depending on the language setting, the appropriate string will be 
taken from the .mo file and displayed

After creating the .mo file and putting it in ~locale/ta/LC_MESSAGES, 
think you have to use  i18n_loc_set_dfault('ta_TA') in your PHP file.

You can read about this function here - 
http://www.php.net/manual/en/function.i18n-loc-set-default.php

Try with a small text file, where you enter a set of string and check 
whether it gets replaced by the corresponding locale string.

remember to use -("string") else it will not know what string to localize.

-- 
With Regards

Parthan (TechnoFreak)

.   A Proud GNU/Linux User and Ubuntero
.0.
..0 [Web] https://wiki.ubuntu.com/Parthan
000 [Blog]http://technofreakatchennai.wordpress.com

Other related posts: