Thanks for pointing out that, Maxim. (I should have thought of doing
so.) So this is not a problem with the language pack generation, after
all.

At this time I think the explanation is a combination of a few things.

To begin with, the apt package installs MO files in /usr/share/locale.

$ dpkg -L apt | grep ru.*mo$
/usr/share/locale/ru/LC_MESSAGES/apt.mo

Those MO files are apparently not updated in Xenial. At the same time
gettext seems to pick those files at first hand, while using /usr/share
/locale-langpack as fallback. (I thought that gettext should do it the
other way around.) So the result is:

$ echo $(LANGUAGE=ru gettext -d apt '[upgradable from: %s]')
[может быть обновлён до: %s]
$ echo $(LANGUAGE=ru TEXTDOMAINDIR=/usr/share/locale-langpack \
> gettext -d apt '[upgradable from: %s]')
[возможно обновление с: %s]

If this gettext behavior is wrong, I suppose this should be fixed in
gettext. If not, there is a need to update the translations in the apt
package for Xenial.

** Project changed: langpack-o-matic => gettext (Ubuntu)

** Changed in: apt (Ubuntu)
       Status: Invalid => New

-- 
You received this bug notification because you are a member of Ubuntu
Translations Coordinators, which is subscribed to Ubuntu Translations.
Matching subscriptions: Ubuntu Translations bug mail
https://bugs.launchpad.net/bugs/1637801

Title:
  Incorrect Russian translation of "apt list --upgradeable" results

Status in Ubuntu Translations:
  Invalid
Status in apt package in Ubuntu:
  New
Status in gettext package in Ubuntu:
  New

Bug description:
  bor@bor-Latitude-E5450:~$ apt list --upgradeable
  Вывод списка… Готово
  build/неизвестно 20161025 all [может быть обновлён до: 20151105]

  In Russian this means "version 20161025 can be upgraded TO version
  20151105)

  While original English says exactly opposite:

  bor@bor-Latitude-E5450:~$ LC_ALL=C LANG=C apt list --upgradeable
  Listing... Done
  build/unknown 20161025 all [upgradable from: 20151105]

  Literal translation (that does not require serious phrase change)
  would probably be

  "может быть обновлен с"

  although it sounds also artificial, as in Russian subject is package
  that is being updated (currently installed), not new version.

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: apt 1.2.12~ubuntu16.04.1
  ProcVersionSignature: Ubuntu 4.8.0-25.27~16.04.1-generic 4.8.1
  Uname: Linux 4.8.0-25-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2.1
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Sun Oct 30 09:39:47 2016
  DistributionChannelDescriptor:
   # This is a distribution channel descriptor
   # For more information see 
http://wiki.ubuntu.com/DistributionChannelDescriptor
   canonical-oem-somerville-trusty-amd64-20140620-0
  InstallationDate: Installed on 2015-07-02 (485 days ago)
  InstallationMedia: Ubuntu 14.04 "Trusty" - Build amd64 LIVE Binary 
20140620-04:25
  SourcePackage: apt
  UpgradeStatus: Upgraded to xenial on 2016-10-29 (0 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-translations/+bug/1637801/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-translations-coordinators
Post to     : ubuntu-translations-coordinators@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-translations-coordinators
More help   : https://help.launchpad.net/ListHelp

Reply via email to