diff MoinMoin/formatter/text_html.py @ 486:72e96d74f98d

i18ned the linenumber toggle string imported from: moin--main--1.5--patch-490
author Thomas Waldmann <tw@waldmann-edv.de>
date Tue, 21 Mar 2006 08:36:53 +0000
parents 6a0bfc86b441
children ca35d9e6d63e
line wrap: on
line diff
--- a/MoinMoin/formatter/text_html.py	Mon Mar 20 20:27:42 2006 +0000
+++ b/MoinMoin/formatter/text_html.py	Tue Mar 21 08:36:53 2006 +0000
@@ -947,6 +947,7 @@
         Call once with on=1 to start the region, and a second time
         with on=0 to end it.
         """
+        _ = self.request.getText
         res = []
         ci = self.request.makeUniqueID('CA-%s_%03d' % (code_id, self._code_area_num))
         if on:
@@ -969,9 +970,10 @@
                 toggleLineNumbersLink = r'''
 <script type="text/javascript">
 document.write('<a href="#" onclick="return togglenumber(\'%s\', %d, %d);" \
-                class="codenumbers">Toggle line numbers<\/a>');
+                class="codenumbers">%s<\/a>');
 </script>
-''' % (self._code_area_state[0], self._code_area_state[2], self._code_area_state[3])
+''' % (self._code_area_state[0], self._code_area_state[2], self._code_area_state[3],
+       _("Toggle line numbers"))
                 res.append(toggleLineNumbersLink)
 
             # Open pre - using left to right always!