Commit 358cfb02 authored by Franco Fichtner's avatar Franco Fichtner

openvpn: translate verbose descriptions

I know, gettext('2') et al looks stupid, but not having a complete
gettext() wrapping only leads to bugs later on...
parent 4ff0b327
......@@ -31,18 +31,18 @@
global $openvpn_verbosity_level;
$openvpn_verbosity_level = array(
0 => "none",
1 => "default",
2 => "2",
3 => "3 (recommended)",
4 => "4",
5 => "5",
6 => "6",
7 => "7",
8 => "8",
9 => "9",
10 => "10",
11 => "11"
0 => gettext('0 (none)'),
1 => gettext('1 (default)'),
2 => gettext('2'),
3 => gettext('3 (recommended)'),
4 => gettext('4'),
5 => gettext('5'),
6 => gettext('6'),
7 => gettext('7'),
8 => gettext('8'),
9 => gettext('9'),
10 => gettext('10'),
11 => gettext('11'),
);
/*
......
......@@ -1000,16 +1000,13 @@ endif; ?>
<select name="verbosity_level" class="form-control">
<?php
foreach ($openvpn_verbosity_level as $verb_value => $verb_desc) :
$selected = "";
$selected = '';
if ($pconfig['verbosity_level'] == $verb_value) {
$selected = "selected=\"selected\"";
$selected = 'selected="selected"';
}
?>
<option value="<?=$verb_value;
?>" <?=$selected;
?>><?=$verb_desc;?></option>
<?php
endforeach; ?>
<option value="<?=$verb_value; ?>" <?=$selected; ?>><?=$verb_desc;?></option>
<?php endforeach; ?>
</select>
<div class="hidden" for="help_for_verbosity_level">
<?=gettext("Each level shows all info from the previous levels. Level 3 is recommended if you want a good summary of what's happening without being swamped by output"); ?>.<br /> <br />
......
......@@ -1667,16 +1667,13 @@ endif; ?>
<select name="verbosity_level" class="form-control">
<?php
foreach ($openvpn_verbosity_level as $verb_value => $verb_desc) :
$selected = "";
$selected = '';
if ($pconfig['verbosity_level'] == $verb_value) {
$selected = "selected=\"selected\"";
$selected = 'selected="selected"';
}
?>
<option value="<?=$verb_value;
?>" <?=$selected;
?>><?=$verb_desc;?></option>
<?php
endforeach; ?>
<option value="<?=$verb_value; ?>" <?=$selected; ?>><?=$verb_desc;?></option>
<?php endforeach; ?>
</select>
<div class="hidden" for="help_for_verbosity_level">
<?=gettext("Each level shows all info from the previous levels. Level 3 is recommended if you want a good summary of what's happening without being swamped by output"); ?>.<br /> <br />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment