Incorrect Translation-xx file request for three letter langcode

Bug #391409 reported by Xuacu Saturio on 2009-06-24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Fix Released
Package Descriptions for Ubuntu
apt (Ubuntu)
Michael Vogt
Michael Vogt

Bug Description

I've noticed that when updating package lists, both Synaptic and apt-get are trying to download a "Translation-as" file from repositories.

The problem is that for my language (Asturian) it should be "Translation-ast". Perhaps it's a matter of a package accepting only iso-639-1 (two letter) language codes instead of iso-639-2 or iso-639-3 (three letters)

For now, that hasn't much impact on my computer (other than having package descriptions in English); but that may change in case there is an actual "Translation-as" file in the repositories.

The question is: Which package is generating Translation-xx files? Is there a way to change it to Translation-xxx?

Thank you.

=== Update while creating bug report ===

xuacu@nuberu:~$ echo $LANG

Trying < APT::Acquire::Translation "ast"; > in apt conffiles produces the following error with «apt-get update»:
W: Wrong language code ast

Trying < APT::Acquire::Translation "none"; > gives no error, other than not getting the translated descriptions.

Source code is too much for me, but as far as I can see it's a matter of taking the first three letters for the Translation-xxx file except when the third letter is an underscore. Or, perhaps, to allow more letters to get different package descriptions for, say, «en» and «en_GB»

Thank you.

Related branches

Changed in apt:
status: Unknown → New
costales (costales) on 2009-10-30
Changed in ddtp-ubuntu:
status: New → Invalid
costales (costales) wrote :

This bug persist in Ubuntu 9.10.
I attachment 2 images (in US Language = OK and AST Language = WRONG) where you can see the problem.

Changed in ddtp-ubuntu:
status: Invalid → New
costales (costales) wrote :
ivarela (ivarela) wrote :

Hey guys, I think that this bug affects to all languages with three code letters. Example: ast (Asturian) , fur (Friulian language) and others.

I can confirm this bug with "Friulian" (fur) language. Apt-get only take the two first letters (fu)

Try this command:

sudo apt-get update|tee file.txt


ivarela (ivarela) wrote :

Of course, it also affects to "Aptitude" package... ;)

Michael Vogt (mvo) on 2010-02-08
Changed in apt (Ubuntu Lucid):
milestone: none → ubuntu-10.04-beta-1
status: New → Confirmed
importance: Undecided → Medium
Michael Vogt (mvo) on 2010-03-12
Changed in apt (Ubuntu Lucid):
assignee: nobody → Michael Vogt (mvo)
status: Confirmed → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt -

apt ( lucid; urgency=low

  [ Michael Vogt ]
  * abicheck/
    - add new abitest tester using the ABI Compliance Checker from
  * debian/apt.conf.autoremove:
    - add "oldlibs" to the APT::Never-MarkAuto-Sections as its used
      for transitional packages
  * apt-pkg/deb/dpkgpm.cc:
    - fix backgrounding when dpkg runs (closes: #486222)
  * cmdline/apt-mark:
    - show error on incorrect aguments (LP: #517917), thanks to
      Torsten Spindler
  * cmdline/apt-get.cc:
    - if apt-get source foo=version or foo/distro can not be found,
      error out (LP: #502641)
  * apt-pkg/indexfile.cc:
    - deal correctly with three letter langcodes (LP: #391409)
  * debian/apt.cron.daily:
    - do not look into admin users gconf anymore for the http proxy
      the user now needs to use the "Apply system-wide" UI in the
      gnome-control-center to set it
  * debian/apt.postinst:
    - add set_apt_proxy_from_gconf() and run that once on upgrade if
      there is no proxy configured already system-wide (LP: #432631)
      From that point on gnome-control-center will have to warn if
      the user makes changes to the proxy settings and does not apply
      them system wide

  [ Robert Collins ]
  * Change the package index Info methods to allow apt-cache policy to be
    useful when using several different archives on the same host.
    (Closes: #329814, LP: #22354)
 -- Michael Vogt <email address hidden> Fri, 12 Mar 2010 23:10:52 +0100

Changed in apt (Ubuntu Lucid):
status: Fix Committed → Fix Released
costales (costales) wrote :

Hi! I can confirm that this bug is fixed in Ubuntu 10.04 alpha3 for the Asturian language :D
Thanks very much!!!!! Great work!

Changed in apt:
status: New → Fix Released

Closing ddtp-ubuntu task.

Changed in ddtp-ubuntu:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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