Incorrect Translation-xx file request for three letter langcode

Bug #391409 reported by Xuacu Saturio
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
APT
Fix Released
Unknown
Package Descriptions for Ubuntu
Invalid
Undecided
Unassigned
apt (Ubuntu)
Fix Released
Medium
Michael Vogt
Lucid
Fix Released
Medium
Michael Vogt

Bug Description

Hi
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
ast_ES.UTF-8

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)
Changed in ddtp-ubuntu:
status: New → Invalid
Revision history for this message
costales (costales) wrote :

Hi!
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.
Regards.

Changed in ddtp-ubuntu:
status: Invalid → New
Revision history for this message
costales (costales) wrote :
Revision history for this message
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

Regards.

Revision history for this message
ivarela (ivarela) wrote :

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

Michael Vogt (mvo)
Changed in apt (Ubuntu Lucid):
milestone: none → ubuntu-10.04-beta-1
status: New → Confirmed
importance: Undecided → Medium
Michael Vogt (mvo)
Changed in apt (Ubuntu Lucid):
assignee: nobody → Michael Vogt (mvo)
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt - 0.7.25.3ubuntu2

---------------
apt (0.7.25.3ubuntu2) lucid; urgency=low

  [ Michael Vogt ]
  * abicheck/
    - add new abitest tester using the ABI Compliance Checker from
      http://ispras.linuxfoundation.org/index.php/ABI_compliance_checker
  * 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
Revision history for this message
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
Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

Closing ddtp-ubuntu task.

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

Other bug subscribers

Related questions

Remote bug watches

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