Translate "Custom Size" string for reports.

svn: r8691
This commit is contained in:
Brian Matherly 2007-07-03 04:23:21 +00:00
parent 87475a99be
commit 698934ce67
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2007-07-02 Brian Matherly <brian@gramps-project.org>
Johan Gonqvist <johan.gronqvist@gmail.com>
* src/ReportBase/_ReportDialog.py (size_changed):
* src/ReportBase/_CommandLineReprot.py (parse_option_str):
Translate "Custom Size" string.
2007-07-02 Robert Cawley <rjc@cawley.id.au>
* src/DataViews/_Relationship.py (info_string): Typo.

View File

@ -151,7 +151,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']

View File

@ -309,7 +309,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: