equal
deleted
inserted
replaced
223 gettext, pgettext = vreg.config.translations[language] |
223 gettext, pgettext = vreg.config.translations[language] |
224 self._ = self.__ = gettext |
224 self._ = self.__ = gettext |
225 self.pgettext = pgettext |
225 self.pgettext = pgettext |
226 except KeyError: |
226 except KeyError: |
227 self._ = self.__ = unicode |
227 self._ = self.__ = unicode |
228 self.pgettext = lambda x,y: y |
228 self.pgettext = lambda x, y: y |
229 self.lang = language |
229 self.lang = language |
230 |
230 |
231 def change_property(self, prop, value): |
231 def change_property(self, prop, value): |
232 assert prop == 'lang' # this is the only one changeable property for now |
232 assert prop == 'lang' # this is the only one changeable property for now |
233 self.set_language(value) |
233 self.set_language(value) |