Add l10n support to encryption settings

* fixes #16111
This commit is contained in:
Morris Jobke 2015-05-06 12:39:02 +02:00
parent 84960feee8
commit 5ef4a7606c
1 changed files with 5 additions and 5 deletions

View File

@ -340,9 +340,9 @@ if ($_['cronErrors']) {
<div id='selectEncryptionModules' class="<?php if (!$_['encryptionReady']) p('hidden'); ?>"> <div id='selectEncryptionModules' class="<?php if (!$_['encryptionReady']) p('hidden'); ?>">
<?php <?php
if (empty($_['encryptionModules'])) { if (empty($_['encryptionModules'])) {
p('No encryption module loaded, please load a encryption module in the app menu'); p($l->t('No encryption module loaded, please load a encryption module in the app menu'));
} else { ?> } else { ?>
<h3>Select default encryption module:</h3> <h3><?php p($l->t('Select default encryption module:')) ?></h3>
<fieldset id='encryptionModules'> <fieldset id='encryptionModules'>
<?php foreach ($_['encryptionModules'] as $id => $module): ?> <?php foreach ($_['encryptionModules'] as $id => $module): ?>
<input type="radio" id="<?php p($id) ?>" <input type="radio" id="<?php p($id) ?>"
@ -361,10 +361,10 @@ if ($_['cronErrors']) {
<div id="migrationWarning" class="<?php if ($_['encryptionReady']) p('hidden'); ?>"> <div id="migrationWarning" class="<?php if ($_['encryptionReady']) p('hidden'); ?>">
<?php <?php
if ($_['encryptionReady'] === false && $_['externalBackendsEnabled'] === true) { if ($_['encryptionReady'] === false && $_['externalBackendsEnabled'] === true) {
p('You need to migrate your encryption keys from the old encryption (ownCloud <= 8.0) to the new one. ' p($l->t('You need to migrate your encryption keys from the old encryption (ownCloud <= 8.0) to the new one. '
. 'Please enable the "ownCloud Default Encryption Module" and run \'occ encryption:migrate\''); . 'Please enable the "ownCloud Default Encryption Module" and run \'occ encryption:migrate\''));
} elseif ($_['encryptionReady'] === false && $_['externalBackendsEnabled'] === false) { } elseif ($_['encryptionReady'] === false && $_['externalBackendsEnabled'] === false) {
p('You need to migrate your encryption keys from the old encryption (ownCloud <= 8.0) to the new one.'); ?> p($l->t('You need to migrate your encryption keys from the old encryption (ownCloud <= 8.0) to the new one.')); ?>
<input type="submit" name="startmigration" id="startmigration" <input type="submit" name="startmigration" id="startmigration"
value="<?php p($l->t('Start migration')); ?>"/> value="<?php p($l->t('Start migration')); ?>"/>
<?php } ?> <?php } ?>