Project

Profile

Help

Revision 45e6bcc7

ID45e6bcc71ca3dbcd0aa03df942f38f1f3b3366a8
Parent 2f4bbb85
Child 07b2525b

Added by Vincent Le Goff about 3 years ago

Begin to translate with Ytranslate

View differences:

src/ui/window.py
2 2

  
3 3
import wx
4 4

  
5
from ytranslate.tools import t
6

  
5 7
from dialogs.preferences import PreferencesDialog
6 8
from dialogs.macro import MacroDialog
7 9
from ui.event import EVT_FOCUS, FocusEvent, myEVT_FOCUS
......
30 32

  
31 33
        # File menu
32 34
        ## Preferences
33
        preferences = wx.MenuItem(fileMenu, -1, '&Preferences\tAlt+Enter')
35
        preferences = wx.MenuItem(fileMenu, -1, t("ui.main.menu.preferences"))
34 36
        self.Bind(wx.EVT_MENU, self.OnPreferences, preferences)
35 37
        fileMenu.AppendItem(preferences)
36 38

  
37 39
        ## Quit
38
        quit = wx.MenuItem(fileMenu, -1, '&Quit\tCtrl+Q')
40
        quit = wx.MenuItem(fileMenu, -1, t("ui.main.menu.quit"))
39 41
        self.Bind(wx.EVT_MENU, self.OnQuit, quit)
40 42
        fileMenu.AppendItem(quit)
41 43

  
42 44
        # Game menu
43
        macro = wx.MenuItem(fileMenu, -1, '&Macro')
45
        macro = wx.MenuItem(fileMenu, -1, t("ui.main.menu.macro"))
44 46
        self.Bind(wx.EVT_MENU, self.OnMacro, macro)
45 47
        gameMenu.AppendItem(macro)
46 48

  
47
        menubar.Append(fileMenu, '&File')
48
        menubar.Append(gameMenu, '&Game')
49
        menubar.Append(fileMenu, t("ui.main.menu.file"))
50
        menubar.Append(gameMenu, t("ui.main.menu.game"))
49 51

  
50 52
        self.SetMenuBar(menubar)
51 53

  

Also available in: Unified diff