Can't search for translated app names

Bug #777990 reported by Kyle Nitzsche
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: software-center

When the system is in Chinese/Simplified (LANGUAGE=zh_CN:en, LANG=zh_CN.UTF-8, for example), zh-hans lang packs installed, one cannot search for pkgs when entering Chinese Characters in the Software Center top right search box.

software-center 4.0

For example, I entered "word processor" in English and the expected list of pkgs was displayed. (attachment 1.png)

I then entered the Chinese/Simplified translation of "word processor" (obtained from google translate) and there are no pkgs displayed. (attachment 2.png)

Revision history for this message
Kyle Nitzsche (knitzsche) wrote :
Revision history for this message
Kyle Nitzsche (knitzsche) wrote :
Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

Further investigation leads me to propose that searching for any application name in a non-English language fails, so this may not be a Chinese-specific problem. I think this is a critical issue.

I would expect that a user should be able to search in Software Center for an application using its translated Name (where the Name is that found in the .desktop file, translated).

It is reasonable to assume that langauge packs providing translations (language-pack-<code>, language-pack-gnome-<code>) must be installed (although I would assumed support and writing aids should not be required).

Test procedure:

Tests will seach for Ubuntu Software Center application in various lanuages

1) Verify the required lang packs installed with 'check-language-support -l <code>'. This command returns the missing language packs.

2) Switch the terminal session to the target language for testing with 'export LANGUAGE=<code>'

3) Get software-center's translation domain (from it's desktop file). It is: software-center

4) Obtain software-center's translated application name at the command line with gettext: 'gettext -s -d software-center "Ubuntu Software Center"'

5) Launch software-center from the terminal

6) Enter the translated application name into the software center search box, take screenshot.

Expectation is that the application is found and displayed.

Results are that only English Ubuntu Software Center application name is found.

Test details follow

== Test English (code is en_US) ==
$ export LANGUAGE=en_US
$ check-language-support -l en_US
$ gettext -s -d software-center "Ubuntu Software Center"
Ubuntu Software Center
$ software-center

Result: FOUND. See English.png

== Test Chinese/Simplified (code is zh_CN) ==

$ export LANGUAGE=zh_CN
$ check-language-support -l zh_CN
language-support-fonts-zh-hans language-support-input-zh-hans
$ gettext -s -d software-center "Ubuntu Software Center"
Ubuntu 软件中心
$ software-center

Result: NOT FOUND. See Chinese_Simplified.png

== Test: French (code fr) ==

$ export LANGUAGE=fr
$ check-language-support -l fr
hyphen-fr language-support-writing-fr mythes-fr
$ gettext -s -d software-center "Ubuntu Software Center"
Logithèque Ubuntu
$ software-center

Result: NOT FOUND. See French.png

Revision history for this message
Kyle Nitzsche (knitzsche) wrote :
Revision history for this message
Kyle Nitzsche (knitzsche) wrote :
Revision history for this message
Kyle Nitzsche (knitzsche) wrote :
Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

BETTER Chinese-Simplified screenshot

summary: - Can't search for pkgs in Chinese/Simplified
+ Can't search for translated app names
Revision history for this message
Gary Lasker (gary-lasker) wrote :

This one is actually the problem that is being tracked in bug 745243, so I'll mark this one as a dupe of that one.

Revision history for this message
Brian Chidester (brianchidester) wrote :

I am unable to reproduce this bug, I did however test the fix for #745243 and found that it did not introduce any new bugs.

Revision history for this message
Brian Chidester (brianchidester) wrote :

Clarification of the above comment, I was unable to reproduce the bug at all -- with or without a fix.

Revision history for this message
Gary Lasker (gary-lasker) wrote :

Hmm, I can't seem to reproduce this in stock Natty at all either. I have a VM set up as Chinese(Simplified) and I am seeing package names and descriptions translated 100% of the time. Well, to be clear, I am seeing those package names and descriptions *for which there are translations available* translated.

Compare the attached screenshot from my machine with Kyle's screenshot in comment #1. Note that in my case, almost all of the package descriptions are translated, and one of the package names is translated.

Revision history for this message
Gary Lasker (gary-lasker) wrote :

Here's a screenshot when searching for the term that Google Translate returns when translating "Word Processor". Note that an alternate spelling is suggested.

Revision history for this message
Gary Lasker (gary-lasker) wrote :

Clicking the alternate spelling returns a reasonable-looking list. Note that LibreOffice is not included in this list, and by all appearances that's because the corresponding package appears to be not translated into Chinese.

Revision history for this message
Gary Lasker (gary-lasker) wrote :

Finally, searching for "Libre" in English returns the LibreOffice packages, as expected since they are not translated.

Revision history for this message
Gary Lasker (gary-lasker) wrote :

By the way, we have been commenting on this bug, which is a duplicate of bug 745243. We need to get this information over to that bug ASAP. I suppose we can do that once we verify either way, at least as it pertains to the specific Software Center use cases.

@Kyle, when you have a chance, could you please check to see if you can still reproduce this problem? And also please add your thoughts about the comments and screenshots I've attached when testing with my Natty VM. Many thanks!

Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

In my case, this bug is still fully reproducible.

I use oem-config as the first boot app, not ubiquity front end.

All appropriate language-packs are installed according to 'check-language-support -l zh-hans' (no pkgs returned, which means none are missing.)

1) To start: Software Center apps names and descriptions not translated: see apps-nottrans,png.

2) run update-software-center

3) now apps and descriptions translated: see apps-trans.png

Revision history for this message
Kyle Nitzsche (knitzsche) wrote :
Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

I forgot to mention that once translated app names and descriptions do display in SC, search seems to work.

I don't think this bug is a dup of 745243 at this point since the problem is not specifically search related, but is rather to do with getting the caches updated and correct for the current language.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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