Skip to content

Commit

Permalink
Fix argparse messages not being translated
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Arndt <[email protected]>
  • Loading branch information
SpotlightKid committed Mar 20, 2021
1 parent 5f8c6a5 commit 3df58c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jack_mixer/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
Franklin Street, Fifth Floor, Boston, MA 02110-130159 USA
""")

# Delayed import to get argparse to use our translations
# Hack argparse and delay its import to get it to use our translations
gettext.gettext, gettext.ngettext = translation.gettext, translation.ngettext
import argparse


Expand Down

0 comments on commit 3df58c8

Please sign in to comment.