From 3e2a120fdadcc4f16035586f54b3afd0c6e76a9b Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Tue, 3 Jul 2007 04:12:59 +0000 Subject: [PATCH] Translate "Custom Size" string for reports. svn: r8690 --- ChangeLog | 5 +++++ src/ReportBase/_CommandLineReport.py | 2 +- src/ReportBase/_ReportDialog.py | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index cbd1d86c0..2b10eca34 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-07-02 Brian Matherly + * src/ReportBase/_ReportDialog.py (size_changed): + * src/ReportBase/_CommandLineReprot.py (parse_option_str): + Translate "Custom Size" string. + 2007-06-30 Alex Roitman * src/ReportBase/_TemplateParser.py: Close file after parsing. * src/ReportBase/_ReportOptions.py (OptionListCollection.parse): diff --git a/src/ReportBase/_CommandLineReport.py b/src/ReportBase/_CommandLineReport.py index bd8b3ea73..0ef762e8e 100644 --- a/src/ReportBase/_CommandLineReport.py +++ b/src/ReportBase/_CommandLineReport.py @@ -183,7 +183,7 @@ class CommandLineReport: self.option_class.handler.set_paper(self.paper) self.options_help['papers'].append( [ paper.get_name() for paper in paper_sizes - if paper.get_name() != 'Custom Size' ] ) + if paper.get_name() != _("Custom Size") ] ) self.options_help['papers'].append(False) self.orien = self.options_dict['papero'] diff --git a/src/ReportBase/_ReportDialog.py b/src/ReportBase/_ReportDialog.py index ad8bbfe5d..87064a171 100644 --- a/src/ReportBase/_ReportDialog.py +++ b/src/ReportBase/_ReportDialog.py @@ -316,7 +316,7 @@ class ReportDialog(BareReportDialog): def size_changed(self,obj): (paper,name) = self.papersize_menu.get_value() - if name == "Custom Size": + if name == _("Custom Size"): self.pwidth.set_sensitive(1) self.pheight.set_sensitive(1) else: