def get_message(self, type_, **kwargs): from the_tale.linguistics.logic import get_text externals = kwargs externals.update(self.substitution) return get_text(type_, externals, quiet=True)
def create_name(cls, effect): from the_tale.linguistics.logic import get_text return get_text( u'job_name_{actor}_{effect}'.format(actor=cls.ACTOR, effect=effect.name).upper(), {})
def get_text(self): if self.text is not None: return self.text from the_tale.linguistics.logic import get_text text = get_text(self.textgen_id, self.substitutions) return text if text is not None else u''
def create_name(cls, effect): from the_tale.linguistics.logic import get_text return get_text('job_name_{actor}_{effect}'.format(actor=cls.ACTOR, effect=effect.name).upper(), {})
def create_name(actor, effect): return linguistics_logic.get_text( 'job_name_{actor}_{effect}'.format(actor=actor, effect=effect.name).upper(), {})