← Back to team overview

ubuntu-translations-coordinators team mailing list archive

[Bug 835929] [NEW] Gcc template names

 

Public bug reported:

I had this problem some time ago on IRC:

(14.17.53) kelemengabor: I wonder... won't it cause collisions/lost work
if we export a gcc.mo/cpplib.mo/libstdc++.mo file from gcc-4.4, gcc-4.5
and gcc-4.6 at the same time?

Well, the answer is obviously: yes.

As gcc allows several different versions to be installed at the same
time, one might think that the .mo file names have to be versioned.
Debian has gcc-x.y-locales packages, which just do this:

http://packages.debian.org/sid/all/gcc-4.4-locales/filelist
http://packages.debian.org/sid/all/gcc-4.5-locales/filelist
http://packages.debian.org/sid/all/gcc-4.6-locales/filelist

These packages in Ubuntu are in Universe, and empty, so we have to do this trick in the langpacks. Also note that while we provide libstdc++ translations, the packages above do not. http://translationproject.org/team/hu.html doesn't have that domain either, and downloading the gcc sources I found that the /gcc-4.6.1/libstdc++-v3/po/ directory is pretty deserted, there is only two translations from 2001. So, my bet would be that this can be safely disabled.
We however only ship one gcc.mo (and cpplib.mo) file without version number, so even that doesn't work:
(this is on Lucid)

$ LANGUAGE=es gcc --version
gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

After doing:
$ sudo ln -s /usr/share/locale-langpack/es/LC_MESSAGES/gcc.mo  /usr/share/locale-langpack/es/LC_MESSAGES/gcc-4.4.mo 

I see:
$ LANGUAGE=es gcc --version
gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
Copyright (C) 2009 Free Software Foundation, Inc.
Esto es software libre; vea el código para las condiciones de copia.  NO hay
garantía; ni siquiera para MERCANTIBILIDAD o IDONEIDAD PARA UN PROPÓSITO EN
PARTICULAR

Beautiful :).
Now the task is to change all the translation domains of gcc and cpplib to versioned ones in all supported releases (Lucid and newer), and disable libstdc++.

** Affects: ubuntu-translations
     Importance: Medium
         Status: Triaged

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

Title:
  Gcc template names

Status in Ubuntu Translations:
  Triaged

Bug description:
  I had this problem some time ago on IRC:

  (14.17.53) kelemengabor: I wonder... won't it cause collisions/lost
  work if we export a gcc.mo/cpplib.mo/libstdc++.mo file from gcc-4.4,
  gcc-4.5 and gcc-4.6 at the same time?

  Well, the answer is obviously: yes.

  As gcc allows several different versions to be installed at the same
  time, one might think that the .mo file names have to be versioned.
  Debian has gcc-x.y-locales packages, which just do this:

  http://packages.debian.org/sid/all/gcc-4.4-locales/filelist
  http://packages.debian.org/sid/all/gcc-4.5-locales/filelist
  http://packages.debian.org/sid/all/gcc-4.6-locales/filelist

  These packages in Ubuntu are in Universe, and empty, so we have to do this trick in the langpacks. Also note that while we provide libstdc++ translations, the packages above do not. http://translationproject.org/team/hu.html doesn't have that domain either, and downloading the gcc sources I found that the /gcc-4.6.1/libstdc++-v3/po/ directory is pretty deserted, there is only two translations from 2001. So, my bet would be that this can be safely disabled.
  We however only ship one gcc.mo (and cpplib.mo) file without version number, so even that doesn't work:
  (this is on Lucid)

  $ LANGUAGE=es gcc --version
  gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
  Copyright (C) 2009 Free Software Foundation, Inc.
  This is free software; see the source for copying conditions.  There is NO
  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

  After doing:
  $ sudo ln -s /usr/share/locale-langpack/es/LC_MESSAGES/gcc.mo  /usr/share/locale-langpack/es/LC_MESSAGES/gcc-4.4.mo 

  I see:
  $ LANGUAGE=es gcc --version
  gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
  Copyright (C) 2009 Free Software Foundation, Inc.
  Esto es software libre; vea el código para las condiciones de copia.  NO hay
  garantía; ni siquiera para MERCANTIBILIDAD o IDONEIDAD PARA UN PROPÓSITO EN
  PARTICULAR

  Beautiful :).
  Now the task is to change all the translation domains of gcc and cpplib to versioned ones in all supported releases (Lucid and newer), and disable libstdc++.

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


Follow ups

References