Пример #1
0
    def test_pos(self):
        try:
            gettextutil.check_version()
        except gettextutil.GettextError:
            return

        gettextutil.check_po(PODIR, self.lang)
Пример #2
0
    def test_missing(self):
        try:
            gettextutil.check_version()
        except gettextutil.GettextError:
            return

        results = gettextutil.get_missing(PODIR, "quodlibet")
        if results:
            raise MissingTranslationsException(results)
Пример #3
0
    def test_missing(self):
        try:
            gettextutil.check_version()
        except gettextutil.GettextError:
            return

        results = gettextutil.get_missing(PODIR, "quodlibet")
        if results:
            raise MissingTranslationsException(results)
Пример #4
0
    def test_missing(self):
        try:
            gettextutil.check_version()
        except gettextutil.GettextError:
            return

        result = gettextutil.get_missing(PODIR, "quodlibet")
        if result:
            raise Exception("\n".join(result))
Пример #5
0
    def test_missing(self):
        try:
            gettextutil.check_version()
        except gettextutil.GettextError:
            return

        result = gettextutil.get_missing(PODIR, "quodlibet")
        if result:
            raise Exception("\n".join(result))
Пример #6
0
def has_gettext_util():
    try:
        gettextutil.check_version()
    except gettextutil.GettextError:
        return False
    return True
Пример #7
0
 def setUpClass(cls):
     gettextutil.check_version()
     pot_path = gettextutil.update_pot(PODIR, "quodlibet")
     cls.pot = polib.pofile(pot_path)
Пример #8
0
 def setUpClass(cls):
     gettextutil.check_version()
     with gettextutil.create_pot(PODIR, "quodlibet") as pot_path:
         cls.pot = polib.pofile(pot_path)
Пример #9
0
 def setUpClass(cls):
     gettextutil.check_version()
     pot_path = gettextutil.update_pot(PODIR, "quodlibet")
     cls.pot = polib.pofile(pot_path)
Пример #10
0
 def setUpClass(cls):
     gettextutil.check_version()
     with gettextutil.create_pot(PODIR, "quodlibet") as pot_path:
         cls.pot = polib.pofile(pot_path)
Пример #11
0
def has_gettext_util():
    try:
        gettextutil.check_version()
    except gettextutil.GettextError:
        return False
    return True