Use View::translate() instead of t() in the logout view script

refs #8626
This commit is contained in:
Eric Lippmann 2015-03-11 15:14:13 +01:00
parent 8df9520497
commit 0ff8416efb

View File

@ -9,9 +9,9 @@
--> -->
<div class="content"> <div class="content">
<div class="alert alert-warning" id="logout-status"> <div class="alert alert-warning" id="logout-status">
<b><?= t('Logging out...'); ?></b> <b><?= $this->translate('Logging out...'); ?></b>
<br> <br>
<?= t( <?= $this->translate(
'If this message does not disappear, it might be necessary to quit the' 'If this message does not disappear, it might be necessary to quit the'
. ' current session manually by clearing the cache, or by closing the current' . ' current session manually by clearing the cache, or by closing the current'
. ' browser session.' . ' browser session.'
@ -19,7 +19,7 @@
</div> </div>
<div class="container" > <div class="container" >
<a href="<?= $this->href('dashboard/index'); ?>"><?= t('Login'); ?></a> <a href="<?= $this->href('dashboard/index'); ?>"><?= $this->translate('Login'); ?></a>
</div> </div>
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
@ -41,7 +41,7 @@
} }
} catch (e) { } catch (e) {
} }
msg.html('<?= t('Logout successful!'); ?>'); msg.html('<?= $this->translate('Logout successful!'); ?>');
msg.removeClass(); msg.removeClass();
msg.addClass('alert alert-success'); msg.addClass('alert alert-success');
}); });