Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8.2, 0.8.3, and 0.9

stable thgtaskbar: add gettext wrapper to taskbar menu

Changeset 496186a1506a

Parent 834c42a4dbf4

by Yuki KODAMA

Changes to one file · Browse files at 496186a1506a Showing diff from parent 834c42a4dbf4 Diff from another changeset...

Change 1 of 3 Show Entire File thgtaskbar.py Stacked
 
24
25
26
 
27
28
29
 
35
36
37
38
 
39
40
41
 
110
111
112
113
 
114
115
 
116
117
118
 
24
25
26
27
28
29
30
 
36
37
38
 
39
40
41
42
 
111
112
113
 
114
115
 
116
117
118
119
@@ -24,6 +24,7 @@
 demandimport.ignore.append('win32com.shell')  demandimport.enable()  from mercurial import ui, error +from thgutil.i18n import agettext as _  from thgutil import thread2, paths, shlib    if hasattr(sys, "frozen"): @@ -35,7 +36,7 @@
  sys.stdout.closed = True   sys.stderr.closed = True   -APP_TITLE = "TortoiseHg RPC server" +APP_TITLE = _('TortoiseHg RPC server')    SHOWLOG_CMD = 1023  EXIT_CMD = 1025 @@ -110,9 +111,9 @@
  def OnTaskbarNotify(self, hwnd, msg, wparam, lparam):   if lparam==win32con.WM_RBUTTONUP or lparam==win32con.WM_LBUTTONUP:   menu = CreatePopupMenu() - AppendMenu(menu, win32con.MF_STRING, SHOWLOG_CMD, 'Options...') + AppendMenu(menu, win32con.MF_STRING, SHOWLOG_CMD, _('Options...'))   AppendMenu(menu, win32con.MF_SEPARATOR, 0, '') - AppendMenu(menu, win32con.MF_STRING, EXIT_CMD, 'Exit' ) + AppendMenu(menu, win32con.MF_STRING, EXIT_CMD, _('Exit'))   pos = GetCursorPos()   # See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/menus_0hdi.asp   try: