# HG changeset patch
# User Yuki KODAMA <endflow....@gmail.com>
# Date 1249878071 -32400
# Node ID d84155d3846b6a044203b9b943abd1a30b5dc803
# Parent  986b789c4b522721055c7ef001c30481f268bf0a
thgtaskbar: add gettext wrapper to taskbar menu

diff --git a/thgtaskbar.py b/thgtaskbar.py
--- a/thgtaskbar.py
+++ b/thgtaskbar.py
@@ -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:

Attachment: thg-kuy_rev3506.patch
Description: Binary data

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to