Commit d9f46ded by Ruben Rodriguez

extra/gnome-app-install: Updated AppDescView.py to fix packages with no description failing to load

parent fd3a6981
...@@ -73,7 +73,11 @@ class AppDescView(ReleaseNotesViewer): ...@@ -73,7 +73,11 @@ class AppDescView(ReleaseNotesViewer):
try: try:
# short_desc = ... already looked up the correct translation # short_desc = ... already looked up the correct translation
# for us. # for us.
rough_desc = candidate.package._pcache._records.LongDesc.split("\n",1)[1] tmp = candidate.package._pcache._records.LongDesc.split("\n",1)
if len(tmp) == 1:
rough_desc = ""
else:
rough_desc = tmp[1]
except AttributeError: except AttributeError:
rough_desc = candidate and candidate.raw_description.split("\n",1)[1] rough_desc = candidate and candidate.raw_description.split("\n",1)[1]
......
gnome-app-install (0.5.60.1ubuntu2trisquel6-4) slaine; urgency=low
* Updated AppDescView.py to fix packages with no description failing
to load
-- Trisquel GNU/Linux developers <trisquel-devel@listas.trisquel.info> Thu, 15 Mar 2012 15:17:56 +0100
gnome-app-install (0.5.60.1ubuntu2trisquel6-3) slaine; urgency=low gnome-app-install (0.5.60.1ubuntu2trisquel6-3) slaine; urgency=low
* Updated AppDescView.py to fix descriptions failing to load in * Updated AppDescView.py to fix descriptions failing to load in
......
...@@ -9,7 +9,7 @@ msgid "" ...@@ -9,7 +9,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: Sebastian Heinlein <sebi@glatzor.de>\n" "Report-Msgid-Bugs-To: Sebastian Heinlein <sebi@glatzor.de>\n"
"POT-Creation-Date: 2012-03-15 14:35+0100\n" "POT-Creation-Date: 2012-03-15 15:18+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
...@@ -792,13 +792,13 @@ msgstr "" ...@@ -792,13 +792,13 @@ msgstr ""
msgid "Description" msgid "Description"
msgstr "" msgstr ""
#: ../AppInstall/widgets/AppDescView.py:104 #: ../AppInstall/widgets/AppDescView.py:108
#, python-format #, python-format
msgid "%s cannot be installed" msgid "%s cannot be installed"
msgstr "" msgstr ""
#. warn that this app is not available on this plattform #. warn that this app is not available on this plattform
#: ../AppInstall/widgets/AppDescView.py:113 #: ../AppInstall/widgets/AppDescView.py:117
#, python-format #, python-format
msgid "" msgid ""
"%s cannot be installed on your computer type (%s). Either the application " "%s cannot be installed on your computer type (%s). Either the application "
...@@ -806,29 +806,29 @@ msgid "" ...@@ -806,29 +806,29 @@ msgid ""
"computer type." "computer type."
msgstr "" msgstr ""
#: ../AppInstall/widgets/AppDescView.py:124 #: ../AppInstall/widgets/AppDescView.py:128
#, python-format #, python-format
msgid "" msgid ""
"%s is available in the third party software channel '%s'. To install it, " "%s is available in the third party software channel '%s'. To install it, "
"please click on the checkbox to activate the software channel." "please click on the checkbox to activate the software channel."
msgstr "" msgstr ""
#: ../AppInstall/widgets/AppDescView.py:134 #: ../AppInstall/widgets/AppDescView.py:138
msgid "This application is bundled with the following applications: " msgid "This application is bundled with the following applications: "
msgstr "" msgstr ""
#: ../AppInstall/widgets/AppDescView.py:228 #: ../AppInstall/widgets/AppDescView.py:232
msgid "Screenshot" msgid "Screenshot"
msgstr "" msgstr ""
#: ../AppInstall/widgets/AppDescView.py:236 #: ../AppInstall/widgets/AppDescView.py:240
#, python-format #, python-format
msgid "" msgid ""
"\n" "\n"
"Homepage: %s\n" "Homepage: %s\n"
msgstr "" msgstr ""
#: ../AppInstall/widgets/AppDescView.py:238 #: ../AppInstall/widgets/AppDescView.py:242
#, python-format #, python-format
msgid "Version: %s (%s)" msgid "Version: %s (%s)"
msgstr "" msgstr ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment