Search also in "en" locale if not found in local translated description or when there
is no local translation. BUG:FIXED:7995
This commit is contained in:
@@ -88,8 +88,8 @@ class PackageDB(lazydb.LazyDB):
|
|||||||
return pkg
|
return pkg
|
||||||
|
|
||||||
def search_package(self, terms, lang=None, repo=None):
|
def search_package(self, terms, lang=None, repo=None):
|
||||||
resum = '<Summary xml:lang="%s">.*?%s.*?</Summary>'
|
resum = '<Summary xml:lang="(%s|en)">.*?%s.*?</Summary>'
|
||||||
redesc = '<Description xml:lang="%s">.*?%s.*?</Description>'
|
redesc = '<Description xml:lang="(%s|en)">.*?%s.*?</Description>'
|
||||||
if not lang:
|
if not lang:
|
||||||
lang = pisi.pxml.autoxml.LocalText.get_lang()
|
lang = pisi.pxml.autoxml.LocalText.get_lang()
|
||||||
found = []
|
found = []
|
||||||
|
|||||||
Reference in New Issue
Block a user