Translate "Custom Size" string for reports.

svn: r8690
This commit is contained in:
Brian Matherly 2007-07-03 04:12:59 +00:00
parent 52d74237ae
commit 3e2a120fda
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2007-07-02 Brian Matherly <brian@gramps-project.org>
* src/ReportBase/_ReportDialog.py (size_changed):
* src/ReportBase/_CommandLineReprot.py (parse_option_str):
Translate "Custom Size" string.
2007-06-30 Alex Roitman <shura@gramps-project.org> 2007-06-30 Alex Roitman <shura@gramps-project.org>
* src/ReportBase/_TemplateParser.py: Close file after parsing. * src/ReportBase/_TemplateParser.py: Close file after parsing.
* src/ReportBase/_ReportOptions.py (OptionListCollection.parse): * src/ReportBase/_ReportOptions.py (OptionListCollection.parse):

View File

@ -183,7 +183,7 @@ class CommandLineReport:
self.option_class.handler.set_paper(self.paper) self.option_class.handler.set_paper(self.paper)
self.options_help['papers'].append( self.options_help['papers'].append(
[ paper.get_name() for paper in paper_sizes [ 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.options_help['papers'].append(False)
self.orien = self.options_dict['papero'] self.orien = self.options_dict['papero']

View File

@ -316,7 +316,7 @@ class ReportDialog(BareReportDialog):
def size_changed(self,obj): def size_changed(self,obj):
(paper,name) = self.papersize_menu.get_value() (paper,name) = self.papersize_menu.get_value()
if name == "Custom Size": if name == _("Custom Size"):
self.pwidth.set_sensitive(1) self.pwidth.set_sensitive(1)
self.pheight.set_sensitive(1) self.pheight.set_sensitive(1)
else: else: