示例#1
0
	def get_text(self, lang) :
		text = None

		text = i18n.get_text_from_dict(self.texts, lang)


		return text
示例#2
0
	def get_title(self, lang) :

		title = None

		if (lang in self.titles) :
			title = i18n.get_text_from_dict(self.titles, lang)

		if (title == None) :
			if (lang in self.levels[0].games[0].titles) :
				title = self.levels[0].games[0].get_title(lang)

		return title
示例#3
0
文件: common.py 项目: edupals/omnitux
    def get_title(self, lang):

        title = None

        if (lang in self.titles):
            title = i18n.get_text_from_dict(self.titles, lang)

        if (title == None):
            if (lang in self.levels[0].games[0].titles):
                title = self.levels[0].games[0].get_title(lang)

        return title
示例#4
0
	def get_title(self, lang) :
		return i18n.get_text_from_dict(self.titles, lang)
示例#5
0
文件: common.py 项目: edupals/omnitux
    def get_text(self, lang):
        text = None

        text = i18n.get_text_from_dict(self.texts, lang)

        return text
示例#6
0
文件: common.py 项目: edupals/omnitux
 def get_title(self, lang):
     return i18n.get_text_from_dict(self.titles, lang)