Add label size to monitor options (frontend part)

This commit adds the option "Font size" to monitor options in the
timestamp panel. Includes translations of "Font size" for german
(de_de), french (fr_fr) and spanish (es_es). All other language files
contain the english text.
pull/992/head
Robin Daermann 2015-08-10 13:00:18 +02:00
parent 7f3a07f21b
commit 078e18e6c5
22 changed files with 29 additions and 0 deletions

View File

@ -44,6 +44,7 @@ $statusData = array(
"LabelFormat" => true,
"LabelX" => true,
"LabelY" => true,
"LabelSize" => true,
"ImageBufferCount" => true,
"WarmupCount" => true,
"PreEventCount" => true,

View File

@ -676,6 +676,7 @@ $SLANG = array(
'TimestampLabelFormat' => '時間標示格式',
'TimestampLabelX' => '時間標示 X',
'TimestampLabelY' => '時間標示 Y',
'TimestampLabelSize' => 'Font Size',
'Today' => 'Today',
'Tools' => 'Tools',
'Total' => 'Total', // Added - 2011-06-16

View File

@ -672,6 +672,7 @@ $SLANG = array(
'TimestampLabelFormat' => '时间戳标签格式',
'TimestampLabelX' => '时间戳标签 X',
'TimestampLabelY' => '时间戳标签 Y',
'TimestampLabelSize' => 'Font Size',
'Today' => '今天',
'Tools' => '工具',
'Total' => 'Total', // Added - 2011-06-16

View File

@ -672,6 +672,7 @@ $SLANG = array(
'TimestampLabelFormat' => 'Formát èasového razítka',
'TimestampLabelX' => 'Èasové razítko X',
'TimestampLabelY' => 'Èasové razítko Y',
'TimestampLabelSize' => 'Font Size',
'Today' => 'Dnes',
'Tools' => 'Nástroje',
'Total' => 'Total', // Added - 2011-06-16

View File

@ -674,6 +674,7 @@ $SLANG = array(
'TimestampLabelFormat' => 'Format des Zeitstempels',
'TimestampLabelX' => 'Zeitstempel-X',
'TimestampLabelY' => 'Zeitstempel-Y',
'TimestampLabelSize' => 'Schriftgröße',
'Today' => 'Heute',
'Tools' => 'Werkzeuge',
'Total' => 'Total', // Added - 2011-06-16

View File

@ -673,6 +673,7 @@ $SLANG = array(
'TimestampLabelFormat' => 'Tidsstempel Mærkning´s Format',
'TimestampLabelX' => 'Tidsstempel Mærkning X',
'TimestampLabelY' => 'Tidsstempel Mærkning Y',
'TimestampLabelSize' => 'Font Size',
'Today' => 'Idag',
'Tools' => 'Tools',
'Total' => 'Total', // Added - 2011-06-16

View File

@ -670,6 +670,7 @@ $SLANG = array(
'TimestampLabelFormat' => 'Timestamp Label Format',
'TimestampLabelX' => 'Timestamp Label X',
'TimestampLabelY' => 'Timestamp Label Y',
'TimestampLabelSize' => 'Font Size',
'Timestamp' => 'Timestamp',
'TimeStamp' => 'Time Stamp',
'Time' => 'Time',

View File

@ -623,6 +623,7 @@ $SLANG = array(
'TimestampLabelFormat' => 'Formato Etiqueta Hora',
'TimestampLabelX' => 'Eje X Etiqueta Hora',
'TimestampLabelY' => 'Eje Y Etiqueta Hora',
'TimestampLabelSize' => 'Font Size',
'Today' => 'Today',
'Tools' => 'Herra.',
'Total' => 'Total', // Added - 2011-06-16

View File

@ -672,6 +672,7 @@ $SLANG = array(
'TimestampLabelFormat' => 'Formato de hora multinacional',
'TimestampLabelX' => 'Etiqueta de tiempo X',
'TimestampLabelY' => 'Etiqueta de tiempo Y',
'TimestampLabelSize' => 'Tamaño de fuente',
'Today' => 'Hoy',
'Tools' => 'Herramientas',
'Total' => 'Total',

View File

@ -673,6 +673,7 @@ $SLANG = array(
'TimestampLabelFormat' => 'Timestamp Label Format',
'TimestampLabelX' => 'Timestamp Label X',
'TimestampLabelY' => 'Timestamp Label Y',
'TimestampLabelSize' => 'Font Size',
'Today' => 'Täna',
'Tools' => 'Tööriistad',
'Total' => 'Summa', // Added - 2011-06-16

View File

@ -678,6 +678,7 @@ $SLANG = array(
'TimestampLabelFormat' => 'Format',
'TimestampLabelX' => 'Coordonnée X',
'TimestampLabelY' => 'Coordonnée Y',
'TimestampLabelSize' => 'Taille de police',
'Today' => 'Aujourd\'hui',
'Tools' => 'Outils',
'Total' => 'Total', // Added - 2011-06-16

View File

@ -672,6 +672,7 @@ $SLANG = array(
'TimestampLabelFormat' => 'Timestamp Label Format',
'TimestampLabelX' => 'Timestamp Label X',
'TimestampLabelY' => 'Timestamp Label Y',
'TimestampLabelSize' => 'Font Size',
'Today' => 'äéåí',
'Tools' => 'ëìéí',
'Total' => 'Total', // Added - 2011-06-16

View File

@ -715,6 +715,7 @@ $SLANG = array(
'TimestampLabelFormat' => 'Időbélyeg formátuma',
'TimestampLabelX' => 'Elhelyezés X pozició',
'TimestampLabelY' => 'Elhelyezés Y pozició',
'TimestampLabelSize' => 'Font Size',
'Today' => 'Ma',
'Tools' => 'Eszközök',
'Total' => 'Összes',

View File

@ -677,6 +677,7 @@ $SLANG = array(
'TimestampLabelFormat' => 'Formato etichetta timestamp',
'TimestampLabelX' => 'coordinata X etichetta',
'TimestampLabelY' => 'coordinata Y etichetta',
'TimestampLabelSize' => 'Font Size',
'Today' => 'Oggi ',
'Tools' => 'Strumenti',
'Total' => 'Total', // Added - 2011-06-16

View File

@ -672,6 +672,7 @@ $SLANG = array(
'TimestampLabelFormat' => 'À²Ñ½ÀÝÌß ×ÍÞÙ Ì«°Ï¯Ä',
'TimestampLabelX' => 'À²Ñ½ÀÝÌß ×ÍÞÙ X',
'TimestampLabelY' => 'À²Ñ½ÀÝÌß ×ÍÞÙ Y',
'TimestampLabelSize' => 'Font Size',
'Today' => 'Today',
'Tools' => '°Ù',
'Total' => 'Total', // Added - 2011-06-16

View File

@ -672,6 +672,7 @@ $SLANG = array(
'TimestampLabelFormat' => 'Tijdstempel Label Format',
'TimestampLabelX' => 'Tijdstempel Label X',
'TimestampLabelY' => 'Tijdstempel Label Y',
'TimestampLabelSize' => 'Font Size',
'Today' => 'Vandaag',
'Tools' => 'Gereedschappen',
'Total' => 'Totaal', // Added - 2011-06-16

View File

@ -672,6 +672,7 @@ $SLANG = array(
'TimestampLabelFormat' => 'Format etykiety czasu',
'TimestampLabelX' => 'Wsp. X etykiety czasu',
'TimestampLabelY' => 'Wsp. Y etykiety czasu',
'TimestampLabelSize' => 'Font Size',
'Today' => 'Today',
'Tools' => 'Narzêdzia',
'Total' => 'Total', // Added - 2011-06-16

View File

@ -612,6 +612,7 @@ $SLANG = array(
'TimestampLabelFormat' => 'Formato de etiqueta de tempo',
'TimestampLabelX' => 'posição de etiqueta X',
'TimestampLabelY' => 'posição de etiqueta Y',
'TimestampLabelSize' => 'Font Size',
'Today' => 'Today',
'Tools' => 'Ferramentas',
'Total' => 'Total', // Added - 2011-06-16

View File

@ -643,6 +643,7 @@ $SLANG = array(
'TimestampLabelFormat' => 'Format eticheta format timp',
'TimestampLabelX' => 'Format timp eticheta X',
'TimestampLabelY' => 'Format timp eticheta Y',
'TimestampLabelSize' => 'Font Size',
'Today' => 'Azi',
'Tools' => 'Unelte',
'Total' => 'Total', // Added - 2011-06-16

View File

@ -672,6 +672,7 @@ $SLANG = array(
'TimestampLabelFormat' => 'æÏÒÍÁÔ ÍÅÔËÉ',
'TimestampLabelX' => 'X-ËÏÏÒÄÉÎÁÔÁ ÍÅÔËÉ',
'TimestampLabelY' => 'Y-ËÏÏÒÄÉÎÁÔÁ ÍÅÔËÉ',
'TimestampLabelSize' => 'Font Size',
'Today' => 'Today',
'Tools' => 'éÎÓÔÒÕÍÅÎÔÙ',
'Total' => 'Total', // Added - 2011-06-16

View File

@ -673,6 +673,7 @@ $SLANG = array(
'TimestampLabelFormat' => 'Format på tidsstämpel',
'TimestampLabelX' => 'Värde på tidsstämpel X',
'TimestampLabelY' => 'Värde på tidsstämpel Y',
'TimestampLabelSize' => 'Font Size',
'Today' => 'Idag',
'Tools' => 'Verktyg',
'Total' => 'Total', // Added - 2011-06-16

View File

@ -80,6 +80,7 @@ if ( ! empty($_REQUEST['mid']) ) {
'LabelFormat' => '%N - %d/%m/%y %H:%M:%S',
'LabelX' => 0,
'LabelY' => 0,
'LabelSize' => 1,
'ImageBufferCount' => 50,
'WarmupCount' => 25,
'PreEventCount' => 25,
@ -423,6 +424,11 @@ $fastblendopts_alarm = array(
"50% (Alarm lasts a moment)" => 50
);
$label_size = array(
"Default" => 1,
"Large" => 2
);
xhtmlHeaders(__FILE__, translate('Monitor')." - ".validHtmlStr($monitor['Name']) );
?>
<body>
@ -556,6 +562,7 @@ if ( $tab != 'timestamp' )
<input type="hidden" name="newMonitor[LabelFormat]" value="<?php echo validHtmlStr($newMonitor['LabelFormat']) ?>"/>
<input type="hidden" name="newMonitor[LabelX]" value="<?php echo validHtmlStr($newMonitor['LabelX']) ?>"/>
<input type="hidden" name="newMonitor[LabelY]" value="<?php echo validHtmlStr($newMonitor['LabelY']) ?>"/>
<input type="hidden" name="newMonitor[LabelSize]" value="<?php echo validHtmlStr($newMonitor['LabelSize']) ?>"/>
<?php
}
if ( $tab != 'buffers' )
@ -815,6 +822,7 @@ switch ( $tab )
<tr><td><?php echo translate('TimestampLabelFormat') ?></td><td><input type="text" name="newMonitor[LabelFormat]" value="<?php echo validHtmlStr($newMonitor['LabelFormat']) ?>" size="32"/></td></tr>
<tr><td><?php echo translate('TimestampLabelX') ?></td><td><input type="text" name="newMonitor[LabelX]" value="<?php echo validHtmlStr($newMonitor['LabelX']) ?>" size="4"/></td></tr>
<tr><td><?php echo translate('TimestampLabelY') ?></td><td><input type="text" name="newMonitor[LabelY]" value="<?php echo validHtmlStr($newMonitor['LabelY']) ?>" size="4"/></td></tr>
<tr><td><?php echo translate('TimestampLabelSize') ?></td><td><select name="newMonitor[LabelSize]"><?php foreach ( $label_size as $name => $value ) { ?><option value="<?php echo $value ?>"<?php if ( $value == $newMonitor['LabelSize'] ) { ?> selected="selected"<?php } ?>><?php echo $name ?></option><?php } ?></select></td></tr>
<?php
break;
}