[dash] search field default string not translated

Bug #745237 reported by Bill Filler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Unity
Fix Released
Undecided
Unassigned
unity-2d
Fix Released
Critical
Aurélien Gâteau
unity (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

the string that shows up in the dash homescreen, apps place, or files place is not translated. Always displayed in English.
Tested on natty using Simplified Chinese.

Related branches

Bill Filler (bfiller)
Changed in unity-2d:
milestone: none → 3.10
assignee: nobody → Florian Boucault (fboucault)
importance: Undecided → Critical
Revision history for this message
Bill Filler (bfiller) wrote :

does not appear translated in unity 3d either in natty for simplified chinese

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

In unity. "Search" and "Shortcuts" are both set up for translation in source. But the source pkg's pot file does not show these (and some other) messages. The po files in the source pkg thus do not contain these messages for translation.

I updated the pot file, now these messages are present.

I updated the zh_CN.po file, and now these messages are present.

I added fake translations to the zh_CN.po file, converted it into unity.mo, and put it here: /usr/share/locale-langpack/zh_CN/LC_MESSAGES/unity.

I rebooted and both strings are "translated" (they have "zh_CN" in them). See attached.

So translations work for _unity_, the source pkg just needs to be handled normally regarding the translation cycle.

unity-2d needs to be checked.

Changed in unity-2d:
status: New → Incomplete
status: Incomplete → In Progress
Changed in unity-2d:
milestone: 3.10 → 3.8.2
Changed in unity-2d:
status: In Progress → Fix Committed
Changed in unity:
status: New → Confirmed
Changed in unity (Ubuntu):
status: New → Confirmed
Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

In this context (the search boxes), which gettext domain carries the translations of "Search" and "Files & Folders" and "Applications" as displayed:
"Search Applications"
"Search Files & Folders"

?

Without this information I cannot verify the fix in custom cases that do not yet have up-to-date mo files.

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

Florian, can you please add to the bug the exact messages that are looked up through gettext, and, for each, the domains.

thanks,
Kyle

Changed in unity-2d:
status: Fix Committed → In Progress
Revision history for this message
Florian Boucault (fboucault) wrote :

"Search", domain is 'unity-2d'
"Files & Folders", domain is 'unity'
"Applications", domain is 'unity'

Revision history for this message
Florian Boucault (fboucault) wrote :

Note that this is for the maverick version.

Revision history for this message
Aurélien Gâteau (agateau) wrote :

More on this: These strings come from the .place files which can be found in /usr/share/unity/places/. Each place has its own gettext domain, specified in the .place file. For example the domain for files.place is unity-place-files.

.place files differs a bit on Maverick and Natty:

* On Maverick we have the following interesting entries:

[Entry:Files]
Name=Files & Folders
Description=Find documents, downloads, and other files

* On Natty:
[Entry:Files]
Name=Files & Folders
Description=Find documents, downloads, and other files
SearchHint=Search Files & Folders

This means on Maverick we must use "Search %1" ("unity-2d" domain) and replace %1 with the value of the Entry:Files/Name key ("unity-place-files" domain)

On Natty we must instead use the value of the Entry:Files/SearchHint ("unity-place-files" domain)

Changed in unity-2d:
status: In Progress → Fix Committed
assignee: Florian Boucault (fboucault) → Aurélien Gâteau (agateau)
Changed in unity-2d:
status: Fix Committed → Fix Released
Revision history for this message
Steve Magoun (smagoun) wrote :

Marking the Unity (Ubuntu) bug task Fix Released based on testing done with the Oct. 4 daily image of Ubuntu 11.10 - this is no longer reproducible.

Changed in unity (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Andrea Azzarone (azzar1) wrote :

Marking as "Fix Released" on Unity project too based on comment #8.

Changed in unity:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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