Friday, January 17, 2014

Re: Could SelectDateWidget show chinese?

Hi Forrest,

All the strings used by SelectDateWidget are translated, so it should just be a matter of setting your active locale to zh_CN (or whatever chinese sub locale is more appropriate to your situation). 

As for how to set your language preference: there are a number of options, depending on what you're trying to achieve:

https://docs.djangoproject.com/en/dev/topics/i18n/translation/#how-django-discovers-language-preference

Yours,
Russ Magee %-)

On Sat, Jan 18, 2014 at 1:09 AM, forrest yang <Gforrest.yang@gmail.com> wrote:
Just try to use django in a chinese web site.
Is that possilbe to make SelectDateWidget show chinese month name? or is there any other workaround?

Thanks

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/bf21d5f0-5974-4017-aac0-8694337192af%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJxq849Zdo5N1UhjrmGYD1_WKJO%2Bnat-TDXb%2BJKFn5COMH5jBg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate