diff MoinMoin/theme/__init__.py @ 1808:e43e65d90f26

action menu: speed up, add entry for SyncPages, longer separator
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 24 Feb 2007 15:06:30 +0100
parents 0eca596ce903
children dca96e7c8199
line wrap: on
line diff
--- a/MoinMoin/theme/__init__.py	Sat Feb 24 14:35:23 2007 +0100
+++ b/MoinMoin/theme/__init__.py	Sat Feb 24 15:06:30 2007 +0100
@@ -907,13 +907,14 @@
             'Despam',
             'revert',
             'PackagePages',
+            'SyncPages',
             ]
 
         titles = {
             # action: menu title
             '__title__': _("More Actions:", formatted=False),
             # Translation may need longer or shorter separator
-            '__separator__': _('------------', formatted=False),
+            '__separator__': _('------------------------', formatted=False),
             'raw': _('Raw Text', formatted=False),
             'print': _('Print View', formatted=False),
             'refresh': _('Delete Cache', formatted=False),
@@ -928,6 +929,7 @@
             'revert': _('Revert to this revision', formatted=False),
             'PackagePages': _('Package Pages', formatted=False),
             'RenderAsDocbook': _('Render as Docbook', formatted=False),
+            'SyncPages': _('Sync Pages', formatted=False),
             }
 
         options = []
@@ -973,8 +975,10 @@
             for action in more:
                 data = {'action': action, 'disabled': ''}
                 # Always add spaces: AttachFile -> Attach File 
-                # XXX TODO do not create page just for using split_title
-                title = Page(request, action).split_title(force=1)
+                # XXX do not create page just for using split_title -
+                # creating pages for non-existant does 2 storage lookups 
+                #title = Page(request, action).split_title(force=1)
+                title = action
                 # Use translated version if available
                 data['title'] = _(title, formatted=False)
                 options.append(option % data)