~kelemeng/software-center/bug872823

« back to all changes in this revision

Viewing changes to softwarecenter/db/update.py

  • Committer: Michael Vogt
  • Date: 2011-10-07 15:13:43 UTC
  • mfrom: (2443.2.9 5.0)
  • Revision ID: michael.vogt@ubuntu.com-20111007151343-21od4162x7ceo7ck
merged from the 5.0 branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
330
330
                translated_value = gettext.dgettext(domain, value)
331
331
                if value != translated_value:
332
332
                    return translated_value
 
333
        # then try app-install-data 
 
334
        value = self.get(self.DE, key)
 
335
        if value:
 
336
            translated_value = gettext.dgettext("app-install-data", value)
 
337
            if value != translated_value:
 
338
                return translated_value
333
339
        # then try the i18n version of the key (in [de_DE] or
334
340
        # [de]) but ignore errors and return the untranslated one then
335
341
        try: