Exemple #1
0
 def handle_cleaner_option_label(self, label):
     """<label> element under <option>"""
     self.option_name = _(getText(label.childNodes))
     translate = label.getAttribute('translate')
     translators = label.getAttribute('translators')
     if not translate or boolstr_to_bool(translate):
         self.xlate_cb(self.option_name, translators)
Exemple #2
0
 def handle_cleaner_option_label(self, label):
     """<label> element under <option>"""
     self.option_name = _(getText(label.childNodes))
     translate = label.getAttribute('translate')
     translators = label.getAttribute('translators')
     if not translate or boolstr_to_bool(translate):
         self.xlate_cb(self.option_name, translators)
Exemple #3
0
 def handle_cleaner_label(self, label):
     """<label> element under <cleaner>"""
     self.cleaner.name = _(getText(label.childNodes))
     translate = label.getAttribute('translate')
     if translate and boolstr_to_bool(translate):
         self.xlate_cb(self.cleaner.name)
Exemple #4
0
 def handle_cleaner_label(self, label):
     """<label> element under <cleaner>"""
     self.cleaner.name = _(getText(label.childNodes))
     translate = label.getAttribute('translate')
     if translate and boolstr_to_bool(translate):
         self.xlate_cb(self.cleaner.name)