Incorrect units for file size in Nautilus

Bug #889966 reported by Goyo
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Ubuntu Translations
Fix Released
Undecided
Ubuntu Spanish Translators
language-pack-gnome-es (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Nautilus shows file sizes in MB but in the spanish translation MiB is used. See attached screenshot:
Tamaño: 728,0 MiB (728018944 bytes)
It should read:
Tamaño: 728,0 MB (728018944 bytes)
as it does in english.

Revision history for this message
Goyo (goyodiaz) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in language-pack-gnome-es (Ubuntu):
status: New → Confirmed
Revision history for this message
almursi (haqqshahid) wrote :

MiB on same file, thunar and nautilus at ubuntu 11.10

Revision history for this message
almursi (haqqshahid) wrote :
Revision history for this message
JoseLuisTriana (theunfor) wrote :

Dolphin shows the right number in MiB, nautilus shows the number as the size were in MB, but shows "MiB" instead of MB.

screenshot attached.

Changed in language-pack-gnome-es (Ubuntu):
assignee: nobody → Ubuntu Spanish Translators (ubuntu-l10n-es)
Revision history for this message
Pablo Lillia (gorlok) wrote :

I confirm this. Still broken on Ubuntu 11.10 with es-AR locale. Will be solved for 12.04 LTS?

Revision history for this message
Adolfo Jayme Barrientos (fitojb) wrote :

Hi Pablo. Which app do you use? I've been updating various translations to change from MiB → MB.

Changed in ubuntu-translations:
status: New → Confirmed
assignee: nobody → Ubuntu Spanish Translators (ubuntu-l10n-es)
Changed in language-pack-gnome-es (Ubuntu):
status: Confirmed → Invalid
assignee: Ubuntu Spanish Translators (ubuntu-l10n-es) → nobody
Revision history for this message
Fco. Javier Serrador (javier-fserrador) wrote : Re: [Bug 889966] Re: Incorrect units for file size in Nautilus

MiB is Megabite->1024, MB is MEGA-> 1000

El día 16 de marzo de 2012 04:33, Fitoschido <email address hidden> escribió:
> Hi Pablo. Which app do you use? I've been updating various translations
> to change from MiB → MB.
>
> ** Also affects: ubuntu-translations
>   Importance: Undecided
>       Status: New
>
> ** Changed in: ubuntu-translations
>       Status: New => Confirmed
>
> ** Changed in: ubuntu-translations
>     Assignee: (unassigned) => Ubuntu Spanish Translators (ubuntu-l10n-es)
>
> ** Changed in: language-pack-gnome-es (Ubuntu)
>       Status: Confirmed => Invalid
>
> ** Changed in: language-pack-gnome-es (Ubuntu)
>     Assignee: Ubuntu Spanish Translators (ubuntu-l10n-es) => (unassigned)
>
> --
> You received this bug notification because you are a member of Ubuntu
> Spanish Translators, which is a bug assignee.
> https://bugs.launchpad.net/bugs/889966
>
> Title:
>  Incorrect units for file size in Nautilus
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu-translations/+bug/889966/+subscriptions
>
> --
> Lista de correo: Ubuntu-es-l10n
>
> Participa suscribiéndote y escribiendo a:
> <email address hidden>
>
> Para darte de alta, de baja  o hacer ajustes a tu suscripción visita:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-es-l10n

--
Francisco Javier Serrador

Revision history for this message
Fco. Javier Serrador (javier-fserrador) wrote :

http://es.wikipedia.org/wiki/Mebibyte

El día 16 de marzo de 2012 09:29, Fco. Javier Fdez. Serrador
<email address hidden> escribió:
> MiB is Megabite->1024, MB is MEGA-> 1000
>
> El día 16 de marzo de 2012 04:33, Fitoschido <email address hidden> escribió:
>> Hi Pablo. Which app do you use? I've been updating various translations
>> to change from MiB → MB.
>>
>> ** Also affects: ubuntu-translations
>>   Importance: Undecided
>>       Status: New
>>
>> ** Changed in: ubuntu-translations
>>       Status: New => Confirmed
>>
>> ** Changed in: ubuntu-translations
>>     Assignee: (unassigned) => Ubuntu Spanish Translators (ubuntu-l10n-es)
>>
>> ** Changed in: language-pack-gnome-es (Ubuntu)
>>       Status: Confirmed => Invalid
>>
>> ** Changed in: language-pack-gnome-es (Ubuntu)
>>     Assignee: Ubuntu Spanish Translators (ubuntu-l10n-es) => (unassigned)
>>
>> --
>> You received this bug notification because you are a member of Ubuntu
>> Spanish Translators, which is a bug assignee.
>> https://bugs.launchpad.net/bugs/889966
>>
>> Title:
>>  Incorrect units for file size in Nautilus
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/ubuntu-translations/+bug/889966/+subscriptions
>>
>> --
>> Lista de correo: Ubuntu-es-l10n
>>
>> Participa suscribiéndote y escribiendo a:
>> <email address hidden>
>>
>> Para darte de alta, de baja  o hacer ajustes a tu suscripción visita:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-es-l10n
>
>
>
> --
> Francisco Javier Serrador

--
Francisco Javier Serrador

Revision history for this message
Adolfo Jayme Barrientos (fitojb) wrote :

@fserrador: I know that, but any other Nautilus translations use the term "MiB", because Nautilus uses MB. We should not change the unit to avoid inaccuracies. If the app uses MB, we should not change to MiB because translations do not redo calculations.

Revision history for this message
Adolfo Jayme Barrientos (fitojb) wrote :

All translations need to stick with the units that the program uses, to avoid inaccuracies like the one shown in the image attached to the comment #5 of this bug report.

Revision history for this message
Pablo Lillia (gorlok) wrote :

@fitoschido: I use Nautilus 3.2.1 (with Unity). My LANG is es_AR.UTF-8.
For example (see my screen capture): I create a file with 1,000,000 byte = 1 MB. Or ~ 977 KiB = 0.95 MiB. But Nautilus shows me 1.0 MiB. It must show 1.0 MB or 0.95 MiB. Not decimal size with binary units.
It seems to me that Spanish translations use binary units whichever unit Nautilus use.

Revision history for this message
Goyo (goyodiaz) wrote :

This is fixed for Nautilus 3.2.1 using es_ES.UTF-8 and language-pack-gnome-es version 1:11.10+20120306. I did not try other spanish variants.

Changed in ubuntu-translations:
status: Confirmed → Fix Released
Revision history for this message
Pablo Lillia (gorlok) wrote :

Still broken. Ubuntu 11.10 with Nautilus 3.2.1. I have installed language-pack-gnome-es 1:11.10+20120306 from proposed repository. But Nautilus still shows MiB units for es_ES and es_AR locales, while it shows MB units for en_US.
How can I help?

Revision history for this message
Pablo Lillia (gorlok) wrote :

For the record: I updated this packages:
    language-pack-es (1:11.10+20120103) to 1:11.10+20120306
    language-pack-gnome-es (1:11.10+20120103) to 1:11.10+20120306
And still this bug is present.

Revision history for this message
Pablo Lillia (gorlok) wrote :

I have found the problem and I fix it. Packages with problems are language-pack-gnome-es_11.10+20120306 and language-pack-gnome-es-base_11.10+20120103.
I have found this problem on other applications, not only on Nautilus.
I attach my patches for both packages. I tested this changes and it seems to work ok now.
Please check my patches. Feel free to contact me if you need.

Revision history for this message
David Planella (dpm) wrote :

Thanks Pablo for investigating all translation templates affected and for providing the patch.

However, we do not generally patch language patches, as translations can be fixed in Launchpad. So I'd recommend that you do the fixes there, and then they will be included in a new language pack release.

Before doing any changes, though, I would suggest that you guys talk to the upstream translation team [1] at GNOME to keep everyone in the loop, as that's where the original translations came from.

[1] http://l10n.gnome.org/languages/es/gnome-3-4/ui/

Changed in ubuntu-translations:
status: Fix Released → Fix Committed
Revision history for this message
Pablo Lillia (gorlok) wrote :

David: thanks for your directions. I'll follow that.

Why patches can't be applied directly? I'm a dev and I think that web tools must be a helper, not a barrier. Anyways, I'm a novice at LP, Ubuntu and Gnome, and I understand that not always things are so easy or fast as we want. But, I'll do my best :)

I'm talking to gnome upstream translation team. I'll report any advance about this problem here later.

Revision history for this message
David Planella (dpm) wrote : Re: [Ubuntu-translations-coordinators] [Bug 889966] Re: Incorrect units for file size in Nautilus

Al 24/03/12 15:57, En/na Pablo Lillia ha escrit:
> David: thanks for your directions. I'll follow that.
>
> Why patches can't be applied directly? I'm a dev and I think that web
> tools must be a helper, not a barrier.

Hi Pablo,

In general, patches are very welcome. However, in the case of language
packs, there is usually no need to patch them, the reason being that if
translations are fixed in Launchpad, they will automatically make it to
the next language packs without the need to patch them.

In particular, in the development release, as language packs are being
generated twice a week (except for freeze periods), it's just a matter
of correcting the strings in Launchpad and then waiting a few days for
these corrections to be shipped in language packs.

So it's not using patches for language packs is not about being a
barrier, but rather to avoid generating unnecesary work.

> Anyways, I'm a novice at LP,
> Ubuntu and Gnome, and I understand that not always things are so easy or
> fast as we want. But, I'll do my best :)
>

Sure, feel free to ask if you've got any questions!

> I'm talking to gnome upstream translation team. I'll report any advance
> about this problem here later.
>

Excellent, thanks!

Cheers,
David.

--
David Planella
Ubuntu Translations Coordinator
www.ubuntu.com / www.davidplanella.wordpress.com
www.identi.ca/dplanella / www.twitter.com/dplanella

Revision history for this message
Pablo Lillia (gorlok) wrote :
Revision history for this message
Adolfo Jayme Barrientos (fitojb) wrote :

Thanks Pablo for the links, actually I'm subscribed to gnome-es-list :P

I'm scanning the whole LP and updating wrong units.

Revision history for this message
Pablo Lillia (gorlok) wrote :

Excelent! When this land on Ubuntu, count with me for testing.

Revision history for this message
Pablo Lillia (gorlok) wrote :

I confirm that this is fixed on Precise. Yeah! \o/

Gabor Kelemen (kelemeng)
Changed in ubuntu-translations:
status: Fix Committed → Fix Released
Revision history for this message
rasitha (reptilezone2002) wrote :

im using ubuntu 12.04 & the problem is still there hmmmmm

Revision history for this message
Goyo (goyodiaz) wrote :

Works for me, for example:

485,3 MB (485.333.934 bytes)

But there is a similar issue with bigger files:

4,4 GiB (4.428.753.160 bytes)

I guess this is, strictly speaking, a different bug?

Revision history for this message
Adolfo Jayme Barrientos (fitojb) wrote :

I'm looking for incorrect translations that I may have overlooked the first time.

Revision history for this message
Adolfo Jayme Barrientos (fitojb) wrote :

OK, I've just fixed the last issue regarding GB translated as GiB: https://translations.launchpad.net/ubuntu/precise/+source/glib2.0/+pots/glib20/es/801/+translate

Thanks for reporting!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.