i18n backend support

This commit is contained in:
Serghey Rodin 2013-01-24 12:49:22 +02:00
commit def0f35141
19 changed files with 347 additions and 23 deletions

View file

@ -112,6 +112,27 @@
</select>
</td>
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;" >
<?php print _('Language');?>
</td>
</tr>
<tr>
<td>
<select class="vst-list" name="v_language">
<?php
foreach ($languages as $key => $value) {
echo "\n\t\t\t\t\t\t\t\t\t<option value=\"".$value."\"";
$svalue = "'".$value."'";
if (( $value == $v_language ) || ( $svalue == $v_language)){
echo 'selected' ;
}
echo ">".$value."</option>\n";
}
?>
</select>
</td>
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;">
<?php print _('First Name');?>

View file

@ -107,6 +107,27 @@
</select>
</td>
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;" >
<?php print _('Language');?>
</td>
</tr>
<tr>
<td>
<select class="vst-list" name="v_language">
<?php
foreach ($languages as $key => $value) {
echo "\n\t\t\t\t\t\t\t\t\t<option value=\"".$value."\"";
$svalue = "'".$value."'";
if (( $value == $v_language ) || ( $svalue == $v_language)){
echo 'selected' ;
}
echo ">".$value."</option>\n";
}
?>
</select>
</td>
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;">
<?php print _('First Name');?>

View file

@ -112,12 +112,12 @@
buttons: {
Ok: function() {
$( this ).dialog( "close" );
}
},
}
});
});
</script>
<div id="dialog-message" title="Wellcome">
<div id="dialog-message" title="<?php print _('Welcome') ?>">
<p><?php print _('LOGGED_IN_AS',$key);?></p>
</div>
<?php

View file

@ -45,7 +45,7 @@
<table class="data-col1">
<tr><td style="padding: 24px 0 2px 4px;"><a class="data-date" ?><?php echo strftime("%d %b %Y", strtotime($v_date))?></a></td></tr>
<tr><td style="padding: 0 0 6px 4px;"><a class="data-date" ?><?php echo $v_time?></a></td></tr>
<tr><td style="padding: 0 0 0 21px;" class="data-<?php echo $v_status ?>"><b><?php echo $v_status ?></b></td></tr>
<tr><td style="padding: 0 0 0 21px;" class="data-<?php echo $v_status ?>"><b><?php echo _($v_status) ?></b></td></tr>
</table>
</td>
<td class="data-dotted" width="830px" style="vertical-align:top;">
@ -77,7 +77,7 @@
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;">
<?php print _('Email');?>
<?php print _('Email');?>
</td>
</tr>
<tr>
@ -85,9 +85,30 @@
<input type="text" size="20" class="vst-input" name="v_email" <?php if (!empty($v_email)) echo "value=".$v_email; ?>>
</td>
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;" >
<?php print _('Language');?>
</td>
</tr>
<tr>
<td>
<select class="vst-list" name="v_language">
<?php
foreach ($languages as $key => $value) {
echo "\n\t\t\t\t\t\t\t\t\t<option value=\"".$value."\"";
$svalue = "'".$value."'";
if (( $value == $v_language ) || ( $svalue == $v_language)){
echo 'selected' ;
}
echo ">".$value."</option>\n";
}
?>
</select>
</td>
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;">
<?php print _('Default Name Servers');?>
<?php print _('Default Name Servers');?>
</td>
</tr>
<tr>
@ -110,9 +131,13 @@
<input type="text" size="20" class="vst-input" name="v_ns4" <?php if (!empty($v_ns4)) echo "value=".$v_ns4; ?>>
</td>
</tr>
</table>
<table class="data-col2">
<tr>
<td style="padding: 24px 0 0 0;">
<td style="padding: 24px 0 0 0;" width="116px">
<input type="submit" class="button" name="save" value="<?php print _('Save');?>">
</td>
<td style="padding: 24px 0 0 0;">
<input type="button" class="button" value="<?php print _('Back');?>" onclick="<?php echo $back ?>">
</td>
</tr>