[Python-projects] false positive with the _() symbol from gettext module
chaica
chaica at ohmytux.com
Wed Jun 17 21:40:49 CEST 2009
Hi,
Using the gettext module for internationalization, you have to put the
_() symbol around each string you want to translate. Pylint seems unable
to recognize this symbol and triggers an error :
E: 60:Terminal.extrait_ordres: Undefined variable '_'
E: 66:Terminal.extrait_ordres: Undefined variable '_'
E: 72:Terminal.extrait_ordres: Undefined variable '_'
E: 77:Terminal.extrait_ordres: Undefined variable '_'
E: 82:Terminal.extrait_ordres: Undefined variable '_'
E: 87:Terminal.extrait_ordres: Undefined variable '_'
Bye,
Carl Chenet
More information about the Python-Projects
mailing list