Fixed usage of language variable in JS
authorAlexander Ebert <ebert@woltlab.com>
Fri, 16 Sep 2011 11:25:39 +0000 (13:25 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 16 Sep 2011 11:25:39 +0000 (13:25 +0200)
wcfsetup/install/files/acp/js/WCF.ACP.js
wcfsetup/install/files/acp/templates/header.tpl

index c33d1956e2e7b50825f7504a08bf15db05451231..09e256cb51d65fb895f59fdd6b1345daa573fdbd 100644 (file)
@@ -206,7 +206,7 @@ WCF.ACP.PackageInstallation.prototype = {
                // handle success
                if ($data.step == 'success') {
                        var $id = WCF.getRandomID();
-                       $('#packageInstallationInnerContent').append('<div class="formSubmit"><input type="button" id="' + $id + '" value="{lang}wcf.global.button.next{/lang}" /></div>');
+                       $('#packageInstallationInnerContent').append('<div class="formSubmit"><input type="button" id="' + $id + '" value="' + WCF.Language.get('wcf.global.button.next') + '" /></div>');
                        
                        $('#' + $id).click($.proxy(function() {
                                window.location.href = "index.php?page=PackageList" + SID_ARG_2ND;
@@ -234,7 +234,7 @@ WCF.ACP.PackageInstallation.prototype = {
                        // create button to handle next step
                        if ($data.step && $data.node) {
                                var $id = WCF.getRandomID();
-                               $('#packageInstallationInnerContent').append('<div class="formSubmit"><input type="button" id="' + $id + '" value="{lang}wcf.global.button.next{/lang}" /></div>');
+                               $('#packageInstallationInnerContent').append('<div class="formSubmit"><input type="button" id="' + $id + '" value="' + WCF.Language.get('wcf.global.button.next') + '" /></div>');
                                
                                $('#' + $id).click($.proxy(function() {
                                        // collect form values
@@ -627,4 +627,4 @@ WCF.ACP.Worker.prototype = {
                        this._dialog.wcfDialog('redraw');
                }
        }
-};
\ No newline at end of file
+};
index e2107f749278ac855af02ecfa2fb911f1b1f9ed4..957de57765ef22bd3d1ed94c57be01b6440d148e 100644 (file)
@@ -56,6 +56,7 @@
                        {/if}
                        
                        WCF.Language.addObject({
+                               'wcf.global.button.next': '{lang}wcf.global.button.next{/lang}',
                                'wcf.global.loading': '{lang}wcf.global.loading{/lang}',
                                'wcf.global.date.relative.minutes': '{capture assign=relativeMinutes}{lang}wcf.global.date.relative.minutes{/lang}{/capture}{@$relativeMinutes|encodeJS}',
                                'wcf.global.date.relative.hours': '{capture assign=relativeHours}{lang}wcf.global.date.relative.hours{/lang}{/capture}{@$relativeHours|encodeJS}',
                        
                        <!-- CONTENT -->
                        <section id="content" class="content">
-                               
\ No newline at end of file
+