From: Benny M. <ben...@gm...> - 2008-03-17 11:29:29
|
I commented on this in the bug, http://bugs.gramps-project.org/view.php?id=1939 I think we must make GRAMPS aware of the locale of the user, and not show . numbers to locales with , It is not correct to show margin 2.45 to users, who see everywhere else on their PC, eg in openoffice calc, 2,45 Benny 2008/3/15, Peter Landgren <pet...@te...>: > > How is this treated in GRAMPS/Python? > > 1. Paper Option tab > > Decimal point is used everywhere. If I by mistake change a margin using > decimal comma, to any value, the value will be converted to 1 inch. > > If I try to change the paper size using "Custom Size" I get: > > 217279: ERROR: gramps.py: line 160: Unhandled exception > > Traceback (most recent call last): > > File > "/home/peter/GRAMPS30/share/gramps/ReportBase/_GraphvizReportDialog.py", > line 953, in on_ok_clicked > > self.options.handler.set_custom_paper_size( > self.paper_frame.get_custom_paper_size()) > > File "/home/peter/GRAMPS30/share/gramps/ReportBase/_PaperMenu.py", line > 302, in get_custom_paper_size > > width = float(self.pwidth.get_text() ) * self.paper_unit_multiplier > > ValueError: invalid literal for float(): 21,99 > > 2. GraphVis Option tab > > In "Node spacing/rank spacing" fields, decimal comma is used. > > It is impossible to enter a decimal point in these fields. > > This happens when I run with Swedish locale. > > I will file a bug issue with the exception error above. > > I also have a patch for it by replacing "," with"." > > But I think this had to be treated the same way all over GRAMPS. > > /Peter > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gramps-devel mailing list > Gra...@li... > https://lists.sourceforge.net/lists/listinfo/gramps-devel > > |