Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinier Heeres <rwh@rwh.(none)>2008-09-18 19:28:43 (GMT)
committer Reinier Heeres <rwh@rwh.(none)>2008-09-18 19:28:43 (GMT)
commitc698e1c4599d8367d3588c3208b30fa050c52147 (patch)
tree7ae446a6b4ac3001441d41d2a372ab8dd024f5f8
parent01f1b6315bc061f846dc4ce1a56168bc9ed524e8 (diff)
Make "enter" and "clear" translateable
-rw-r--r--layout.py4
-rw-r--r--po/Calculate.pot8
2 files changed, 10 insertions, 2 deletions
diff --git a/layout.py b/layout.py
index 91e5958..08825cd 100644
--- a/layout.py
+++ b/layout.py
@@ -41,7 +41,7 @@ class CalcLayout:
# Deprecated -- functionality available through interface and labels
# [2, 3, 1, 'Ans', self.col_gray2, lambda w: self._parent.add_text('Ans')],
- [3, 0, 3, 'clear', self.col_gray1, lambda w: self._parent.clear()],
+ [3, 0, 3, _('Clear'), self.col_gray1, lambda w: self._parent.clear()],
[3, 1, 1, '+', self.col_gray3, lambda w: self._parent.add_text('+')],
[4, 1, 1, '-', self.col_gray3, lambda w: self._parent.add_text('-')],
@@ -50,7 +50,7 @@ class CalcLayout:
[4, 2, 1, div_sym, self.col_gray3, lambda w: self._parent.add_text(div_sym)],
[5, 2, 1, ')', self.col_gray3, lambda w: self._parent.add_text(')')],
- [3, 3, 3, 'enter', self.col_gray1, lambda w: self._parent.process()],
+ [3, 3, 3, _('Enter'), self.col_gray1, lambda w: self._parent.process()],
]
def create_dialog(self):
diff --git a/po/Calculate.pot b/po/Calculate.pot
index ac76c35..c5fdfcd 100644
--- a/po/Calculate.pot
+++ b/po/Calculate.pot
@@ -355,6 +355,14 @@ msgstr ""
msgid "No help about '%s' available, use help(index) for the index"
msgstr ""
+#: layout.py:44
+msgid "Clear"
+msgstr ""
+
+#: layout.py:53
+msgid "Enter"
+msgstr ""
+
#: layout.py:60
msgid "Edit"
msgstr ""