After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 112619 - Support imperial units
Support imperial units
Status: RESOLVED DUPLICATE of bug 120924
Product: epiphany
Classification: Core
Component: General
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Marco Pesenti Gritti
Marco Pesenti Gritti
Depends on:
Blocks:
 
 
Reported: 2003-05-09 07:07 UTC by Christian Rose
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Christian Rose 2003-05-09 07:07:53 UTC
#: data/glade/print.glade.h:11
msgid "A_4 (8.27\" x 11.69\")"

#: data/glade/print.glade.h:15
msgid "E_xecutive (7.25\" x 10.5\")"

#: data/glade/print.glade.h:18
msgid "L_egal (8.5\" x 14\")"

#: data/glade/print.glade.h:33
msgid "_Letter (8.5\" x 11\")"

Please use metric units here (mm) by default. Imperial units can be used
when the locale says so (LC_MEASUREMENT=2), but the default should really
be metric.
Comment 1 Dave Bordoley [Not Reading Bug Mail] 2003-05-09 07:31:48 UTC
Christian, 
can you help out here, ie. tell me what to change the strings to and
i'll make the patch?
Comment 2 Christian Rose 2003-05-09 08:01:09 UTC
I'm no coder and I havent looked at the present code, nor do I know if
this is at all doable in glade, but here's some pseudo attempt:

/* The following assumes the base values are in mm */
if (a4_size) {
  if (imperial_units) {
    width = mm_to_inches (a4_width);
    height = mm_to_inches (a4_height);
    /* Translators: The following is paper size, the values are width
and height in inches */
    size_msg = g_strdup_printf (_("%d\" x %d\""),
                                width,
                                height);
  } else {
    width = a4_width;
    height = a4_height;
    /* Translators: The following is paper size, the values are width
and height in mm */
    size_msg = g_strdup_printf (_("%d mm x %d mm"),
                                width,
                                height);
  }
  /* Translators: The paper size gets inserted here */
  a4_msg = g_strdup_printf (_("A_4 (%s)"),
                              size_msg);
}
/* Do the same for other paper sizes */
Comment 3 Christian Rose 2003-05-20 09:21:36 UTC
Also applies to

#: data/epiphany.schemas.in.h:39
msgid "Printing bottom margin (in inches)."

#: data/epiphany.schemas.in.h:41
msgid "Printing left margin (in inches)."

#: data/epiphany.schemas.in.h:43
msgid "Printing right margin (in inches)."

#: data/epiphany.schemas.in.h:45
msgid "Printing top margin (in inches)."

#: data/glade/print.glade.h:6
msgid "<b>Margins (Inches)</b>"
Comment 4 Marco Pesenti Gritti 2003-06-15 12:05:27 UTC
Now we use metric.
Comment 5 Christian Persch 2003-08-28 17:42:53 UTC
Gnomeprint-ifying epiphany will provide support for imperial units.

*** This bug has been marked as a duplicate of 120924 ***