Package: catfish Version: 0.3.2-1 Severity: minor Tags: patch l10n Support plurals in search result message. Patch thanks to eskaer_spams...@ngs.ru from LP: #578014
-- System Information: Debian Release: squeeze/sid APT prefers lucid-updates APT policy: (500, 'lucid-updates'), (500, 'lucid-security'), (500, 'lucid') Architecture: i386 (i686) Kernel: Linux 2.6.32-23-generic (SMP w/2 CPU cores) Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages catfish depends on: ii python 2.6.5-0ubuntu1 An interactive high-level object-o ii python-glade2 2.17.0-0ubuntu2 GTK+ bindings: Glade support ii python-gobject 2.21.1-0ubuntu3 Python bindings for the GObject li ii python-gtk2 2.17.0-0ubuntu2 Python bindings for the GTK+ widge ii python-support 1.0.4ubuntu1 automated rebuilding support for P Versions of packages catfish recommends: ii python-xdg 0.18-1ubuntu2 Python library to access freedeskt pn slocate <none> (no description available) Versions of packages catfish suggests: pn beagle <none> (no description available) pn doodle <none> (no description available) ii python-dbus 0.83.0-1ubuntu3 simple interprocess messaging syst pn strigi-daemon <none> (no description available) pn tracker <none> (no description available) -- no debconf information
diff -ru catfish-0.3.2.orig/catfish.py catfish-0.3.2/catfish.py --- catfish-0.3.2.orig/catfish.py 2010-07-20 23:14:37.263707525 +0100 +++ catfish-0.3.2/catfish.py 2010-07-20 23:16:52.632678804 +0100 @@ -690,7 +690,9 @@ messages.append([_('No files were found.'), None]) status = _('No files found for "%s".') % keywords else: - status = _('%s files found for "%s".') % (len(listmodel), keywords) + status = gettext.ngettext('%(n)s file found for "%(q)s".', \ + '%(n)s files found for "%(q)s".',len(listmodel)) \ + % {"n":len(listmodel), "q":keywords} for message, action in messages: icon = [None, self.get_icon_pixbuf(status_icon)][message == messages[0][0]] listmodel.append([icon, message, -1, None, action]) diff -ru catfish-0.3.2.orig/po/messages.pot catfish-0.3.2/po/messages.pot --- catfish-0.3.2.orig/po/messages.pot 2010-07-20 23:14:37.268678479 +0100 +++ catfish-0.3.2/po/messages.pot 2010-07-20 23:16:23.063753273 +0100 @@ -86,8 +86,10 @@ msgid "No files were found." msgstr "" -msgid "%s files found for \"%s\"." -msgstr "" +msgid "%(n)s file found for \"%(q)s\"." +msgid_plural "%(n)s files found for \"%(q)s\"." +msgstr[0] "" +msgstr[1] "" msgid "Fatal error, search was aborted." msgstr ""