def validates_watch(obj, target, lang):
    checker = Checker()
    check = True
    _ = obj._
    checker.errors = []

    if target not in WATCH_PLUGINS.values():
        check = False
        checker.add_error(_(target) %_('"%s" is not watch target.'))

    if lang not in DEFAULT_LANGS:
        check = False
        checker.add_error(_('"%s" is not supported language.') %_(lang))

    obj.view.alert = checker.errors
    return check
dataset/ETHPy150Open karesansui/karesansui/karesansui/gadget/hostby1watchtemplate.py/validates_watch/swapped operands of `%`