~ubuntu-branches/ubuntu/maverick/unity/maverick

« back to all changes in this revision

Viewing changes to unity-private/places/places-place.vala

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-09-30 16:33:54 UTC
  • Revision ID: james.westby@ubuntu.com-20100930163354-wfi2k4b2e5a41hjw
Tags: 0.2.46-0ubuntu3
* Cherry pick from upstream:
  - Finally load the right translations from .place files for
    "Applications" and "Files & Folders" tooltips (LP: #644215)

Show diffs side-by-side

added added

removed removed

Lines of Context:
377
377
              return null;
378
378
            }
379
379
 
380
 
          name = file.get_locale_string (group, "Name", null);
381
 
          icon = file.get_locale_string (group, "Icon", null);
382
 
          desc = file.get_locale_string (group, "Description", null);
 
380
          var domain = file.get_string (KeyFileDesktop.GROUP,
 
381
                                        "X-Ubuntu-Gettext-Domain");
 
382
          name = dgettext (domain, file.get_string (group, "Name"));
 
383
          icon = file.get_string (group, "Icon");
 
384
          desc = dgettext (domain, file.get_string (group, "Description"));
383
385
      } catch (Error e) {
384
386
        warning (@"Cannot load entry '$group': %s", e.message);
385
387
        return null;