Send Linux-ha-cvs mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Linux-ha-cvs digest..."


Today's Topics:

   1. Linux-HA CVS: mgmt by zhenh from 
      ([email protected])
   2. Linux-HA CVS: mgmt by zhenh from 
      ([email protected])
   3. Linux-HA CVS: mgmt by zhenh from 
      ([email protected])
   4. Linux-HA CVS: mgmt by zhenh from 
      ([email protected])


----------------------------------------------------------------------

Message: 1
Date: Fri,  7 Apr 2006 00:37:23 -0600 (MDT)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: mgmt by zhenh from 
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>

linux-ha CVS committal

Author  : zhenh
Host    : 
Project : linux-ha
Module  : mgmt

Dir     : linux-ha/mgmt/client


Modified Files:
        haclient.py.in 


Log Message:
change the indicate string when the current connected server changes
===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/mgmt/client/haclient.py.in,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -3 -r1.20 -r1.21
--- haclient.py.in      6 Apr 2006 04:33:53 -0000       1.20
+++ haclient.py.in      7 Apr 2006 06:37:22 -0000       1.21
@@ -1210,15 +1210,12 @@
                if ret == gtk.RESPONSE_OK:
                        if not manager.login(server, user, password):
                                msgbox(manager.failed_reason)
-                       else :
-                               self.statusbar.push(1,"Connected to "+server)
        
                self.update_ui()
 
        def on_logout(self, action) :
                manager.logout()
                self.update_ui()
-               self.statusbar.pop(1)
        
        def on_test(self, action) :
                print uuid()
@@ -1436,6 +1433,7 @@
                                self.failed_reason = "Failed in the 
authentication.\n User Name or Password may be wrong."
                        mgmt_disconnect()
                        return False
+               window.statusbar.push(1,"Connected to "+server)
                self.connected = True
                self.username = username
                self.password = password
@@ -1483,6 +1481,7 @@
                gobject.source_remove(self.io_tag)
                self.connected = False
                window.update()
+               window.statusbar.pop(1)
                
        # event handler 
        def on_event(self, source, condition) :




------------------------------

Message: 2
Date: Fri,  7 Apr 2006 02:35:31 -0600 (MDT)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: mgmt by zhenh from 
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>

linux-ha CVS committal

Author  : zhenh
Host    : 
Project : linux-ha
Module  : mgmt

Dir     : linux-ha/mgmt/client


Modified Files:
        Makefile.am 


Log Message:
fix the mo file name
===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/mgmt/client/Makefile.am,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- Makefile.am 24 Jan 2006 15:34:50 -0000      1.9
+++ Makefile.am 7 Apr 2006 08:35:30 -0000       1.10
@@ -40,7 +40,11 @@
 mozhCNdir              = $(datadir)/locale/zh_CN/LC_MESSAGES
 mozhCN_DATA            = haclient.zh_CN.mo
 
+install-data-hook:
+               mv $(datadir)/locale/zh_CN/LC_MESSAGES/haclient.zh_CN.mo 
$(datadir)/locale/zh_CN/LC_MESSAGES/haclient.mo
+
 EXTRA_DIST             = $(halib_DATA) $(mozhCN_DATA)
 
 .po.mo:
        $(MSGFMT) -o $@ $<
+




------------------------------

Message: 3
Date: Fri,  7 Apr 2006 02:36:21 -0600 (MDT)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: mgmt by zhenh from 
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>

linux-ha CVS committal

Author  : zhenh
Host    : 
Project : linux-ha
Module  : mgmt

Dir     : linux-ha/mgmt/client


Modified Files:
        haclient.zh_CN.po 


Log Message:
add Chinese support for standby
===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/mgmt/client/haclient.zh_CN.po,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- haclient.zh_CN.po   12 Dec 2005 02:39:44 -0000      1.1
+++ haclient.zh_CN.po   7 Apr 2006 08:36:20 -0000       1.2
@@ -544,4 +544,26 @@
 msgstr "登录失败"
 
 msgid "can not get information from cluster!"
-msgstr "无法从集群获得信息!"
\ No newline at end of file
+msgstr "无法从集群获得信息!"
+
+msgid "standby"
+msgstr "备用"
+
+msgid "Standby"
+msgstr "备用"
+
+msgid "Active"
+msgstr "活动"
+
+msgid "active"
+msgstr "活动"
+
+msgid "make the node standby"
+msgstr "让节点备用"
+
+msgid "make the node active"
+msgstr "让节点活动"
+
+msgid "Make"
+msgstr "让"
+




------------------------------

Message: 4
Date: Fri,  7 Apr 2006 02:37:07 -0600 (MDT)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: mgmt by zhenh from 
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>

linux-ha CVS committal

Author  : zhenh
Host    : 
Project : linux-ha
Module  : mgmt

Dir     : linux-ha/mgmt/client


Modified Files:
        haclient.py.in 


Log Message:
add Chinese support for standby
===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/mgmt/client/haclient.py.in,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -3 -r1.21 -r1.22
--- haclient.py.in      7 Apr 2006 06:37:22 -0000       1.21
+++ haclient.py.in      7 Apr 2006 08:37:06 -0000       1.22
@@ -519,7 +519,7 @@
                                status = _("running")
 
                        if manager.get_node_config(node)["standby"] == "True" :
-                               status = status + "-standby"
+                               status = status + "-"+ _("standby")
 
                node_iter = self.store.append(nodes_root,[node, status, "node"])
 
@@ -1141,14 +1141,14 @@
                self.set_action_sensitive('standby',
                        manager.connected
                        and self.cur_type in [_("node")]
-                       and string.find(self.cur_status, "standby") == -1
-                       and string.find(self.cur_status, "running") != -1)
+                       and string.find(self.cur_status, _("standby")) == -1
+                       and string.find(self.cur_status, _("running")) != -1)
 
                self.set_action_sensitive('active',
                        manager.connected
                        and self.cur_type in [_("node")]
-                       and string.find(self.cur_status, "standby") != -1
-                       and string.find(self.cur_status, "running") != -1)
+                       and string.find(self.cur_status, _("standby")) != -1
+                       and string.find(self.cur_status, _("running")) != -1)
 
        # functions
        def update(self) :
@@ -1221,11 +1221,11 @@
                print uuid()
                         
        def on_standby(self, action) :
-               if confirmbox("Make" +" " +self.cur_name + " " +"standby"+"?") :
+               if confirmbox(_("Make") +" " +self.cur_name + " " 
+_("standby")+"?") :
                        manager.do_cmd("standby\n"+self.cur_name + "\n" + "on")
 
        def on_active(self, action) :
-               if confirmbox("Make" +" " +self.cur_name + " " + "active"+"?") :
+               if confirmbox(_("Make") +" " +self.cur_name + " " + 
_("active")+"?") :
                        manager.do_cmd("standby\n"+self.cur_name + "\n" + "off")
 
        def on_add_item(self, action) :
@@ -1827,8 +1827,7 @@
        gettext.textdomain(app_name)
        gtk.glade.bindtextdomain(app_name)
        gtk.glade.textdomain(app_name)
-       gettext.install(app_name,unicode=1)
-       
+       gettext.install(app_name,"/usr/share/locale",unicode=1)
        if "-v" in sys.argv :
                debug_level = 1
        manager = Manager()




------------------------------

_______________________________________________
Linux-ha-cvs mailing list
[email protected]
http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs


End of Linux-ha-cvs Digest, Vol 29, Issue 32
********************************************

Reply via email to