Multi lang, missed true/false

This commit is contained in:
Rinor Hoxha 2012-11-24 23:45:15 +00:00
parent a51583e455
commit fe1619b6e0
4 changed files with 17 additions and 9 deletions

View File

@ -27,6 +27,10 @@
$text['label-enabled']['en-us'] = 'Enabled';
$text['label-true']['en-us'] = 'true';
$text['label-false']['en-us'] = 'false';
$text['label-description']['en-us'] = 'Description';
//end: Basic

View File

@ -780,16 +780,16 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<td class='vtable' align='left'>\n";
echo " <select class='formfld' name='dialplan_enabled' style='width: 60%;'>\n";
if ($dialplan_enabled == "true") {
echo " <option value='true' SELECTED >true</option>\n";
echo " <option value='true' SELECTED >".$text['label-true']."</option>\n";
}
else {
echo " <option value='true'>true</option>\n";
echo " <option value='true'>".$text['label-true']."</option>\n";
}
if ($dialplan_enabled == "false") {
echo " <option value='false' SELECTED >false</option>\n";
echo " <option value='false' SELECTED >".$text['label-false']."</option>\n";
}
else {
echo " <option value='false'>false</option>\n";
echo " <option value='false'>".$text['label-false']."</option>\n";
}
echo " </select>\n";
echo "<br />\n";

View File

@ -65,7 +65,11 @@
$text['label-year']['en-us'] = 'Year';
$text['description-year']['en-us'] = 'Enter the year.';
//end: show_advanced
//end: show_advanced
$text['label-true']['en-us'] = 'true';
$text['label-false']['en-us'] = 'false';
$text['label-action-when-true']['en-us'] = 'Action when True';

View File

@ -1028,16 +1028,16 @@ echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <select class='formfld' name='dialplan_enabled' style='width: 60%;'>\n";
if ($dialplan_enabled == "true") {
echo " <option value='true' SELECTED >true</option>\n";
echo " <option value='true' SELECTED >".$text['label-true']."</option>\n";
}
else {
echo " <option value='true'>true</option>\n";
echo " <option value='true'>".$text['label-true']."</option>\n";
}
if ($dialplan_enabled == "false") {
echo " <option value='false' SELECTED >false</option>\n";
echo " <option value='false' SELECTED >".$text['label-false']."</option>\n";
}
else {
echo " <option value='false'>false</option>\n";
echo " <option value='false'>".$text['label-false']."</option>\n";
}
echo " </select>\n";
echo "<br />\n";