diff --git a/web/lang/de_de.php b/web/lang/de_de.php index d0f9d079d..316c49e1d 100644 --- a/web/lang/de_de.php +++ b/web/lang/de_de.php @@ -146,7 +146,7 @@ $SLANG = array( 'BadLabelY' => 'Die y-Koordinate der Bezeichnung muss ganzzahlig 0 oder größer sein', 'BadMaxFPS' => 'Maximum-FPS muss eine positive Ganzzahl oder eine Gleitkommazahl sein', 'BadMotionFrameSkip' => 'Bewegungsrahmen Skip-Zählung muß eine ganze Zahl von null oder mehr betragen,', - 'BadNameChars' => 'Namen dürfen nur aus Buchstaben, Zahlen und Trenn- oder Unterstrichen bestehen', + 'BadNameChars' => 'Namen dürfen nur aus Buchstaben, Zahlen, Leerzeichen und Trenn- oder Unterstrichen bestehen', 'BadPalette' => 'Palette muss auf einen gültigen Wert gesetzt sein', // Added - 2009-03-31 'BadPath' => 'Der Pfad muss auf einen gültigen Wert eingestellt sein', 'BadPort' => 'Der Port muss auf eine gültige Zahl eingestellt sein', diff --git a/web/lang/dk_dk.php b/web/lang/dk_dk.php index 3ed0f1f7c..b04487d1b 100644 --- a/web/lang/dk_dk.php +++ b/web/lang/dk_dk.php @@ -145,7 +145,7 @@ $SLANG = array( 'BadLabelY' => 'Label Y co-ordinate must be set to an integer of zero or more', 'BadMaxFPS' => 'Maximum FPS must be a positive integer or floating point value', 'BadMotionFrameSkip' => 'Motion Frame skip count must be an integer of zero or more', - 'BadNameChars' => 'Navne må kun indeholde alphanumeric karaktere plus hyphen og underscore', + 'BadNameChars' => 'Navne må kun indeholde alphanumeric karaktere, rum plus hyphen og underscore', 'BadPalette' => 'Palette must be set to a valid value', // Added - 2009-03-31 'BadPath' => 'Path must be set to a valid value', 'BadPort' => 'Port must be set to a valid number', diff --git a/web/lang/en_gb.php b/web/lang/en_gb.php index 3dcb4e4e2..e2c2aac7c 100644 --- a/web/lang/en_gb.php +++ b/web/lang/en_gb.php @@ -156,7 +156,7 @@ $SLANG = array( 'BadLabelX' => 'Label X co-ordinate must be set to an integer of zero or more', 'BadLabelY' => 'Label Y co-ordinate must be set to an integer of zero or more', 'BadMaxFPS' => 'Maximum FPS must be a positive integer or floating point value', - 'BadNameChars' => 'Names may only contain alphanumeric characters plus hyphen and underscore', + 'BadNameChars' => 'Names may only contain alphanumeric characters plus spaces, hyphen and underscore', 'BadPalette' => 'Palette must be set to a valid value', 'BadColours' => 'Target colour must be set to a valid value', 'BadPath' => 'Path must be set to a valid value', diff --git a/web/lang/es_es.php b/web/lang/es_es.php index ff453bfe8..03489b381 100644 --- a/web/lang/es_es.php +++ b/web/lang/es_es.php @@ -144,7 +144,7 @@ $SLANG = array( 'BadLabelY' => 'La coordenada de la etiqueta Y debe ser un entero de cero o más', 'BadMaxFPS' => 'MPS máximos debe tener un valor entero positivo o de punto flotante', 'BadMotionFrameSkip' => 'Motion Frame skip count must be an integer of zero or more', - 'BadNameChars' => 'Los nombre sólo pueden contener carácteres alfanuméricos además de guiones y guiones bajos', + 'BadNameChars' => 'Los nombre sólo pueden contener carácteres alfanuméricos, espacios además de guiones y guiones bajos', 'BadPalette' => 'La paleta debe tener un valor válido', 'BadPath' => 'La ruta debe tener un valo válido', 'BadPort' => 'El puerto debe ser un número válido', diff --git a/web/lang/fr_fr.php b/web/lang/fr_fr.php index 504cf3926..6c4eaca22 100644 --- a/web/lang/fr_fr.php +++ b/web/lang/fr_fr.php @@ -150,7 +150,7 @@ $SLANG = array( 'BadLabelY' => 'La coordonnée Y pour l\'horodatage doit être un entier supérieur ou égal à 0', 'BadMaxFPS' => 'Le nombre maximum d\'i/s doit être un entier ou un nombre à virgule flottante supérieur à 0', 'BadMotionFrameSkip' => 'Le nombre d\'images à sauter en cas de détection doit être un entier supérieur ou égal à 0', - 'BadNameChars' => 'Les noms ne peuvent contenir que des lettres, chiffres, trait d\'union ou souligné', + 'BadNameChars' => 'Les noms ne peuvent contenir que des lettres, chiffres, les espaces, trait d\'union ou souligné', 'BadPalette' => 'La palette doit être définie', // Added - 2009-03-31 'BadPath' => 'Le chemin doit être défini', 'BadPort' => 'Le port doit être un nombre entier supérieur ou égal à 0', diff --git a/web/lang/he_il.php b/web/lang/he_il.php index ff6de4069..69f9348e5 100644 --- a/web/lang/he_il.php +++ b/web/lang/he_il.php @@ -144,7 +144,7 @@ $SLANG = array( 'BadLabelY' => 'Label Y co-ordinate must be set to an integer of zero or more', 'BadMaxFPS' => 'Maximum FPS must be a positive integer or floating point value', 'BadMotionFrameSkip' => 'Motion Frame skip count must be an integer of zero or more', - 'BadNameChars' => 'Names may only contain alphanumeric characters plus hyphen and underscore', + 'BadNameChars' => 'Names may only contain alphanumeric characters, spaces plus hyphen and underscore', 'BadPalette' => 'Palette must be set to a valid value', // Added - 2009-03-31 'BadPath' => 'Path must be set to a valid value', 'BadPort' => 'Port must be set to a valid number', diff --git a/web/lang/ja_jp.php b/web/lang/ja_jp.php index 24a85cf49..f3a8aa049 100644 --- a/web/lang/ja_jp.php +++ b/web/lang/ja_jp.php @@ -144,7 +144,7 @@ $SLANG = array( 'BadLabelY' => 'Label Y co-ordinate must be set to an integer of zero or more', 'BadMaxFPS' => 'Maximum FPS must be a positive integer or floating point value', 'BadMotionFrameSkip' => 'Motion Frame skip count must be an integer of zero or more', - 'BadNameChars' => 'Names may only contain alphanumeric characters plus hyphen and underscore', + 'BadNameChars' => 'Names may only contain alphanumeric characters, spaces plus hyphen and underscore', 'BadPalette' => 'Palette must be set to a valid value', // Added - 2009-03-31 'BadPath' => 'Path must be set to a valid value', 'BadPort' => 'Port must be set to a valid number', diff --git a/web/lang/nl_nl.php b/web/lang/nl_nl.php index ad37c877b..1535d02d8 100644 --- a/web/lang/nl_nl.php +++ b/web/lang/nl_nl.php @@ -144,7 +144,7 @@ $SLANG = array( 'BadLabelY' => 'Label Y co-ordinate moet een nummer nul of groter zijn', 'BadMaxFPS' => 'Maximum FPS moet een positieve integer of floating point waarde zijn', 'BadMotionFrameSkip' => 'Motion Frame skip count must be an integer of zero or more', - 'BadNameChars' => 'Namen mogen alleen alpha numerieke karakters bevatten plus hyphens en underscores', + 'BadNameChars' => 'Namen mogen alleen alpha numerieke karakters, ruimten bevatten plus hyphens en underscores', 'BadPalette' => 'Palette moet een geldige waarde zijn', // Added - 2009-03-31 'BadPath' => 'Pad moet een geldige waarde zijn', 'BadPort' => 'Port moet een geldige nummer zijn', diff --git a/web/lang/ru_ru.php b/web/lang/ru_ru.php index 199785a56..5bd27b991 100644 --- a/web/lang/ru_ru.php +++ b/web/lang/ru_ru.php @@ -145,7 +145,7 @@ $SLANG = array( 'BadLabelY' => 'Label Y co-ordinate must be set to an integer of zero or more', 'BadMaxFPS' => 'Maximum FPS must be a positive integer or floating point value', 'BadMotionFrameSkip' => 'Motion Frame skip count must be an integer of zero or more', - 'BadNameChars' => 'Names may only contain alphanumeric characters plus hyphen and underscore', + 'BadNameChars' => 'Names may only contain alphanumeric characters, spaces plus hyphen and underscore', 'BadPalette' => 'Palette must be set to a valid value', // Added - 2009-03-31 'BadPath' => 'Path must be set to a valid value', 'BadPort' => 'Port must be set to a valid number', diff --git a/web/lang/se_se.php b/web/lang/se_se.php index 337737ca9..afb14e11d 100644 --- a/web/lang/se_se.php +++ b/web/lang/se_se.php @@ -145,7 +145,7 @@ $SLANG = array( 'BadLabelY' => 'Etiketten för Y koordinaten måste sättas till ett heltal, 0 eller högre', 'BadMaxFPS' => 'Max. ramar/s måste vara ett positivt heltal eller ett flyttal', 'BadMotionFrameSkip' => 'Motion Frame skip count must be an integer of zero or more', - 'BadNameChars' => 'Namn kan endast innehålla alfanumeriska tecken, bindestreck och understreck', + 'BadNameChars' => 'Namn kan endast innehålla alfanumeriska tecken, utrymmen, bindestreck och understreck', 'BadPalette' => 'Palette must be set to a valid value', // Added - 2009-03-31 'BadPath' => 'Sökvägen måste innehålla ett giltigt värde', 'BadPort' => 'Porten måste innehålla ett giltigt nummer', diff --git a/web/skins/classic/views/js/monitor.js.php b/web/skins/classic/views/js/monitor.js.php index 1ceba3fff..833b8f441 100644 --- a/web/skins/classic/views/js/monitor.js.php +++ b/web/skins/classic/views/js/monitor.js.php @@ -59,7 +59,7 @@ function validateForm( form ) { var errors = new Array(); - if ( form.elements['newMonitor[Name]'].value.search( /[^\w-]/ ) >= 0 ) + if ( form.elements['newMonitor[Name]'].value.search( /[^\w- ]/ ) >= 0 ) errors[errors.length] = ""; else if ( form.elements.mid.value == 0 && monitorNames[form.elements['newMonitor[Name]'].value] ) errors[errors.length] = ""; diff --git a/web/skins/classic/views/monitor.php b/web/skins/classic/views/monitor.php index e716210ab..c55d77187 100644 --- a/web/skins/classic/views/monitor.php +++ b/web/skins/classic/views/monitor.php @@ -154,6 +154,8 @@ else $newX10Monitor = $x10Monitor; } +$newMonitor['Name'] = trim($newMonitor['Name']); + if ( $newMonitor['AnalysisFPS'] == '0.00' ) $newMonitor['AnalysisFPS'] = ''; if ( $newMonitor['MaxFPS'] == '0.00' )