dabo Commit
Revision 2181
Date: 2006-05-29 06:46:43 -0700 (Mon, 29 May 2006)
Author: ed

Changed:
U   trunk/dabo/ui/uiwx/dPageFrameMixin.py

Log:
Added localization calls to several strings.


Diff:
Modified: trunk/dabo/ui/uiwx/dPageFrameMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dPageFrameMixin.py       2006-05-29 00:23:33 UTC (rev 
2180)
+++ trunk/dabo/ui/uiwx/dPageFrameMixin.py       2006-05-29 13:46:43 UTC (rev 
2181)
@@ -249,7 +249,7 @@
                elif issubclass(val, cm.dControlMixin):
                        self._pageClass = val
                else:
-                       raise TypeError, "PageClass must descend from a Dabo 
base class."
+                       raise TypeError, _("PageClass must descend from a Dabo 
base class.")
                        
                        
        def _getPageCount(self):
@@ -261,13 +261,13 @@
                        pageCount = self.GetPageCount()
                        pageClass = self.PageClass
                        if val < 0:
-                               raise ValueError, "Cannot set PageCount to less 
than zero."
+                               raise ValueError, _("Cannot set PageCount to 
less than zero.")
                
                        if val > pageCount:
                                for i in range(pageCount, val):
                                        pg = self.appendPage(pageClass)
                                        if not pg.Caption:
-                                               pg.Caption = "Page %s" % (i+1,)
+                                               pg.Caption = _("Page %s") % 
(i+1,)
                        elif val < pageCount:
                                for i in range(pageCount, val, -1):
                                        self.DeletePage(i-1)
@@ -333,8 +333,7 @@
                elif val == "Bottom":
                        self._addWindowStyleFlag(self._tabposBottom)
                else:
-                       raise ValueError, ("The only possible values are "
-                                               "'Top', 'Left', 'Right', and 
'Bottom'")
+                       raise ValueError, (_("The only possible values are 
'Top', 'Left', 'Right', and 'Bottom'"))
 
 
        # Property definitions:




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to