russian translation for 'df' utility incorrect & has bad layout

Bug #702840 reported by mbel
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Translations
New
Undecided
Russian Ubuntu Translators
coreutils (Ubuntu)
Invalid
Low
Unassigned

Bug Description

Binary package hint: coreutils

ubuntu lucid, coreutils-7.4-2ubuntu3, utility df, russian locale has bad layout
sample output in russian (please keep in mind that this text need to be viewed using monospace font, e.g. copy int into gedit):
Файловая система 1K-блоков использовано, Разрешено использовать% смонтирована на
/dev/sda2 470814080 108652148 338245900 25% /
none 1734068 320 1733748 1% /dev
none 1738272 2632 1735640 1% /dev/shm

sample output in English:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 470814080 108652148 338245900 25% /
none 1734068 320 1733748 1% /dev
none 1738272 2632 1735640 1% /dev/shm

problems is Russian version are:
1. russian column captions not aligned to columns, as in English version
2. russian column captions has very strange style: some words start with capital letter, some don't
3. Available doesn't translate to "Разрешено" in this context, better use word "free"
4. Use% translation to "использовать%" confuses a lot: current implementation makes me thisk that 5th column contains free percentage, whilst it mean used percentage.

suggest translation (<> denotes columns, of course, this should be aligned):
<устройство> <1K блоков всего> <занято> <свободно> <занято%> <точка монтирования>

Revision history for this message
mbel (mbel) wrote :

It looks like the root cause is somewhere else: I downloaded sources of the coreutils 7.4-2ubuntu3 and see that translation defined in po/ru.po for df.c is correct. But when I execute df on my system with locale ru_RU.utf8 I see the string exactly as I mentioned in ticket description.

Could you please advice where to look for the source of the problems?

Revision history for this message
C de-Avillez (hggdh2) wrote :

Thank you for opening this bug and helping make Ubuntu better. The misaligned 'df' output is a known issue (see bug 181731); I was going to mark this bug as a duplicate, but you also point out a translation issue.

As such, I am marking the coreutils task as Confirmed/Low, and adding a task against Ubuntu Translations (please see https://wiki.ubuntu.com/Bugs/HowToTriage#Translation%20Bugs%20and%20Launchpad%20integration).

Next time please open one bug per issue: having more than one issue in a bug makes it extremely difficult to coordinate actions (like now, where I would have to mark this bug as a duplicate of bug 181731 -- an action that affects the _bug_ but, at the same time, there is a potentially valid translation issue).

Changed in coreutils (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
mbel (mbel) wrote :

Hi again!

I found, that this bug is not directly related to coreutils package, the main problem is in language-pack-ru-base (version 10.04+20100714) which contains translation for my case. I tried to create proper solution using translation from coreutils package, tested, and it seems to be working, so you can take it and use (see attachment). Sample output (please look at it in monospaced window):
Файловая система 1K-блоков Исп Доступно Исп% Cмонтирована на
/dev/sda3 193882016 178752304 5281064 98% /
none 1988064 332 1987732 1% /dev
none 1992972 508 1992464 1% /dev/shm

Regarding coreutils package: IMHO it contains correct Russian translation for df output, but its output is misaligned (captions for columns 2-5 of df output are right-aligned, but in coreutils-7.4/po/ru.po they are left-aligned)

Gabor Kelemen (kelemeng)
Changed in ubuntu-translations:
assignee: nobody → Russian Ubuntu Translators (ubuntu-l10n-ru)
Changed in coreutils (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Nikolay Fedosov (nikolay-fedosov) wrote :

Hello!

I have fixed this bug in Rosetta.
Should I do something else ?

I think it is a good idea to review coreutils translation in full.
Are anybody interesting in these results ?

Revision history for this message
Dmitry Agafonov (dmitry-agafonov) wrote :

Nikolay, Rozetta do not allow (technically) to fix this bug. Read https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/181731

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.