[Ilugc] unicoding???

  • From: lawgon@xxxxxxxxxxxxxxx (Kenneth Gonsalves)
  • Date: Thu Jan 25 11:21:03 2007


On 24-Jan-07, at 7:05 PM, ????? ?????  
?????? ?????? Vivek Iyyer wrote:

and tamil..this can be done by unicode...can u plz tell me how to do
unicoding in php??
Abitha.
what do you mean by unicoding in php? does this mean you want to be
able to display unicode characters in the web pages?

did you google ?
not too far in the googling I found this.
http://www.shawnolson.net/a/946/unicode-data-with-php-5-and- ;
mysql-41.html

this is not what she asked for. what is wanted is - how to make a  
multilingual website. This is how it is done in python - should be  
similar in php

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


-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/


Other related posts: