From d6024d9f7da5ab7bdfb20dd821cfbce4a9c5aed2 Mon Sep 17 00:00:00 2001 From: Nick B Date: Sun, 24 Jun 2018 17:50:52 +0100 Subject: [PATCH] Test a couple of German translations Just to be sure it isn't / doesn't get broken, really. See #58. --- tests/test_gettext.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_gettext.py b/tests/test_gettext.py index 2fc6435..c545964 100644 --- a/tests/test_gettext.py +++ b/tests/test_gettext.py @@ -36,6 +36,12 @@ def test_binding_uses_settings_locale(): assert _("favorites") == "favourites" +def test_some_german_works(): + _ = set_up_gettext("de_DE.UTF-8") + assert _("favorites") == "Favoriten" + assert _("Playing mix of {genres}") == "Spiele eine Mischung aus {genres}" + + class NewLocale(object): def __init__(self, loc):