From c691d7ea93b2b8890d8a9acabc310775c88acf44 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Sat, 15 Mar 2008 04:21:55 +0000 Subject: [PATCH] 0001779: Texts "in." and "cm." on Document Options tab is not translatable svn: r10313 --- src/ReportBase/_PaperMenu.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/ReportBase/_PaperMenu.py b/src/ReportBase/_PaperMenu.py index af45940db..ea67e1577 100644 --- a/src/ReportBase/_PaperMenu.py +++ b/src/ReportBase/_PaperMenu.py @@ -220,16 +220,18 @@ class PaperFrame(gtk.HBox): if checkbox.get_active(): self.paper_unit = 'cm' self.paper_unit_multiplier = 1.0 + paper_unit_text = _("cm") else: self.paper_unit = 'in.' self.paper_unit_multiplier = 2.54 + paper_unit_text = _("in.") - self.lunits1.set_text(self.paper_unit) - self.lunits2.set_text(self.paper_unit) - self.lunits3.set_text(self.paper_unit) - self.lunits4.set_text(self.paper_unit) - self.lunits5.set_text(self.paper_unit) - self.lunits6.set_text(self.paper_unit) + self.lunits1.set_text(paper_unit_text) + self.lunits2.set_text(paper_unit_text) + self.lunits3.set_text(paper_unit_text) + self.lunits4.set_text(paper_unit_text) + self.lunits5.set_text(paper_unit_text) + self.lunits6.set_text(paper_unit_text) if self.paper_unit == 'cm': self.pwidth.set_text("%.2f" % paper_size.get_width())