From 467a9b1c432a9fb90d6c0274c44cf3c70b073ebf Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sat, 20 Apr 2013 23:09:16 +0000 Subject: [PATCH] GrampsLocale: Replace gen.plug.utils gfloat() With GrampsLocale.float(). Also remove gen.plug.utils gformat(), which was written to work around string formatting with %f localizing the decimal point, which it doesn't do. locale.format() does, but it wasn't being used anyway. svn: r22028 --- gramps/gen/plug/docgen/stylesheet.py | 28 +++++----- gramps/gen/plug/report/_paper.py | 9 ++- gramps/gen/plug/utils.py | 28 ---------- gramps/gen/utils/grampslocale.py | 20 +++++++ gramps/plugins/docgen/psdrawdoc.py | 82 +++++++++++++--------------- 5 files changed, 77 insertions(+), 90 deletions(-) diff --git a/gramps/gen/plug/docgen/stylesheet.py b/gramps/gen/plug/docgen/stylesheet.py index df9f204bf..bc4a2ecc9 100644 --- a/gramps/gen/plug/docgen/stylesheet.py +++ b/gramps/gen/plug/docgen/stylesheet.py @@ -43,11 +43,11 @@ def escxml(string): # GRAMPS modules # #------------------------------------------------------------------------- -from ..utils import gformat, gfloat from .paragraphstyle import ParagraphStyle from .fontstyle import FontStyle from .tablestyle import TableStyle, TableCellStyle from .graphicstyle import GraphicsStyle +from gramps.gen.const import GRAMPS_LOCALE as glocale #------------------------------------------------------------------------- # @@ -182,12 +182,12 @@ class StyleSheetList(object): '