df -h incorrectly displays translated table headers

Bug #892267 reported by Kruvalig
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu Translations
Fix Committed
Low
Russian Ubuntu Translators
coreutils (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

При выполнении df -h шапка таблице съезжает. Т.к. в английской версии строка filesystem занимает 18 символов, в русском переводе на 6 символов больше.
Скачал po файл, исправил это.
Сделал
msgfmt po_coreutils-ru.po -o po_coreutils-ru.mo
sudo cp po_coreutils-ru.mo /usr/share/locale-langpack/ru/LC_MESSAGES/coreutils.mo
все отображается нормально.
Сохраните пожалуйста это для будущих версии Ubuntu.

-- Translated: --
When executing df -h table header position changes. In english version "filesystem" string takes 18 symbols, in russian - 6 symbols more.

I downloaded po file and fixed that in such way:
msgfmt po_coreutils-ru.po -o po_coreutils-ru.mo
sudo cp po_coreutils-ru.mo /usr/share/locale-langpack/ru/LC_MESSAGES/coreutils.mo

Now everything is displayed OK.

Kruvalig (kruvalig)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in coreutils (Ubuntu):
status: New → Confirmed
Baronos (seredkinab)
Changed in coreutils (Ubuntu):
status: Confirmed → New
status: New → Confirmed
Revision history for this message
C de-Avillez (hggdh2) wrote :

Thank you for opening this bug and helping make Ubuntu better. Since the bug title and description are not in English, we will need to wait until someone that speaks your language can translate both. Aternatively, you yourself can do it, if you also speak English.

Revision history for this message
Dmitry Shachnev (mitya57) wrote :

I can confirm this. See http://paste.ubuntu.com/743002/ for details.

description: updated
summary: - Неверно отображается таблица df -h
+ df -h incorrectly displays translated table headers
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

And also a comparison between current variant and a correct one:
http://paste.ubuntu.com/743004/.

description: updated
Gabor Kelemen (kelemeng)
Changed in ubuntu-translations:
assignee: nobody → Russian Ubuntu Translators (ubuntu-l10n-ru)
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

It's not translations bug. df should take length of string into account before printing lot of %t's.
Anyway, as a workaround I changed the string to be less long, this should fix the issue (https://translations.launchpad.net/ubuntu/precise/+source/coreutils/+pots/coreutils/ru/504/+translate).

Changed in ubuntu-translations:
status: Triaged → Fix Committed
Revision history for this message
Dmitry Agafonov (dmitry-agafonov) wrote :

Dmitry, as I wrote in one of duplicates - this cannot be fixed via launchpad - it makes wrong parsing of input.
Have you checked your fix is working by exporting and applying .mo file?

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.