From b460b1089ca5ff114faf5349d4cab4a6753aedd4 Mon Sep 17 00:00:00 2001 From: Anders F Bjorklund Date: Tue, 27 Jan 2009 23:52:06 +0100 Subject: [PATCH] Translate some more strings --- locale/sv/LC_MESSAGES/zero-install.po | 30 +++++++++++++++++++++++++++++- zeroinstall/0launch-gui/iface_browser.py | 12 ++++++------ 2 files changed, 35 insertions(+), 7 deletions(-) diff --git a/locale/sv/LC_MESSAGES/zero-install.po b/locale/sv/LC_MESSAGES/zero-install.po index 2f78e6f..8375de3 100644 --- a/locale/sv/LC_MESSAGES/zero-install.po +++ b/locale/sv/LC_MESSAGES/zero-install.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: zero-install 0.30\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-01-27 23:40+0100\n" +"POT-Creation-Date: 2009-01-27 23:48+0100\n" "PO-Revision-Date: 2007-10-17 00:20+0200\n" "Last-Translator: Anders F Björklund \n" "Language-Team: Swedish \n" @@ -107,6 +107,20 @@ msgstr "Hämta" msgid "Description" msgstr "Beskrivning" +#: zeroinstall/0launch-gui/iface_browser.py:339 +#, python-format +msgid " (was %s)" +msgstr " (var %s)" + +#: zeroinstall/0launch-gui/iface_browser.py:355 +#, python-format +msgid "Unknown dependency type : %s" +msgstr "Okänd beroendetyp: %s" + +#: zeroinstall/0launch-gui/iface_browser.py:358 +msgid "(choose)" +msgstr "(välj)" + #: zeroinstall/0launch-gui/iface_browser.py:373 msgid "Show Feeds" msgstr "Visa kanaler" @@ -123,6 +137,20 @@ msgstr "Rapportera fel..." msgid "Compile..." msgstr "Kompilera..." +#: zeroinstall/0launch-gui/iface_browser.py:431 +msgid "unknown" +msgstr "okänd" + +#: zeroinstall/0launch-gui/iface_browser.py:433 +#, python-format +msgid " in %d downloads" +msgstr " i %d nerladdningar" + +#: zeroinstall/0launch-gui/iface_browser.py:434 +#, python-format +msgid "(downloading %s/%s)" +msgstr "(laddar ner %s/%s)" + #: zeroinstall/0launch-gui/impl_list.py:42 #, python-format msgid "Local: %s" diff --git a/zeroinstall/0launch-gui/iface_browser.py b/zeroinstall/0launch-gui/iface_browser.py index 4be7c4f..205a265 100644 --- a/zeroinstall/0launch-gui/iface_browser.py +++ b/zeroinstall/0launch-gui/iface_browser.py @@ -336,7 +336,7 @@ class InterfaceBrowser: old_impl = self.original_implementation.get(iface, None) version_str = impl.get_version() if old_impl is not None and old_impl is not impl: - version_str += " (was " + old_impl.get_version() + ")" + version_str += _(' (was %s)') % old_impl.get_version() self.model[iter][InterfaceBrowser.VERSION] = version_str self.model[iter][InterfaceBrowser.DOWNLOAD_SIZE] = utils.get_fetch_info(self.policy, impl) @@ -352,10 +352,10 @@ class InterfaceBrowser: child_iter = self.model.append(parent) self.model[child_iter][InterfaceBrowser.INTERFACE_NAME] = '?' self.model[child_iter][InterfaceBrowser.SUMMARY] = \ - 'Unknown dependency type : %s' % child + _('Unknown dependency type : %s') % child self.model[child_iter][InterfaceBrowser.ICON] = self.default_icon else: - self.model[iter][InterfaceBrowser.VERSION] = '(choose)' + self.model[iter][InterfaceBrowser.VERSION] = _('(choose)') add_node(None, self.root) self.tree_view.expand_all() @@ -428,10 +428,10 @@ class InterfaceBrowser: if expected: fraction = "%s [%.2f%%]" % (pretty_size(expected), 100 * so_far / float(expected)) else: - fraction = "unknown" + fraction = _("unknown") if len(downloads) > 1: - fraction += " in %d downloads" % len(downloads) - row[InterfaceBrowser.SUMMARY] = "(downloading %s/%s)" % (pretty_size(so_far), fraction) + fraction += _(" in %d downloads") % len(downloads) + row[InterfaceBrowser.SUMMARY] = _("(downloading %s/%s)") % (pretty_size(so_far), fraction) else: row[InterfaceBrowser.DOWNLOAD_SIZE] = utils.get_fetch_info(self.policy, impl) row[InterfaceBrowser.SUMMARY] = iface.summary -- 2.11.4.GIT