Beispiel #1
0
    def test_pos(self):
        try:
            gettextutil.check_version()
        except gettextutil.GettextError:
            return

        gettextutil.check_po(PODIR, self.lang)
Beispiel #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)
Beispiel #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)
Beispiel #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))
Beispiel #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))
Beispiel #6
0
def has_gettext_util():
    try:
        gettextutil.check_version()
    except gettextutil.GettextError:
        return False
    return True
Beispiel #7
0
 def setUpClass(cls):
     gettextutil.check_version()
     pot_path = gettextutil.update_pot(PODIR, "quodlibet")
     cls.pot = polib.pofile(pot_path)
Beispiel #8
0
 def setUpClass(cls):
     gettextutil.check_version()
     with gettextutil.create_pot(PODIR, "quodlibet") as pot_path:
         cls.pot = polib.pofile(pot_path)
Beispiel #9
0
 def setUpClass(cls):
     gettextutil.check_version()
     pot_path = gettextutil.update_pot(PODIR, "quodlibet")
     cls.pot = polib.pofile(pot_path)
Beispiel #10
0
 def setUpClass(cls):
     gettextutil.check_version()
     with gettextutil.create_pot(PODIR, "quodlibet") as pot_path:
         cls.pot = polib.pofile(pot_path)
Beispiel #11
0
def has_gettext_util():
    try:
        gettextutil.check_version()
    except gettextutil.GettextError:
        return False
    return True