ngettext now works
This commit is contained in:
parent
8eb530b91c
commit
fb2053ecd9
|
@ -137,11 +137,11 @@ class GroupchatWindow(chat.Chat):
|
||||||
|
|
||||||
if len(names): #if one or more rooms connected
|
if len(names): #if one or more rooms connected
|
||||||
joined_names = ', '.join(names)
|
joined_names = ', '.join(names)
|
||||||
pritext = ngettext('Are you sure you want to leave room "%s"?' % \
|
pritext = i18n._translation.ngettext('Are you sure you want to leave room "%s"?' % \
|
||||||
names[0], 'Are you sure you want to leave rooms "%s"?' % \
|
names[0], 'Are you sure you want to leave rooms "%s"?' % \
|
||||||
joined_names, len(names))
|
joined_names, len(names))
|
||||||
|
|
||||||
sectext = ngettext(
|
sectext = i18n._translation.ngettext(
|
||||||
'If you close this window, you will be disconnected from this room.',
|
'If you close this window, you will be disconnected from this room.',
|
||||||
'If you close this window, you will be disconnected from these rooms.',
|
'If you close this window, you will be disconnected from these rooms.',
|
||||||
len(names))
|
len(names))
|
||||||
|
|
Loading…
Reference in New Issue