docs: translation: django-admin is not used correctly

Issue #940 resolved
Cristian Ciupitu
created an issue

The documentation says to run {{{ /path/to/django-admin.py makemessages -l=de -e=html,txt,rml }}} but this will generate messages for =de and not for de: {{{ processing language =de }}}

Short options should be used without the equal sign ("{{{=}}}").

I'm using Django-1.1.1-1.fc11.noarch with python-2.6-9.fc11.x86_64.

Comments (7)

  1. Chris Moffitt repo owner

    docs: translation: run django-admin correctly. Fixes #940

    - `django-admin makemessages' was run incorrectly. Its help says:

    -l LOCALE, --locale=LOCALE -e EXTENSIONS, --extension=EXTENSIONS

    This means that short options should be used without the equal sign ("="). Because "-l=de" was used, a locale for "=de" was generated:

    processing language =de

    6e2288098fa6

  2. Andrea Innocenti

    I see this issue is a handle for what I want to ask: in the django docs there's written about translating strings into the javascript files. I've done some working with translation till now but I cannot find the strings in the javascript files in the po. You write some error message with js, how can I translate them correctly? or am I miss something? thank you Andrea

  3. Andrea Innocenti

    yes, this is the document that I was talking about. As you can see they're talking about the translations in javascipt file, I opened a couple shipped with satchmo that contains some strings but they're not in gettext function nor in {% trans %} templates. I was translating it in itallian and add a conditional include throw the template based on the language requested. but I don't think that's the best approach.

  4. Log in to comment