Hi Claude,

Thanks for getting back to me.

Two things: A) You were right, it was a config issue, the path was off. But 
it took me some time to get to terms with the formatting. I think the docs 
are not very clear on how the locale needs to be formatted, e.g. zh_Hans is 
how the locale appears in the Django repo. But unless it's zh_HANS (note 
the part after the underscore is fully capitalized), the locale will not be 
recognized by django-rosetta. It took some time to figure that out. So 
should it be zh_Hans or zh_HANS? And perhaps this special locale could be 
added to the docs are examples?

But finally got it working! :)

On Monday, March 7, 2016 at 6:23:52 AM UTC+8, claudep wrote:
>
> Hey, 
>
> Could you tell us what's going wrong with: 
> django-admin.py makemessages -l zh_Hans 
>
> If you go to your admin interface, can you see Chinese translations for 
> Django itself? 
> I suspect an issue with your project configuration. 
>
> Claude 
>
> Le 06. 03. 16 07:44, Malte a écrit : 
> > 
> > Through this thread here: 
> > https://code.djangoproject.com/ticket/18419#comment:18 
> > 
> > I found out about the zh-* deprecation 
> > 
> > https://docs.djangoproject.com/en/1.9/internals/deprecation/ 
> > The zh-cn and zh-tw language codes will be removed and have been 
> > replaced by the zh-hans and zh-hant language code respectively. 
> > 
> > Which is a good thing! So now we finally got the correct zh-hans and 
> > zh-hant in there. 
> > 
> > But what the documentation isn't revealing is how I should deal with the 
> > locale. The list clearly states: 
> > 
> https://github.com/django/django/blob/master/django/conf/global_settings.py#L140
>  
> > 
> > zh-hans and zh-hant for the settings.py. 
> > 
> > However, the documentation is very vague about how the formatting should 
> > be for makemessages and compilemessages. 
> > 
> > Is it 
> > 
> > django-admin.py makemessages -l zh_Hans 
> > or 
> > django-admin.py makemessages -l zh_HANS 
> > ? 
> > 
> > Neither works for me right now and I can't figure it out. I already 
> > posted this question on SOF 
> > (
> http://stackoverflow.com/questions/35823415/django-how-to-implement-zh-hans-chinese)
>  
>
> > but I am running out of time with my project. Can anyone help me out 
> here? 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django internationalization and localization" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-i18n.
For more options, visit https://groups.google.com/d/optout.

Reply via email to