Example #1
0
File: utils.py Project: hans/anki
def checkInvalidFilename(str, dirsep=True):
    bad = invalidFilename(str, dirsep)
    if bad:
        showWarning(_("The following character can not be used: %s") %
                    bad)
        return True
    return False
Example #2
0
def checkInvalidFilename(str, dirsep=True):
    bad = invalidFilename(str, dirsep)
    if bad:
        showWarning(_("The following character can not be used: %s") %
                    bad)
        return True
    return False
Example #3
0
File: main.py Project: jdeut/ankiqt
 def profileNameOk(self, str):
     from anki.utils import invalidFilename, invalidFilenameChars
     if invalidFilename(str):
         showWarning(
             _("A profile name cannot contain these characters: %s") %
             " ".join(invalidFilenameChars))
         return
     return True
Example #4
0
 def profileNameOk(self, str):
     from anki.utils import invalidFilename, invalidFilenameChars
     if invalidFilename(str):
         showWarning(
             _("A profile name cannot contain these characters: %s") %
             " ".join(invalidFilenameChars))
         return
     return True
Example #5
0
def checkInvalidFilename(str, dirsep=True):
    bad = invalidFilename(str, dirsep)
    if bad:
        showWarning(tr(TR.QT_MISC_THE_FOLLOWING_CHARACTER_CAN_NOT_BE, val=bad))
        return True
    return False
Example #6
0
def checkInvalidFilename(str: str, dirsep: bool = True) -> bool:
    bad = invalidFilename(str, dirsep)
    if bad:
        showWarning(tr.qt_misc_the_following_character_can_not_be(val=bad))
        return True
    return False