Merge lp:~townsend/unity-scope-home/fix-search-hint-localization into lp:unity-scope-home

Proposed by Christopher Townsend
Status: Merged
Approved by: Paweł Stołowski
Approved revision: 83
Merged at revision: 86
Proposed branch: lp:~townsend/unity-scope-home/fix-search-hint-localization
Merge into: lp:unity-scope-home
Diff against target: 12 lines (+1/-1)
1 file modified
src/master-scopes.vala (+1/-1)
To merge this branch: bzr merge lp:~townsend/unity-scope-home/fix-search-hint-localization
Reviewer Review Type Date Requested Status
Paweł Stołowski (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+156423@code.launchpad.net

Commit message

Fix localization of the search hint.

Description of the change

The initial search hint in the Dash Search bar is not translated. This MP fixes the search hint after the scopes load. A fix is also needed in libunity-7.0 and also a unity-scope-home gettext domain is needed for the various different languages.

I tested this by first creating a unity-scope-home.mo file by coalescing the unity-lens-*.mo files by first running msgunfmt on those .mo files and converting them to .po files and then taking all of those and creating one big unity-scope-home.po file and then running msgfmt on that. I did this in Spanish since I can marginally read Spanish:)

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Paweł Stołowski (stolowski) wrote :

Looks good. +1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/master-scopes.vala'
--- src/master-scopes.vala 2013-03-21 17:07:48 +0000
+++ src/master-scopes.vala 2013-04-01 21:04:23 +0000
@@ -278,7 +278,7 @@
278 if (master_def != null)278 if (master_def != null)
279 {279 {
280 var scope = new Unity.MasterScope (info.dbus_path, info.id);280 var scope = new Unity.MasterScope (info.dbus_path, info.id);
281 scope.search_hint = info.search_hint;281 scope.search_hint = _(info.search_hint);
282 var category_set = new Unity.CategorySet ();282 var category_set = new Unity.CategorySet ();
283283
284 Icon? main_icon = null;284 Icon? main_icon = null;

Subscribers

People subscribed via source and target branches