Hi all,
I have two questions regarding i18n to which I find very little or even
no information. I hope someone can help.
The first question is whether django supports the declaration of a
message context (msgctxt) in the .po-files in order to have different
translations for the same string in different positions of the application.
I tried the following
#: templates/client/base_project.html:21
msgctxt "templates/client/base_project.html:21"
msgid "Public"
msgstr "My translation"
and a couple of deviations but the string is never translated if the
"msgctxt" declaration is present.
The second question is whether it is possible to remove options (in my
special case I use the "choices" parameter in my model) depending on the
language. The background is the following:
I have a field containing the salutation. In english this would contain
"Mr, Mrs and Ms" while in most other languages this only contains a
string for males and a string for females - thus only two options. Is it
possible to get rid of the third option if no equivalent for that is
available in a certain langauge?
Thanks in advance!
Regards,
Daniel
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.