*gettext calls should be properly validated for the correct number/type of arguments and an error/warning should be issued if the signature does not match.
Some examples which currently produce po file entries w/o any errors/warnings:
gettext(some_arg="hello") - gettext takes only one positional argument
gettext("hello", "asdad") - same for this
ngettext("asd", "sdfsdfsd") - missing n argument
These should either be errors or at least warnings as they will result in runtime errors.
Overview Description
*gettext calls should be properly validated for the correct number/type of arguments and an error/warning should be issued if the signature does not match.
Some examples which currently produce po file entries w/o any errors/warnings:
gettext(some_arg="hello")
-gettext
takes only one positional argumentgettext("hello", "asdad")
- same for thisngettext("asd", "sdfsdfsd")
- missingn
argumentThese should either be errors or at least warnings as they will result in runtime errors.
Additional Information
babel version 2.12.1