Bug 6757 - (int-150829) localised description field not taken into account
(int-150829)
: localised description field not taken into account
Status: NEW
Product: Settings and Maintenance
Application manager
: 5.0/(2.2009.51-1)
: N900 Linux
: Low normal with 1 vote (vote)
: ---
Assigned To: unassigned
: application-manager-bugs
:
:
:
:
  Show dependency tree
 
Reported: 2009-12-09 15:48 UTC by Dart
Modified: 2014-03-08 10:42 UTC (History)
9 users (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description Dart (reporter) 2009-12-09 15:48:59 UTC
SOFTWARE VERSION:
(Settings > General > About product)
1.2009.42-11

EXACT STEPS LEADING TO PROBLEM: 
Create a package and with a description-fr_FR part in the control file.

EXPECTED OUTCOME:
If the device is in French, the french description should be displayed in the
Application Manager instead of the one in the description field.

ACTUAL OUTCOME:
The description field content is displayed.

REPRODUCIBILITY:
always

EXTRA SOFTWARE INSTALLED:

OTHER COMMENTS:
According to http://hildon-app-mgr.garage.maemo.org/packaging-devel.html,
description, The Maemo-Display-Name, Description, and Maemo-Upgrade-Description
fields can be provided in more than one language using this method.


User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2b2)
Gecko/20091108 Firefox/3.6b2
Comment 1 Andre Klapper maemo.org 2009-12-09 21:24:13 UTC
Can you please provide a concrete package example?
Comment 2 Dart (reporter) 2009-12-09 21:31:33 UTC
You can use HideUserAgent 0.3.1, on extras testing.
Comment 3 marc 2009-12-10 11:09:31 UTC
The "hide" fonctionnality works good but it's impossible to customized the
default user agent "Maemo Browser" of the application. The field user agent is
always "Maemo Browser", impossible to save "n95" for exemple.
Comment 4 Dart (reporter) 2009-12-10 12:57:44 UTC
(In reply to comment #3)
> The "hide" fonctionnality works good but it's impossible to customized the
> default user agent "Maemo Browser" of the application. The field user agent is
> always "Maemo Browser", impossible to save "n95" for exemple.
> 

Yep. My mistake. Corrected in next release.
But this is not the goal of that bug report...
Comment 5 Andre Klapper maemo.org 2009-12-15 15:36:59 UTC
Confirming in internal release 50-7.

/debian/control file of HideUserAgent in Extras-Testing has two fields:
"Description:" and "Description-fr_FR:" and "locale" on my N900 says
"LC_MESSAGES=fr_FR" but the English one is displayed.

However I assume that
http://hildon-app-mgr.garage.maemo.org/packaging-devel.html is outdated. :-/
Comment 6 Andre Klapper maemo.org 2009-12-29 23:52:49 UTC
*** Bug 7452 has been marked as a duplicate of this bug. ***
Comment 7 Cornelius Hald 2010-01-04 22:15:31 UTC
It's working for me. The documentation is not very clear about this, but in the
control file the fields have to look like that:

XB-description-fr_FR: xyz

The 'XB-' part is important.

I've tested it on 2.2009.51-1 so it might also be that it was fixed since
42-11.
Comment 8 Oskar 2010-01-04 23:22:28 UTC
(In reply to comment #7)
> It's working for me. The documentation is not very clear about this, but in the
> control file the fields have to look like that:
> 
> XB-description-fr_FR: xyz
> 
> The 'XB-' part is important.

Both is true, depending on what you describe: what the developer writes or what
the application manager reads. ;)

The XB- part is what you put in front of the field when you prepare your
package. Otherwise the non-standard field would be removed and wouldn't be part
of the binary package. The XB- is removed when the package is built.

The application manager, therefore, is not supposed to encounter any control
field names prefixed with "XB-" (or "XBCS-").
It handles the binary packages, and binary packages include the custom control
fields without the "XB-".

So to test this, we need a binary package that includes the localized
"Description-de_DE" (or "-fr_FR" or whatever) *without* the "XB-" in the binary
package.

I do *not* see these fields in HideUserAgent 0.3.1.
(Checked
http://repository.maemo.org/extras-testing/pool/fremantle/free/h/hideuseragent/hideuseragent_0.3.1_armel.deb
)

As I do not know any Fremantle-package that follows these guides to
localization, I checked with a package I prepared myself for Diablo once in:
http://repository.maemo.org/extras/pool/diablo/free/e/exif/
The binary package exif_0.6.15-5maemo2_armel.deb contains a field
Description-De_de:
and this is read and interpreted correctly by the application manager on a N900
with PR1.0 as soon as I add the Diablo Extras repository.

Could it be the bug is actually in the package as it doesn't seem to provide
the "Description-fr_FR:"-field at all?


A reasonable way to check would be to prepare a version of HideUserAgent that
does include the "Description-fr_FR:"; just to make sure there's no other bug,
it should include
Maemo-Display-Name
Maemo-Display-Name-fr_FR
Maemo-Upgrade-Description
Maemo-Upgrade-Description-fr_FR
as well ...
Comment 9 Cornelius Hald 2010-01-05 11:27:10 UTC
Like I said, I´ve tried it and it works for me. I´ve included the
"XB-Description-xy_XY:" fields in Conboys debian/control file before running
dpkg-buildpackage. It was then correctly translated to "Description-xy_XY:" and
the application manager does show it.

Tested with conboy 0.6.3.1-4 (extras-devel) which included amongst others the
"de_DE" translation.
Please note that I´m currently experimenting with the control file, so versions
> 0.6.3.1-4 might not work.
Comment 10 Nick Slobodsky 2010-02-07 18:34:10 UTC
It seems that problem is not here but in libapt. I have this bug in emulator
while my device shows all localised fields. Tested on my own repository.
Comment 11 Nick Slobodsky 2010-03-04 01:04:35 UTC
dpkg-gencontrol (called by dpkg-buildpackage) converts letters from xx_YY to
Xx_yy and fails to build the package. So I don't know how to put it into binary
package and finally to Packages.