Django management command doesn't recognize multiline strings as strings to
localize. So such strings don't appear in resulting django.po files after
running command

For example for such a string

{code}
{{ _(''' fhsdafjkshdfjkasdhfksj
         ytyerwtuiwyertuiywert''') }}
{code}

I might be the bug of GNU xgettext utility, because makemessages uses it to
produce *.po files, but after running xgettext I became sure that the
problem is in the makemessages command, not xgettext.

I ran xgettext using the following command

xgettext --keyword=gettext_noop --keyword=gettext_lazy
--keyword=ngettext_lazy:1,2 --keyword=ugettext_noop --keyword=ugettext_lazy
--keyword=ungettext_lazy:1,2 --keyword=pgettext:1c,2
--keyword=npgettext:1c,2,3 --keyword=pgettext_lazy:1c,2
--keyword=npgettext_lazy:1c,2,3 --from-code UTF-8
--add-comments=Translators --from-code utf-8 -d django -p ./output_dir -L
Python temp_i18n_template.html

After running this command I got file output_dir/django.po with specified
string inside it.

What I can do now? What do you think about this "bug" ?

P.S. It's my first attempt to contribute to Django somehow. So please do
not judge strictly). I haven't found anywhere about this problem and about
its' fixes too.

-- 
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+unsubscr...@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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAL40Fpvq5K_GP0k1oXuUVHH8-UCeCcFDMVJ2F9QWp6RUNRkSzg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to