[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #64134] xgettext should not allow keyword arguments inside *gettext
From: |
Tomas Roun |
Subject: |
[bug #64134] xgettext should not allow keyword arguments inside *gettext() functions |
Date: |
Mon, 1 May 2023 12:36:50 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?64134>
Summary: xgettext should not allow keyword arguments inside
*gettext() functions
Group: GNU gettext
Submitter: tomasr8
Submitted: Mon 01 May 2023 04:36:48 PM UTC
Category: Python
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Mon 01 May 2023 04:36:48 PM UTC By: Tomas Roun <tomasr8>
*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.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64134>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #64134] xgettext should not allow keyword arguments inside *gettext() functions,
Tomas Roun <=