Re: How to format string on I18n

2012-01-04 Thread Krator Ado
msgid u"邀請已送到%(email)s" and add "# coding=utf-8" at the first line of your .py file. 2012/1/4 李 强 > Lack of a full stop,maybe. > > 在 2011-12-5,下午2:07, Tsung-Hsien 写道: > > > Hello > >I get the wrong message when type a string which needed to format > > such as > > > > msgid "An inviatation wa

Re: How to format string on I18n

2012-01-03 Thread 李 强
Lack of a full stop,maybe. 在 2011-12-5,下午2:07, Tsung-Hsien 写道: > Hello >I get the wrong message when type a string which needed to format > such as > > msgid "An inviatation was sent to %(email)s." > msgstr "邀請已送到%(email)s" > > ---

Re: How to format string on I18n

2011-12-05 Thread rskm1
On Dec 5, 6:05 am, Tsung-Hsien wrote: > I have been delete the "#, fuzzy" and remain the "#, python-format", > but the string still show English. You do need to remove the ", fuzzy" in order for the translations to be used. But you also need to recompile the .mo files after you make any changes t

Re: How to format string on I18n

2011-12-05 Thread Tsung-Hsien
Thank you! the default character of MySQL does not utf-8, so after altering the character, the message can show on the page. However, the message shows only English, except I don't use the % (email)s. I have been delete the "#, fuzzy" and remain the "#, python-format", but the string still show Eng

Re: How to format string on I18n

2011-12-05 Thread Mimi Tantono
Please look at the thread below: http://stackoverflow.com/questions/873419/converting-to-safe-unicode-in-python And you would want to make sure that database encoding style is already set to UTF-8 (if applicable). 2011/12/5 Tsung-Hsien > Hello >I get the wrong message when type a string whi

How to format string on I18n

2011-12-04 Thread Tsung-Hsien
Hello I get the wrong message when type a string which needed to format such as msgid "An inviatation was sent to %(email)s." msgstr "邀請已送到%(email)s" -- Incorrect string value: '\xE9\x82\x80\xE8\xAB\x8B...