Emoticons pack. fix translation

This commit is contained in:
Denis Fomin
2013-08-24 14:38:46 +04:00
parent 1d99b1ad88
commit 9b229cd690

View File

@@ -138,8 +138,8 @@ class EmoticonsPackPlugin(GajimPlugin):
name = model.get_value(iter, C_NAME) name = model.get_value(iter, C_NAME)
label = self.xml.get_object('label2') label = self.xml.get_object('label2')
if label.get_text() == 'Legend': if label.get_text() == _('Legend'):
label.set_text('Description') label.set_text(_('Description'))
sys.path.append(os.path.join(self.tmp_dir, name)) sys.path.append(os.path.join(self.tmp_dir, name))
import emoticons import emoticons
@@ -178,7 +178,7 @@ class EmoticonsPackPlugin(GajimPlugin):
sw = self.xml.get_object('scrolledwindow1') sw = self.xml.get_object('scrolledwindow1')
sw.add(self.emoticons_description_textview.tv) sw.add(self.emoticons_description_textview.tv)
sw.show_all() sw.show_all()
label.set_text('Legend') label.set_text(_('Legend'))
desc = _(model.get_value(iter, C_DESCRIPTION)) desc = _(model.get_value(iter, C_DESCRIPTION))
if not desc.startswith('<body '): if not desc.startswith('<body '):
desc = '<body xmlns=\'http://www.w3.org/1999/xhtml\'>' + \ desc = '<body xmlns=\'http://www.w3.org/1999/xhtml\'>' + \