dabo Commit
Revision 6575
Date: 2011-04-26 11:39:11 -0700 (Tue, 26 Apr 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6575

Changed:
U   trunk/dabo/lib/reportWriter.py
U   trunk/ide/ReportDesigner.py

Log:
Wrapped strings in _().


Diff:
Modified: trunk/dabo/lib/reportWriter.py
===================================================================
--- trunk/dabo/lib/reportWriter.py      2011-04-24 19:07:02 UTC (rev 6574)
+++ trunk/dabo/lib/reportWriter.py      2011-04-26 18:39:11 UTC (rev 6575)
@@ -18,7 +18,7 @@
                _failedLibs.append(lib)
 
 if len(_failedLibs) > 0:
-       msg = """
+       msg = _("""
 The Dabo Report Writer has dependencies on libraries you
 don't appear to have installed. You still need:
 
@@ -34,7 +34,7 @@
 sudo apt-get install python-reportlab
 sudo apt-get install python-imaging
 
-       """ % "\n\t".join(_failedLibs)
+       """) % "\n\t".join(_failedLibs)
 
        raise ImportError(msg)
 del(_failedLibs)
@@ -1227,7 +1227,6 @@
 
        def getFramesetCount(self):
                """Returns the number of framesets in the report."""
-               print self.getFramesets()
                return len(self.getFramesets())
 
 

Modified: trunk/ide/ReportDesigner.py
===================================================================
--- trunk/ide/ReportDesigner.py 2011-04-24 19:07:02 UTC (rev 6574)
+++ trunk/ide/ReportDesigner.py 2011-04-26 18:39:11 UTC (rev 6575)
@@ -2053,14 +2053,14 @@
                        rdc.SelectedObjects = [self._rw.ReportForm]
                        frameset_count = rdc.ReportForm.getFramesetCount()
                        if frameset_count == 1:
-                               fs_text = "Frameset/Paragraph"
+                               fs_text = _("Frameset/Paragraph")
                        else:
-                               fs_text = "%s Frameset/Paragraphs" % 
frameset_count
-                       if frameset_count > 0 and 
dabo.ui.areYouSure("Frameset/Paragraph has been consolidated into a "
+                               fs_text = _("%s Frameset/Paragraphs") % 
frameset_count
+                       if frameset_count > 0 and 
dabo.ui.areYouSure(_("Frameset/Paragraph has been consolidated into a "
                                        "new Memo object, which is easier to 
use and the recommended object for multi-line text. "
                                        "You should convert to Memo, and it is 
easy to do: just click 'yes' below. \n\n"
                                        "Would you like to convert the %s"
-                                       " on this report to the new Memo 
object?" % fs_text,
+                                       " on this report to the new Memo 
object?") % fs_text,
                                        cancelButton=False):
                                rdc.ReportForm.convertParagraphsToMemos()
                else:



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to