commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/forms/src/uidrivers/wx UIdriver.py


From: Arturas Kriukovas
Subject: gnue/forms/src/uidrivers/wx UIdriver.py
Date: Thu, 09 May 2002 14:13:36 -0400

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Changes by:     Arturas Kriukovas <address@hidden>      02/05/09 14:13:35

Modified files:
        forms/src/uidrivers/wx: UIdriver.py 

Log message:
        i18n changes.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/forms/src/uidrivers/wx/UIdriver.py.diff?tr1=1.168&tr2=1.169&r1=text&r2=text

Patches:
Index: gnue/forms/src/uidrivers/wx/UIdriver.py
diff -c gnue/forms/src/uidrivers/wx/UIdriver.py:1.168 
gnue/forms/src/uidrivers/wx/UIdriver.py:1.169
*** gnue/forms/src/uidrivers/wx/UIdriver.py:1.168       Wed May  8 23:03:44 2002
--- gnue/forms/src/uidrivers/wx/UIdriver.py     Thu May  9 14:13:35 2002
***************
*** 143,156 ****
        self.splash.SetForegroundColour(wxColour(0xFF, 0xFF, 0xFF))
        self.splash.SetFont(wxFont(20,wxSWISS,wxNORMAL,wxBOLD))
  
!       text = "GNU Enterprise Forms"
        twidth,theight = self.splash.GetTextExtent(text)
        wxStaticText(parent=self.splash, id=-1, label=str(text),
                     
size=wxSize(swidth,theight),pos=wxPoint(1,1),style=wxALIGN_CENTRE)
  
        self.splash.SetFont(wxFont(10,wxSWISS,wxNORMAL,wxBOLD))
  
!       text = "Version %s" % VERSION
        twidth,theight = self.splash.GetTextExtent(text)
        wxStaticText(parent=self.splash, id=-1, label=str(text),
                     size=wxSize(swidth,theight), 
pos=wxPoint(1,25),style=wxALIGN_CENTRE)
--- 143,156 ----
        self.splash.SetForegroundColour(wxColour(0xFF, 0xFF, 0xFF))
        self.splash.SetFont(wxFont(20,wxSWISS,wxNORMAL,wxBOLD))
  
!       text = _("GNU Enterprise Forms")
        twidth,theight = self.splash.GetTextExtent(text)
        wxStaticText(parent=self.splash, id=-1, label=str(text),
                     
size=wxSize(swidth,theight),pos=wxPoint(1,1),style=wxALIGN_CENTRE)
  
        self.splash.SetFont(wxFont(10,wxSWISS,wxNORMAL,wxBOLD))
  
!       text = _("Version %s") % VERSION
        twidth,theight = self.splash.GetTextExtent(text)
        wxStaticText(parent=self.splash, id=-1, label=str(text),
                     size=wxSize(swidth,theight), 
pos=wxPoint(1,25),style=wxALIGN_CENTRE)
***************
*** 160,166 ****
        wxStaticText(self.splash, -1, str(text),
                     wxPoint(1,50),wxSize(swidth,theight),wxALIGN_CENTRE)
  
!       text = "Protected by GNU General Public Licence 2.0"
        wxStaticText(self.splash, -1, str(text),
                     
wxPoint(1,sheight-(theight+10)),wxSize(swidth-5,theight),wxALIGN_RIGHT)
  
--- 160,166 ----
        wxStaticText(self.splash, -1, str(text),
                     wxPoint(1,50),wxSize(swidth,theight),wxALIGN_CENTRE)
  
!       text = _("Protected by GNU General Public Licence 2.0")
        wxStaticText(self.splash, -1, str(text),
                     
wxPoint(1,sheight-(theight+10)),wxSize(swidth-5,theight),wxALIGN_RIGHT)
  
***************
*** 218,228 ****
      EVT_MENU(self._wxapp, 101,  self.menuExitEvent)
  
      editMenu = wxMenu()
!     editMenu.Append(401, "Cut","Copy the selected text")
      EVT_MENU(self._wxapp, 401, lambda event, l=self: 
l.dispatchEvent(GFEvent('requestCUT')))
!     editMenu.Append(402, "Copy","Copy the selected text")
      EVT_MENU(self._wxapp, 402, lambda event, l=self: 
l.dispatchEvent(GFEvent('requestCOPY')))
!     editMenu.Append(403, "Paste","Copy the selected text")
      EVT_MENU(self._wxapp, 403, lambda event, l=self: 
l.dispatchEvent(GFEvent('requestPASTE')))
  
      dataMenu = wxMenu()
--- 218,228 ----
      EVT_MENU(self._wxapp, 101,  self.menuExitEvent)
  
      editMenu = wxMenu()
!     editMenu.Append(401, "Cut",_("Cut the selected text"))
      EVT_MENU(self._wxapp, 401, lambda event, l=self: 
l.dispatchEvent(GFEvent('requestCUT')))
!     editMenu.Append(402, "Copy",_("Copy the selected text"))
      EVT_MENU(self._wxapp, 402, lambda event, l=self: 
l.dispatchEvent(GFEvent('requestCOPY')))
!     editMenu.Append(403, "Paste",_("Paste text"))
      EVT_MENU(self._wxapp, 403, lambda event, l=self: 
l.dispatchEvent(GFEvent('requestPASTE')))
  
      dataMenu = wxMenu()
***************
*** 873,886 ****
  class UIAbout(wxMessageDialog, UIHelper):
    def __init__(self, interface, programVersion, formName, formVersion, 
author, description):
      wxMessageDialog.__init__(self, interface,
!                              "GNUE Forms\n"
!                              "  Version : %s\n"
!                              "  Driver  : UIwxpython\n"
!                              "-= Form Info =-\n"
!                              "  Name   : %s\n"
!                              "  Version: %s\n"
!                              "  Author : %s\n"
!                              "  Description: %s\n"
                               % (programVersion, formName 
,formVersion,author,description),
                               "About", wxOK | wxICON_INFORMATION)
  #
--- 873,886 ----
  class UIAbout(wxMessageDialog, UIHelper):
    def __init__(self, interface, programVersion, formName, formVersion, 
author, description):
      wxMessageDialog.__init__(self, interface,
!                              _("GNUE Forms\n")
!                              _("  Version : %s\n")
!                              _("  Driver  : UIwxpython\n")
!                              _("-= Form Info =-\n")
!                              _("  Name   : %s\n")
!                              _("  Version: %s\n")
!                              _("  Author : %s\n")
!                              _("  Description: %s\n")
                               % (programVersion, formName 
,formVersion,author,description),
                               "About", wxOK | wxICON_INFORMATION)
  #
***************
*** 1055,1065 ****
            # TODO: Since the UI stuff is currently being gutted I'm not 
wasting the time
            # TODO: to do the right thing
        if len(loginData[1]):
!         loginMesg = 'Login required for\n"%s"' % (loginData[1])
        else:
!         loginMesg = 'Login required for %s' % (loginData[0])
  
!       self.dlg = wxDialog(NULL, -1, "GNU Enterprise: Login to %s" % 
loginData[0])
        self.dlg.SetAutoLayout(true)
  
        bmp = wxImage(images_dir+gConfig('smallPNG'), 
wxBITMAP_TYPE_PNG).ConvertToBitmap()
--- 1055,1065 ----
            # TODO: Since the UI stuff is currently being gutted I'm not 
wasting the time
            # TODO: to do the right thing
        if len(loginData[1]):
!         loginMesg = _('Login required for\n"%s"') % (loginData[1])
        else:
!         loginMesg = _('Login required for %s') % (loginData[0])
  
!       self.dlg = wxDialog(NULL, -1, _("GNU Enterprise: Login to %s") % 
loginData[0])
        self.dlg.SetAutoLayout(true)
  
        bmp = wxImage(images_dir+gConfig('smallPNG'), 
wxBITMAP_TYPE_PNG).ConvertToBitmap()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]