~ubuntu-branches/ubuntu/saucy/pyxdg/saucy

« back to all changes in this revision

Viewing changes to debian/patches/gettext-support.patch

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2006-05-17 14:29:44 UTC
  • Revision ID: james.westby@ubuntu.com-20060517142944-bs3kecraoky1m75v
Tags: 0.15-1ubuntu5
debian/patches/gettext-support.patch: Fix fallback to translation in
.desktop file if gettext doesn't return a translation. Closes: LP#40132

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
+                                               value = gettext.dgettext(self.gettext_domain, self.content[group][key])
38
38
+                                       except:
39
39
+                                               pass
40
 
+                               if not value:
 
40
+                               if not value or value == self.content[group][key]:
41
41
+                                       value = self.content[group][self.__addLocale(key, group)]
42
42
                        else:
43
43
                                value = self.content[group][key]