Plugins/VcsPlugins/vcsPySvn/SvnDialog.py

changeset 3190
a9a94491c4fd
parent 3160
209a07d7e401
child 3484
645c12de6b0c
equal deleted inserted replaced
3189:9a21c547de5f 3190:a9a94491c4fd
71 71
72 @param eventDict dictionary containing the notification event 72 @param eventDict dictionary containing the notification event
73 """ 73 """
74 msg = "" 74 msg = ""
75 if eventDict["action"] == pysvn.wc_notify_action.update_completed: 75 if eventDict["action"] == pysvn.wc_notify_action.update_completed:
76 msg = self.trUtf8("Revision {0}.\n").format( 76 msg = self.tr("Revision {0}.\n").format(
77 eventDict["revision"].number) 77 eventDict["revision"].number)
78 elif eventDict["path"] != "" and \ 78 elif eventDict["path"] != "" and \
79 eventDict["action"] in svnNotifyActionMap and \ 79 eventDict["action"] in svnNotifyActionMap and \
80 svnNotifyActionMap[eventDict["action"]] is not None: 80 svnNotifyActionMap[eventDict["action"]] is not None:
81 mime = eventDict["mime_type"] == "application/octet-stream" and \ 81 mime = eventDict["mime_type"] == "application/octet-stream" and \
82 self.trUtf8(" (binary)") or "" 82 self.tr(" (binary)") or ""
83 msg = self.trUtf8("{0} {1}{2}\n")\ 83 msg = self.tr("{0} {1}{2}\n")\
84 .format(self.trUtf8(svnNotifyActionMap[eventDict["action"]]), 84 .format(self.tr(svnNotifyActionMap[eventDict["action"]]),
85 eventDict["path"], 85 eventDict["path"],
86 mime) 86 mime)
87 if '.e4p' in eventDict["path"]: 87 if '.e4p' in eventDict["path"]:
88 self.__hasAddOrDelete = True 88 self.__hasAddOrDelete = True
89 if eventDict["action"] in [pysvn.wc_notify_action.add, 89 if eventDict["action"] in [pysvn.wc_notify_action.add,

eric ide

mercurial