diff options
author | Sayamindu Dasgupta <sayamindu@gmail.com> | 2009-10-15 13:23:19 (GMT) |
---|---|---|
committer | Sayamindu Dasgupta <sayamindu@gmail.com> | 2009-10-15 13:23:19 (GMT) |
commit | d81266b3801c4d0d209ef6d30730bb598d559cdd (patch) | |
tree | d543c852dc86290d207cbaf958415c780be2a5f5 | |
parent | c79a51d714cdcb3c230f6743bcf6904b4d9d8df7 (diff) |
i18n fixes
-rwxr-xr-x | GetIABooksActivity.py | 8 | ||||
-rw-r--r-- | po/GetBooks.pot | 13 |
2 files changed, 17 insertions, 4 deletions
diff --git a/GetIABooksActivity.py b/GetIABooksActivity.py index 4a90846..0aeb2a1 100755 --- a/GetIABooksActivity.py +++ b/GetIABooksActivity.py @@ -321,8 +321,9 @@ class GetIABooksActivity(activity.Activity): self._books_toolbar.enable_button(True) self.progressbar.hide() _logger.debug("Error getting document: %s", err) - self._alert(_('Error'), _('Could not download ') + self.selected_title + _(' path in catalog is incorrect. ' \ - + ' If you tried to download B/W PDF try another format.')) + self._alert(_('Error: Could not download %s . The path in the catalog seems to be incorrect') % self.selected_title) + #self._alert(_('Error'), _('Could not download ') + self.selected_title + _(' path in catalog is incorrect. ' \ + # + ' If you tried to download B/W PDF try another format.')) self._download_content_length = 0 self._download_content_type = None @@ -348,7 +349,8 @@ class GetIABooksActivity(activity.Activity): datastore.write(journal_entry) os.remove(tempfile) self.progressbar.hide() - self._alert(_('Success'), self.selected_title + _(' added to Journal.')) + self._alert(_('Success: %s was added to Journal.') %s self.selected_title) + #self._alert(_('Success'), self.selected_title + _(' added to Journal.')) def truncate(self, str, length): if len(str) > length: diff --git a/po/GetBooks.pot b/po/GetBooks.pot index 166ea26..67be0c8 100644 --- a/po/GetBooks.pot +++ b/po/GetBooks.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-10-15 18:48+0530\n" +"POT-Creation-Date: 2009-10-15 18:52+0530\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -108,3 +108,14 @@ msgstr "" #: listview.py:44 msgid "Publish Date" msgstr "" + +#: GetIABooksActivity.py:324 +#, python-format +msgid "" +"Error: Could not download %s . The path in the catalog seems to be incorrect" +msgstr "" + +#: GetIABooksActivity.py:352 +#, python-format +msgid "Success: %s was added to Journal." +msgstr "" |