From 7e77c6828ac6bd0fc91068ba97fa15b1a9ee70fa Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 21 Feb 2017 18:55:48 +0100 Subject: [PATCH] more correct pluralization --- www/common/toolbar.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/common/toolbar.js b/www/common/toolbar.js index e576b0246..1669d8465 100644 --- a/www/common/toolbar.js +++ b/www/common/toolbar.js @@ -222,7 +222,7 @@ define([ editUsersNames.push(''); viewText += Messages.and + ' '; } - var viewerText = numberOfViewUsers > 1 ? Messages.viewers : Messages.viewer; + var viewerText = numberOfViewUsers !== 1 ? Messages.viewers : Messages.viewer; viewText += numberOfViewUsers + ' ' + viewerText + ''; editUsersNames.push(viewText); } @@ -237,8 +237,8 @@ define([ // Update the buttons var fa_editusers = ''; var fa_viewusers = ''; - var viewersText = numberOfViewUsers > 1 ? Messages.viewers : Messages.viewer; - var editorsText = numberOfEditUsers > 1 ? Messages.editors : Messages.editor; + var viewersText = numberOfViewUsers !== 1 ? Messages.viewers : Messages.viewer; + var editorsText = numberOfEditUsers !== 1 ? Messages.editors : Messages.editor; var $span = $('', {'class': 'large'}).html(fa_editusers + ' ' + numberOfEditUsers + ' ' + editorsText + '   ' + fa_viewusers + ' ' + numberOfViewUsers + ' ' + viewersText); var $spansmall = $('', {'class': 'narrow'}).html(fa_editusers + ' ' + numberOfEditUsers + '   ' + fa_viewusers + ' ' + numberOfViewUsers); $userButtons.find('.buttonTitle').html('').append($span).append($spansmall);