[p2pu-dev] Success message after course creation is not in English, even though LANGUAGE_CODE = 'en'

Dirk Uys dirk at p2pu.org
Mon Jun 4 09:00:46 UTC 2012


Thanks!

I also noticed that, simple assumed that my settings were wrong. I'll
look into it to figure out what's going on

Cheers
d

On Sat, Jun 2, 2012 at 11:43 AM, Jos Flores <josmasflores at gmail.com> wrote:
> don't know why it happens but I have noticed that in my local copy too.
>
> cheers,
> José
>
> On 2 June 2012 10:09, Prasanth <oneaufs at gmail.com> wrote:
>> Hello,
>>
>> I noticed a strange behavior in the latest commit in the master branch on
>> github (commit bca3ba2b6b59c9f3de593a48ca5cc4a7c4146e55).
>>
>> After creating a course I get the following message (in a green "box" just
>> after the breadcrumbs trail):
>>
>> course已经被创造。
>>
>> First I thought the language setting was wrong. But in settings.py, language
>> is set to English in line 41:
>>
>>    # Language code for this installation. All choices can be found here:
>>    # http://www.i18nguy.com/unicode/language-identifiers.html
>>    LANGUAGE_CODE = 'en'
>>
>> This string is present in line 188 of locale/zh_CN/LC_MESSAGES/django.po:
>>
>>    #: apps/badges/views.py:86 apps/projects/views.py:191
>>    #, python-format
>>    msgid "The %s has been created."
>>    msgstr "%s已经被创造。"
>>
>>
>> To see if the program was performing this translation, I changed line 190
>> in apps/projects/views.py from
>>
>>        messages.success(request,
>>                 _('The %s has been created.') % project.kind.lower())
>>
>> to
>>
>>        messages.success(request,
>>                 _('Something else %s.') % project.kind.lower())
>>
>> Then I get the expected message "Something else course".
>>
>>
>> Is the program, for some reason, trying to translate the line into zh_CN? Or
>> is this behavior due to some other reason?
>>
>>
>>
>> _______________________________________________
>> p2pu-dev mailing list
>> p2pu-dev at lists.p2pu.org
>> http://lists.p2pu.org/mailman/listinfo/p2pu-dev
>>
> _______________________________________________
> p2pu-dev mailing list
> p2pu-dev at lists.p2pu.org
> http://lists.p2pu.org/mailman/listinfo/p2pu-dev


More information about the p2pu-dev mailing list