django-admin.py makemessages is ignoring .txt files

138 views
Skip to first unread message

simone...@gmail.com

unread,
Apr 16, 2010, 5:52:34 AM4/16/10
to Django users
Hi all,

I'm noticing a strange problem with gettext makemessages command.

When I launch it to generate a .po file, it seems it completely
ignores i18n strings that are placed in .txt files.
Cannot see any way to get it referenced in the .po file.

All others strings are correctly pickled.

I'm running django 1.1.1 and using the command django-admin.py
makemessages --locale=pt_BR

Any suggestions?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Tom Evans

unread,
Apr 16, 2010, 6:09:39 AM4/16/10
to django...@googlegroups.com
On Fri, Apr 16, 2010 at 10:52 AM, simone...@gmail.com
<simone...@gmail.com> wrote:
> Hi all,
>
> I'm noticing a strange problem with gettext makemessages command.
>
> When I launch it to generate a .po file, it seems it completely
> ignores i18n strings that are placed in .txt files.
> Cannot see any way to get it referenced in the .po file.
>
> All others strings are correctly pickled.
>
> I'm running django 1.1.1 and using the command django-admin.py
> makemessages --locale=pt_BR
>
> Any suggestions?
>

By default makemessages will only look at python files and html files,
or js files when making the js catalog. You must tell it what files to
search for translations, using the --extension (-e) flag to
makemessages.

See core/management/commands/makemessages.py for more details.

Cheers

Tom

simone...@gmail.com

unread,
Apr 16, 2010, 6:49:58 AM4/16/10
to Django users
Hey,

thank you for the quick and correct reply.

Simone.


On 16 Apr, 12:09, Tom Evans <tevans...@googlemail.com> wrote:
> On Fri, Apr 16, 2010 at 10:52 AM, simonecare...@gmail.com
Reply all
Reply to author
Forward
0 new messages