Re: How to view your translated site?
Thanks, I went here http://www.i18nguy.com/unicode/language-identifiers.html ctrl+ f "japanese" saw jp on the left hand side. I thought ja was a localization of jp so it would be jp-ja.
On Thursday, 18 April 2013 11:42:37 UTC-4, Cody Scott wrote:
I am trying to view my site in japanese. I have create the translations and compiled them with compilemessages.--In my urls.py I haveurlpatterns = i18n_patterns('', #... )
Settings.py
LANGUAGE_CODE = 'en-us' #Used for translations gettext = lambda s: s LANGUAGES = ( ('en', gettext('English')), ('jp', gettext('Japanese')), )
But when I try to access a url with /jp/ at the start I get that there is only /en/
Using the URLconf defined in PLP.urls, Django tried these URL patterns, in this order: ^en/ The current URL, jp/accounts/login, didn't match any of these.I am using dbgettext so I also have my database content translated in my messages.But how can I display it{% trans "Question:" %}{% trans {{question.question}} %}<br>Could not parse the remainder: '{{question.question}}' from '{{question.question}}'
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home