mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-08-24 05:59:23 -04:00
small code style improvements, trying to get phpunit with hhvm to work in travis
This commit is contained in:
parent
9267e281f5
commit
8e11f0873c
4 changed files with 8 additions and 7 deletions
|
@ -328,10 +328,10 @@ $(function() {
|
|||
{
|
||||
messageId = args[0];
|
||||
}
|
||||
if (messageId.length == 0) return messageId;
|
||||
if (messageId.length === 0) return messageId;
|
||||
if (!this.translations.hasOwnProperty(messageId))
|
||||
{
|
||||
if (this.language != 'en') console.debug(
|
||||
if (this.language !== 'en') console.debug(
|
||||
'Missing translation for: ' + messageId
|
||||
);
|
||||
this.translations[messageId] = args[0];
|
||||
|
@ -366,10 +366,10 @@ $(function() {
|
|||
case 'zh':
|
||||
return (n > 1 ? 1 : 0);
|
||||
case 'pl':
|
||||
return (n == 1 ? 0 : n%10 >= 2 && n %10 <=4 && (n%100 < 10 || n%100 >= 20) ? 1 : 2);
|
||||
return (n === 1 ? 0 : n%10 >= 2 && n %10 <=4 && (n%100 < 10 || n%100 >= 20) ? 1 : 2);
|
||||
// en, de
|
||||
default:
|
||||
return (n != 1 ? 1 : 0);
|
||||
return (n !== 1 ? 1 : 0);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue