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 610421 - [gparted] unit translations
[gparted] unit translations
Status: RESOLVED FIXED
Product: l10n
Classification: Infrastructure
Component: Canadian English [en_CA]
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Adam Weinberger
Adam Weinberger
Depends on:
Blocks:
 
 
Reported: 2010-02-19 04:15 UTC by vacariu.v
Modified: 2011-08-30 19:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot showing main window and resize dialog. (157.35 KB, image/png)
2010-02-19 04:15 UTC, vacariu.v
  Details
GParted Main Window Units in Use (MiB, GiB) (91.63 KB, image/png)
2010-02-19 17:40 UTC, Curtis Gedak
  Details
This patch fixes this problem in the Canadian English translation. (4.28 KB, patch)
2011-08-30 18:50 UTC, Tiffany Antopolski
none Details | Review

Description vacariu.v 2010-02-19 04:15:12 UTC
Created attachment 154185 [details]
Screenshot showing main window and resize dialog.

Units are shown incorrectly. They are measured in gibibytes (GiB) but they are displayed as gigabytes (GB). This happens in the main window but not in the partition resize dialog. In the resize dialog box the units are correctly shown as MiB. This creates confusion when resizing partitions because someone could expect a different number on the main window than what is shown because wrong units are shown.

A solution to this would be to change the main window units to GiB to match what the numbers are showing. Another, better, solution would be to change all the units to be calculated in gigabytes and to correctly show that using GB. I would say the second one is a better solution because on the box of a hard drive it is calculated in gigabytes not in gibibytes and when consumers want to partition the drive they don't understand why it shows a smaller number. 

I am using Ubuntu 9.10. I have downloaded version 0.5.1 of gparted and installed using:
configure; make; checkinstall; dpkg

I see on this page http://gparted.sourceforge.net/screenshots.php that the main window uses the GiB units but the resize dialog uses MB. I don't know what version those screenshots are of.
Comment 1 Curtis Gedak 2010-02-19 17:40:30 UTC
Created attachment 154228 [details]
GParted Main Window Units in Use (MiB, GiB)

Thank you for your interest in GParted and reporting this inconsistency.

Next we need to determine the cause of the problem.

To my knowledge all of the GParted C++ source code uses MiB or GiB, and not MB or GB.  However, individual language translations are able to change these text strings.

The language translation is often set by the LANG environment variable.  To view this variable, you can open a terminal and enter the following command:

     env | grep LANG

Which language translation are you using?


As for the screen shots on the web site, these are quite old now.  If you are interested in capturing new screen shots for the web site, the help would be appreciated.  :)
Comment 2 vacariu.v 2010-02-19 21:43:53 UTC
I'd be interested in getting new sreenshots, after I have the correct units. 

My language:

vlad@vlad-laptop:~$ env | grep LANG
LANG=en_CA.UTF-8
GDM_LANG=en_CA.UTF-8
Comment 3 Curtis Gedak 2010-02-19 21:58:25 UTC
It looks like the problem is with the language translation.  You can see for yourself if you visit the following link and search for "MB":
http://git.gnome.org/browse/gparted/tree/po/en_CA.po

All of the language translations are handled by the GNOME Translation Project.
http://live.gnome.org/TranslationProject

You could try editing the title to prefix it with "GParted:" and then redirecting this bug to:
  Product:  l10n
Component:  Canadian English (en_CA)


On the topic of screen shots, Thank you for your offer of help.  To get the default units without language translation use the following steps:

1)  Open a terminal window
2)  Set the LANG environment variable to "C"
         $ LANG=C
3)  Start up GParted as root
         $ sudo GParted
4)  Capture screen shots similar to those already in use on the web page
    and use the same file names.
5)  Create an archive / tarball / zip file of all the screen shots.
6)  Email the screen shots to Curtis Gedak.  The email address can be found at:
    http://gparted.sourceforge.net/contact.php

After receiving updated screen shots I will be able to update the web pages accordingly.
Comment 4 Christian Persch 2010-02-20 16:39:58 UTC
-> l10n:en-ca
Comment 5 vacariu.v 2010-02-23 02:04:39 UTC
Thanks for the help.

I just emailed the screenshots to the email address provided on the GParted site. 

Hope they help.
Comment 6 Tiffany Antopolski 2011-08-30 18:50:34 UTC
Created attachment 195238 [details] [review]
This patch fixes this problem in the Canadian English translation.
Comment 7 Tiffany Antopolski 2011-08-30 19:28:27 UTC
pushed to master branch in git.gnome.