Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/toolbar.py
diff options
context:
space:
mode:
authorMarc Maurer <uwog@uwog.net>2007-08-28 13:32:07 (GMT)
committer Marc Maurer <uwog@uwog.net>2007-08-28 13:32:07 (GMT)
commitda6b626e6691a845c90aec8479022a81c03e8712 (patch)
treefde00820a48b0bf86c6bc6a2ca63944e0c7edb5d /toolbar.py
parent616e479f7dbeaeeb74e943ea72b94ee382a37c7a (diff)
Make style names translatable
Diffstat (limited to 'toolbar.py')
-rw-r--r--toolbar.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/toolbar.py b/toolbar.py
index 0ab143a..9876afd 100644
--- a/toolbar.py
+++ b/toolbar.py
@@ -312,22 +312,22 @@ class FormatToolbar(gtk.Toolbar):
self._abiword_canvas = abiword_canvas
self._style_combo = ComboBox()
- self._styles = ['Heading 1',
- 'Heading 2',
- 'Heading 3',
- 'Heading 4',
- 'Bullet List',
- 'Dashed List',
- 'Numbered List',
- 'Lower Case List',
- 'Upper Case List',
- 'Block Text',
- 'Normal',
- 'Plain Text']
+ self._styles = [['Heading 1',_('Heading 1')],
+ ['Heading 2',_('Heading 2')],
+ ['Heading 3',_('Heading 3')],
+ ['Heading 4',_('Heading 4')],
+ ['Bullet List',_('Bullet List')],
+ ['Dashed List',_('Dashed List')],
+ ['Numbered List',_('Numbered List')],
+ ['Lower Case List',_('Lower Case List')],
+ ['Upper Case List',_('Upper Case List')],
+ ['Block Text',_('Block Text')],
+ ['Normal',_('Normal')],
+ ['Plain Text',_('Plain Text')]]
self._style_changed_id = self._style_combo.connect('changed', self._style_changed_cb)
for i, s in enumerate(self._styles):
- self._style_combo.append_item(i, s, None)
- if s == 'Normal':
+ self._style_combo.append_item(i, s[1], None)
+ if s[0] == 'Normal':
self._style_combo.set_active(i)
tool_item = ToolComboBox(self._style_combo)
self.insert(tool_item, -1);
@@ -335,8 +335,8 @@ class FormatToolbar(gtk.Toolbar):
def _style_changed_cb(self, combobox):
if self._style_combo.get_active() != -1:
- logger.debug('Setting style name: %s', self._styles[self._style_combo.get_active()])
- self._abiword_canvas.set_style(self._styles[self._style_combo.get_active()])
+ logger.debug('Setting style name: %s', self._styles[self._style_combo.get_active()][0])
+ self._abiword_canvas.set_style(self._styles[self._style_combo.get_active()][0])
class ViewToolbar(gtk.Toolbar):
def __init__(self, abiword_canvas):