class ModelBase:
def __init__(self, model):
self.model = model
self.server = self.model.server
self.connection = self.model.connection
self.rights = self.model.internal_rights
self.translator = self.model.translator
def translate(self, text):
return self.translator.translate(text)
def t(self, text):
return self.translate(text)