Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2012-11-14 20:13:06 +0400
committerYann Leboulanger <asterix@lagaule.org>2012-11-14 20:13:06 +0400
commit7cd239b993e493b54d7faf8c16eeff88b3edeb35 (patch)
tree21d21f652188fff2252b05e3a5bdc154d8d28aa3
parentb66c30d5734c3c7096771a88989ea493d19d019c (diff)
[chrysn] pluralize some strings
-rw-r--r--po/de.po18
-rw-r--r--src/dialogs.py7
2 files changed, 19 insertions, 6 deletions
diff --git a/po/de.po b/po/de.po
index d86358644..d472b72e3 100644
--- a/po/de.po
+++ b/po/de.po
@@ -7544,13 +7544,23 @@ msgstr ""
#: ../src/dialogs.py:3477
#, python-format
-msgid "Added %s contacts"
-msgstr "%s Kontakte hinzugefügt"
+msgid "Added %d contacts"
+msgstr "%d Kontakte hinzugefügt"
+
+#: ../src/dialogs.py:3477
+#, python-format
+msgid "Added %d contact"
+msgstr "%d Kontakt hinzugefügt"
+
+#: ../src/dialogs.py:3514
+#, python-format
+msgid "Removed %d contacts"
+msgstr "%d Kontakte entfernt"
#: ../src/dialogs.py:3514
#, python-format
-msgid "Removed %s contacts"
-msgstr "%s Kontakte entfernt"
+msgid "Removed %d contact"
+msgstr "%d Kontakt entfernt"
#: ../src/dialogs.py:3554 ../src/dialogs.py:3731
#, python-format
diff --git a/src/dialogs.py b/src/dialogs.py
index f947bacba..2cf0e66f0 100644
--- a/src/dialogs.py
+++ b/src/dialogs.py
@@ -57,6 +57,7 @@ from advanced_configuration_window import AdvancedConfigurationWindow
from common import gajim
from common import helpers
+from common import i18n
from common import dataforms
from common.exceptions import GajimGeneralException
@@ -3558,7 +3559,8 @@ class RosterItemExchangeWindow:
self.account, groups=groups, nickname=model[iter_][2],
auto_auth=True)
iter_ = model.iter_next(iter_)
- InformationDialog(_('Added %s contacts') % str(a))
+ InformationDialog(i18n.ngettext('Added %d contact',
+ 'Added %d contacts', a, a, a))
elif self.action == 'modify':
a = 0
while iter_:
@@ -3595,7 +3597,8 @@ class RosterItemExchangeWindow:
gajim.interface.roster.remove_contact(jid, self.account)
gajim.contacts.remove_jid(self.account, jid)
iter_ = model.iter_next(iter_)
- InformationDialog(_('Removed %s contacts') % str(a))
+ InformationDialog(i18n.ngettext('Removed %d contact',
+ 'Removed %d contacts', a, a, a))
self.window.destroy()
def on_cancel_button_clicked(self, widget):