Fix typo in JavaScript function name
authorMatthias Schmidt <gravatronics@live.com>
Thu, 7 May 2020 13:15:13 +0000 (15:15 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 7 May 2020 13:15:13 +0000 (15:15 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/I18n/Plural.js
wcfsetup/install/files/js/WoltLabSuite/Core/Template.grammar.jison
wcfsetup/install/files/js/WoltLabSuite/Core/Template.grammar.js

index 9fc456cd555c7cfc004a53211a8937867eb7c5df..26dbbad627f2e9299117ab057228b16a6879be88 100644 (file)
@@ -48,7 +48,7 @@ define(['StringUtil'], function(StringUtil) {
                 * @param       {object}        parameters
                 * @see         wcf\system\template\plugin\PluralFunctionTemplatePlugin::execute()
                 */
-               getCategoryFromTemplateParmeters: function(parameters) {
+               getCategoryFromTemplateParameters: function(parameters) {
                        if (!parameters['value'] ) {
                                throw new Error('Missing parameter value');
                        }
index b080a3a964e78aca3ecfbd7920699bd107c59969..2087181326faf8c28d0c2a923ac91f0774ef1a7e 100644 (file)
@@ -125,7 +125,7 @@ COMMAND:
                + "return (looped ? result : " + ($5 || "''") + "); })()"
        }
 |      '{plural' PLURAL_PARAMETER_LIST '}' {
-               $$ = "I18nPlural.getCategoryFromTemplateParmeters({"
+               $$ = "I18nPlural.getCategoryFromTemplateParameters({"
                var needsComma = false;
                for (var key in $2) {
                        if (objOwns($2, key)) {
index 56e15a7a436e2a84a839e8df7e070c8e60daab6c..876e292cc83a6d28cd1ce8291ed5c70373936aff 100644 (file)
@@ -85,7 +85,7 @@ case 11:
 break;
 case 12:
 
-               this.$ = "I18nPlural.getCategoryFromTemplateParmeters({"
+               this.$ = "I18nPlural.getCategoryFromTemplateParameters({"
                var needsComma = false;
                for (var key in $$[$0-1]) {
                        if (objOwns($$[$0-1], key)) {