You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Need tests for gettext support in argparse #124432
argparse supports localization of error messages and helps with gettext. But currently there is no any test for gettext support in argparse. There were several bugs related to improper use of gettext and we cannot be sure that all bugs are fixed or that old bugs will not reappear. We need to add tests for every translated string in argparse.
I thought that we should run the parser with different options to produce different error messages with installed special translator that transforms the original text in simply recognizable way. But there may be better ways.
Activity
tomasr8 commentedon Sep 24, 2024
This issue seems related: #124295
Anyway, what's best way to test this? Run pygettext and compare the PO file?
serhiy-storchaka commentedon Sep 24, 2024
Then closing this issue.
I thought that we should run the parser with different options to produce different error messages with installed special translator that transforms the original text in simply recognizable way. But there may be better ways.