Example #1
0
    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)
Example #2
0
    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(),
            {})
Example #3
0
    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)
Example #4
0
    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''
Example #5
0
    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''
Example #6
0
    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(), {})
Example #7
0
def create_name(actor, effect):
    return linguistics_logic.get_text(
        'job_name_{actor}_{effect}'.format(actor=actor,
                                           effect=effect.name).upper(), {})