From cadb5e5ebcb72929c2dda7c9e2e42e102cd22da0 Mon Sep 17 00:00:00 2001 From: Browniebraun Date: Thu, 31 Mar 2016 21:17:50 +0200 Subject: [PATCH] make use of i18n function calls. --- include/global_form.php | 971 ++++++++++++++++++++-------------------- 1 file changed, 484 insertions(+), 487 deletions(-) diff --git a/include/global_form.php b/include/global_form.php index 8f8e55c993..4f5a14e9b3 100644 --- a/include/global_form.php +++ b/include/global_form.php @@ -32,36 +32,36 @@ $fields_profile_edit = array( 'name' => array( 'method' => 'textbox', - 'friendly_name' => 'Name', - 'description' => 'A useful name for this Data Storage and Polling Profile.', + 'friendly_name' => __('Name'), + 'description' => __('A useful name for this Data Storage and Polling Profile.'), 'value' => '|arg1:name|', 'max_length' => '255', 'size' => '80', - 'default' => 'New Profile' + 'default' => __('New Profile') ), 'step' => array( 'method' => 'drop_array', - 'friendly_name' => 'Polling Interval', - 'description' => 'The frequency that data will be collected from the Data Source?', + 'friendly_name' => __('Polling Interval'), + 'description' => __('The frequency that data will be collected from the Data Source?'), 'array' => $sampling_intervals, 'value' => '|arg1:step|', 'default' => read_config_option('poller_interval'), ), 'heartbeat' => array( 'method' => 'drop_array', - 'friendly_name' => 'Heartbeat', - 'description' => 'How long can data be missing before RRDtool records unknown data. + 'friendly_name' => __('Heartbeat'), + 'description' => __('How long can data be missing before RRDtool records unknown data. Increase this value if your Data Source is unstable and you wish to carry forward old data rather than show gaps in your graphs. This value is multiplied by the - X-Files Factor to determine the actual amount of time.', + X-Files Factor to determine the actual amount of time.'), 'array' => $heartbeats, 'value' => '|arg1:heartbeat|', 'default' => (read_config_option('poller_interval') * 2), ), 'x_files_factor' => array( 'method' => 'textbox', - 'friendly_name' => 'X-Files Factor', - 'description' => 'The amount of unknown data that can still be regarded as known.', + 'friendly_name' => __('X-Files Factor'), + 'description' => __('The amount of unknown data that can still be regarded as known.'), 'value' => '|arg1:x_files_factor|', 'max_length' => '10', 'size' => '7', @@ -69,22 +69,22 @@ ), 'consolidation_function_id' => array( 'method' => 'drop_multi', - 'friendly_name' => 'Consolidation Functions', - 'description' => 'How data is to be entered in RRAs.', + 'friendly_name' => __('Consolidation Functions'), + 'description' => __('How data is to be entered in RRAs.'), 'array' => $consolidation_functions, 'sql' => 'SELECT consolidation_function_id AS id, data_source_profile_id FROM data_source_profiles_cf WHERE data_source_profile_id="|arg1:id|"', ), 'default' => array( 'method' => 'checkbox', - 'friendly_name' => 'Default', - 'description' => 'Is this the default storage profile?', + 'friendly_name' => __('Default'), + 'description' => __('Is this the default storage profile?'), 'value' => '|arg1:default|', 'default' => '', ), 'size' => array( 'method' => 'other', - 'friendly_name' => 'RRDfile Size (in Bytes)', - 'description' => 'Based upon the number of Rows in all RRAs and the number of Consolidation Functions selected, the size of this entire in the RRDfile.', + 'friendly_name' => __('RRDfile Size (in Bytes)'), + 'description' => __('Based upon the number of Rows in all RRAs and the number of Consolidation Functions selected, the size of this entire in the RRDfile.'), 'value' => '' ), 'id' => array( @@ -101,25 +101,25 @@ $fields_profile_rra_edit = array( 'name' => array( 'method' => 'textbox', - 'friendly_name' => 'Name', - 'description' => 'How data is to be entered in RRAs.', + 'friendly_name' => __('Name'), + 'description' => __('How data is to be entered in RRAs.'), 'value' => '|arg1:name|', 'max_length' => '100', 'size' => '60', - 'default' => 'New Profile RRA' + 'default' => __('New Profile RRA') ), 'steps' => array( 'method' => 'drop_array', - 'friendly_name' => 'Aggregation Level', - 'description' => 'The number of samples required prior to filling a row in the RRA specification. The first RRA should always have a value of 1.', + 'friendly_name' => __('Aggregation Level'), + 'description' => __('The number of samples required prior to filling a row in the RRA specification. The first RRA should always have a value of 1.'), 'array' => $aggregation_levels, 'value' => '|arg1:steps|', 'default' => read_config_option('poller_interval'), ), 'rows' => array( 'method' => 'textbox', - 'friendly_name' => 'Rows', - 'description' => 'How many generations data is kept in the RRA.', + 'friendly_name' => __('Rows'), + 'description' => __('How many generations data is kept in the RRA.'), 'value' => '|arg1:rows|', 'max_length' => '12', 'size' => '10', @@ -127,14 +127,14 @@ ), 'timespan' => array( 'method' => 'other', - 'friendly_name' => 'Effective Retention', - 'description' => 'Based upon the Aggregation Level, the Rows, and the Polling Interval the amount of data that will be retained in the RRA', + 'friendly_name' => __('Effective Retention'), + 'description' => __('Based upon the Aggregation Level, the Rows, and the Polling Interval the amount of data that will be retained in the RRA'), 'value' => '' ), 'size' => array( 'method' => 'other', - 'friendly_name' => 'RRA Size (in Bytes)', - 'description' => 'Based upon the number of Rows and the number of Consolidation Functions selected, the size of this RRA in the RRDfile.', + 'friendly_name' => __('RRA Size (in Bytes)'), + 'description' => __('Based upon the number of Rows and the number of Consolidation Functions selected, the size of this RRA in the RRDfile.'), 'value' => '' ), 'id' => array( @@ -151,8 +151,8 @@ $fields_cdef_edit = array( 'name' => array( 'method' => 'textbox', - 'friendly_name' => 'Name', - 'description' => 'A useful name for this CDEF.', + 'friendly_name' => __('Name'), + 'description' => __('A useful name for this CDEF.'), 'value' => '|arg1:name|', 'max_length' => '255', 'size' => '80' @@ -171,24 +171,24 @@ $fields_color_edit = array( 'name' => array( 'method' => 'textbox', - 'friendly_name' => 'Name', - 'description' => 'The name of this Color.', + 'friendly_name' => __('Name'), + 'description' => __('The name of this Color.'), 'value' => '|arg1:name|', 'max_length' => '40', 'size' => '40' ), 'hex' => array( 'method' => 'textbox', - 'friendly_name' => 'Hex Value', - 'description' => 'The hex value for this color; valid range: 000000-FFFFFF.', + 'friendly_name' => __('Hex Value'), + 'description' => __('The hex value for this color; valid range: 000000-FFFFFF.'), 'value' => '|arg1:hex|', 'max_length' => '6', 'size' => '5' ), 'read_only' => array( 'method' => 'hidden', - 'friendly_name' => 'Read Only', - 'description' => 'Any named color should be read only.', + 'friendly_name' => __('Read Only'), + 'description' => __('Any named color should be read only.'), 'value' => '|arg1:read_only|', 'default' => '' ), @@ -212,23 +212,23 @@ $fields_data_input_edit = array( 'name' => array( 'method' => 'textbox', - 'friendly_name' => 'Name', - 'description' => 'Enter a meaningful name for this data input method.', + 'friendly_name' => __('Name'), + 'description' => __('Enter a meaningful name for this data input method.'), 'value' => '|arg1:name|', 'max_length' => '255', 'size' => '80' ), 'type_id' => array( 'method' => 'drop_array', - 'friendly_name' => 'Input Type', - 'description' => 'Choose the method you wish to use to collect data for this Data Input method.', + 'friendly_name' => __('Input Type'), + 'description' => __('Choose the method you wish to use to collect data for this Data Input method.'), 'value' => '|arg1:type_id|', 'array' => $input_types, ), 'input_string' => array( 'method' => 'textarea', - 'friendly_name' => 'Input String', - 'description' => 'The data that is sent to the script, which includes the complete path to the script and input sources in <> brackets.', + 'friendly_name' => __('Input String'), + 'description' => __('The data that is sent to the script, which includes the complete path to the script and input sources in <> brackets.'), 'value' => '|arg1:input_string|', 'textarea_rows' => '4', 'textarea_cols' => '60', @@ -249,8 +249,8 @@ $fields_data_input_field_edit_1 = array( 'data_name' => array( 'method' => 'drop_array', - 'friendly_name' => 'Field [|arg1:|]', - 'description' => 'Choose the associated field from the |arg1:| field.', + 'friendly_name' => __('Field [%s]', '|arg1:|'), + 'description' => __('Choose the associated field from the %s field.', '|arg1:|'), 'value' => '|arg3:data_name|', 'array' => '|arg2:|', ) @@ -260,8 +260,8 @@ $fields_data_input_field_edit_2 = array( 'data_name' => array( 'method' => 'textbox', - 'friendly_name' => 'Field [|arg1:|]', - 'description' => 'Enter a name for this |arg1:| field.', + 'friendly_name' => __('Field [%s]', '|arg1:|'), + 'description' => __('Enter a name for this %s field.', '|arg1:|'), 'value' => '|arg2:data_name|', 'max_length' => '50', 'size' => '40' @@ -272,40 +272,40 @@ $fields_data_input_field_edit = array( 'name' => array( 'method' => 'textbox', - 'friendly_name' => 'Friendly Name', - 'description' => 'Enter a meaningful name for this data input method.', + 'friendly_name' => __('Friendly Name'), + 'description' => __('Enter a meaningful name for this data input method.'), 'value' => '|arg1:name|', 'max_length' => '200', 'size' => '80' ), 'update_rra' => array( 'method' => 'checkbox', - 'friendly_name' => 'Update RRD File', - 'description' => 'Whether data from this output field is to be entered into the rrd file.', + 'friendly_name' => __('Update RRD File'), + 'description' => __('Whether data from this output field is to be entered into the rrd file.'), 'value' => '|arg1:update_rra|', 'default' => 'on', 'form_id' => '|arg1:id|' ), 'regexp_match' => array( 'method' => 'textbox', - 'friendly_name' => 'Regular Expression Match', - 'description' => 'If you want to require a certain regular expression to be matched againt input data, enter it here (preg_match format).', + 'friendly_name' => __('Regular Expression Match'), + 'description' => __('If you want to require a certain regular expression to be matched againt input data, enter it here (preg_match format).'), 'value' => '|arg1:regexp_match|', 'max_length' => '200', 'size' => '80' ), 'allow_nulls' => array( 'method' => 'checkbox', - 'friendly_name' => 'Allow Empty Input', - 'description' => 'Check here if you want to allow NULL input in this field from the user.', + 'friendly_name' => __('Allow Empty Input'), + 'description' => __('Check here if you want to allow NULL input in this field from the user.'), 'value' => '|arg1:allow_nulls|', 'default' => '', 'form_id' => false ), 'type_code' => array( 'method' => 'textbox', - 'friendly_name' => 'Special Type Code', - 'description' => 'If this field should be treated specially by host templates, indicate so here. Valid keywords for this field are ' . (str_replace(")", "'", str_replace("(", "'", str_replace("|", ", ", $valid_host_fields)))), + 'friendly_name' => __('Special Type Code'), + 'description' => __('If this field should be treated specially by host templates, indicate so here. Valid keywords for this field are %s', str_replace(")", "'", str_replace("(", "'", str_replace("|", ", ", $valid_host_fields))) ), 'value' => '|arg1:type_code|', 'max_length' => '40', 'size' => '20' @@ -336,8 +336,8 @@ $fields_data_template_template_edit = array( 'template_name' => array( 'method' => 'textbox', - 'friendly_name' => 'Name', - 'description' => 'The name given to this data template.', + 'friendly_name' => __('Name'), + 'description' => __('The name given to this data template.'), 'value' => '|arg1:name|', 'max_length' => '150', 'size' => '80' @@ -363,55 +363,55 @@ /* file: (data_sources.php|data_templates.php), action: (ds|template)_edit */ $struct_data_source = array( 'name' => array( - 'friendly_name' => 'Name', + 'friendly_name' => __('Name'), 'method' => 'textbox', 'max_length' => '250', 'size' => '80', 'default' => '', - 'description' => 'Choose a name for this data source. It can include replacement variables such as |host_description| or |query_fieldName|. - For a complete list of supported replacement tags, please see the Cacti documentation.', + 'description' => __('Choose a name for this data source. It can include replacement variables such as |host_description| or |query_fieldName|. + For a complete list of supported replacement tags, please see the Cacti documentation.'), 'flags' => '' ), 'data_source_path' => array( - 'friendly_name' => 'Data Source Path', + 'friendly_name' => __('Data Source Path'), 'method' => 'textbox', 'max_length' => '255', 'size' => '80', 'default' => '', - 'description' => 'The full path to the RRD file.', + 'description' => __('The full path to the RRD file.'), 'flags' => 'NOTEMPLATE' ), 'data_input_id' => array( - 'friendly_name' => 'Data Input Method', + 'friendly_name' => __('Data Input Method'), 'method' => 'drop_sql', 'sql' => 'SELECT id,name FROM data_input ORDER BY name', 'default' => '', - 'none_value' => 'None', - 'description' => 'The script/source used to gather data for this data source.', + 'none_value' => __('None'), + 'description' => __('The script/source used to gather data for this data source.'), 'flags' => 'ALWAYSTEMPLATE' ), 'data_source_profile_id' => array( - 'friendly_name' => 'Data Source Profile', + 'friendly_name' => __('Data Source Profile'), 'method' => 'drop_sql', - 'description' => 'Select the Data Source Profile. The Data Source Profile controls polling interval, the data aggregation, and retention policy for the resulting Data Sources.', + 'description' => __('Select the Data Source Profile. The Data Source Profile controls polling interval, the data aggregation, and retention policy for the resulting Data Sources.'), 'sql' => 'SELECT id, name FROM data_source_profiles ORDER BY name', 'none_val' => 'N/A', 'flags' => '' ), 'rrd_step' => array( - 'friendly_name' => 'Step', + 'friendly_name' => __('Step'), 'method' => 'hidden', 'max_length' => '10', 'size' => '10', 'default' => '300', - 'description' => 'The amount of time in seconds between expected updates.', + 'description' => __('The amount of time in seconds between expected updates.'), 'flags' => '' ), 'active' => array( - 'friendly_name' => 'Data Source Active', + 'friendly_name' => __('Data Source Active'), 'method' => 'checkbox', 'default' => 'on', - 'description' => 'Whether Cacti should gather data for this data source or not.', + 'description' => __('Whether Cacti should gather data for this data source or not.'), 'flags' => '' ) ); @@ -419,50 +419,49 @@ /* file: (data_sources.php|data_templates.php), action: (ds|template)_edit */ $struct_data_source_item = array( 'data_source_name' => array( - 'friendly_name' => 'Internal Data Source Name', + 'friendly_name' => __('Internal Data Source Name'), 'method' => 'textbox', 'max_length' => '19', 'size' => '30', 'default' => '', - 'description' => 'Choose unique name to represent this piece of data inside of the rrd file.' + 'description' => __('Choose unique name to represent this piece of data inside of the rrd file.') ), 'rrd_minimum' => array( - 'friendly_name' => 'Minimum Value ("U" for No Minimum)', + 'friendly_name' => __('Minimum Value ("U" for No Minimum)'), 'method' => 'textbox', 'max_length' => '30', 'size' => '20', 'default' => '0', - 'description' => 'The minimum value of data that is allowed to be collected.' + 'description' => __('The minimum value of data that is allowed to be collected.') ), 'rrd_maximum' => array( - 'friendly_name' => 'Maximum Value ("U" for No Maximum)', + 'friendly_name' => __('Maximum Value ("U" for No Maximum)'), 'method' => 'textbox', 'max_length' => '30', 'size' => '20', 'default' => '0', - 'description' => 'The maximum value of data that is allowed to be collected.' + 'description' => __('The maximum value of data that is allowed to be collected.') ), 'data_source_type_id' => array( - 'friendly_name' => 'Data Source Type', + 'friendly_name' => __('Data Source Type'), 'method' => 'drop_array', 'array' => $data_source_types, 'default' => '', - 'description' => 'How data is represented in the RRA.' + 'description' => __('How data is represented in the RRA.') ), 'rrd_heartbeat' => array( - 'friendly_name' => 'Heartbeat', + 'friendly_name' => __('Heartbeat'), 'method' => 'hidden', 'max_length' => '20', 'size' => '10', 'default' => '600', - 'description' => 'The maximum amount of time that can pass before data is entered as \'unknown\'. - (Usually 2x300=600)' + 'description' => __('The maximum amount of time that can pass before data is entered as \'unknown\'. (Usually 2x300=600)') ), 'data_input_field_id' => array( - 'friendly_name' => 'Output Field', + 'friendly_name' => __('Output Field'), 'method' => 'drop_sql', 'default' => '0', - 'description' => 'When data is gathered, the data for this field will be put into this data source.' + 'description' => __('When data is gathered, the data for this field will be put into this data source.') ) ); @@ -470,16 +469,16 @@ $fields_grprint_presets_edit = array( 'name' => array( 'method' => 'textbox', - 'friendly_name' => 'Name', - 'description' => 'Enter a name for this GPRINT preset, make sure it is something you recognize.', + 'friendly_name' => __('Name'), + 'description' => __('Enter a name for this GPRINT preset, make sure it is something you recognize.'), 'value' => '|arg1:name|', 'max_length' => '50', 'size' => '40', ), 'gprint_text' => array( 'method' => 'textbox', - 'friendly_name' => 'GPRINT Text', - 'description' => 'Enter the custom GPRINT string here.', + 'friendly_name' => __('GPRINT Text'), + 'description' => __('Enter the custom GPRINT string here.'), 'value' => '|arg1:gprint_text|', 'max_length' => '50', 'size' => '40', @@ -497,311 +496,311 @@ /* file: (graphs.php|graph_templates.php), action: (graph|template)_edit */ $struct_graph = array( 'general_header' => array( - 'friendly_name' => 'Common Options', + 'friendly_name' => __('Common Options'), 'collapsible' => 'true', 'method' => 'spacer', ), 'title' => array( - 'friendly_name' => 'Title (--title)', + 'friendly_name' => __('Title (--title)'), 'method' => 'textbox', 'max_length' => '255', 'default' => '', - 'description' => 'The name that is printed on the graph. It can include replacement variables such as |host_description| or |query_fieldName|. - For a complete list of supported replacement tags, please see the Cacti documentation.', + 'description' => __('The name that is printed on the graph. It can include replacement variables such as |host_description| or |query_fieldName|. + For a complete list of supported replacement tags, please see the Cacti documentation.'), 'size' => '80' ), 'vertical_label' => array( - 'friendly_name' => 'Vertical Label (--vertical-label)', + 'friendly_name' => __('Vertical Label (--vertical-label)'), 'method' => 'textbox', 'max_length' => '255', 'default' => '', - 'description' => 'The label vertically printed to the left of the graph.', + 'description' => __('The label vertically printed to the left of the graph.'), 'size' => '30' ), 'image_format_id' => array( - 'friendly_name' => 'Image Format (--imgformat)', + 'friendly_name' => __('Image Format (--imgformat)'), 'method' => 'drop_array', 'array' => $image_types, 'default' => read_config_option('default_image_format'), - 'description' => 'The type of graph that is generated; PNG, GIF or SVG. The selection of graph image type is very RRDtool dependent.' + 'description' => __('The type of graph that is generated; PNG, GIF or SVG. The selection of graph image type is very RRDtool dependent.') ), 'height' => array( - 'friendly_name' => 'Height (--height)', + 'friendly_name' => __('Height (--height)'), 'method' => 'textbox', 'max_length' => '50', 'default' => read_config_option('default_graph_height'), - 'description' => 'The height (in pixels) of the graph area within the graph. This area does not include the legend, axis legends, or title.', + 'description' => __('The height (in pixels) of the graph area within the graph. This area does not include the legend, axis legends, or title.'), 'size' => '7' ), 'width' => array( - 'friendly_name' => 'Width (--width)', + 'friendly_name' => __('Width (--width)'), 'method' => 'textbox', 'max_length' => '50', 'default' => read_config_option('default_graph_width'), - 'description' => 'The width (in pixels) of the graph area within the graph. This area does not include the legend, axis legends, or title.', + 'description' => __('The width (in pixels) of the graph area within the graph. This area does not include the legend, axis legends, or title.'), 'size' => '7' ), 'base_value' => array( - 'friendly_name' => 'Base Value (--base)', + 'friendly_name' => __('Base Value (--base)'), 'method' => 'textbox', 'max_length' => '50', 'default' => '1000', - 'description' => 'Should be set to 1024 for memory and 1000 for traffic measurements.', + 'description' => __('Should be set to 1024 for memory and 1000 for traffic measurements.'), 'size' => '12' ), 'slope_mode' => array( - 'friendly_name' => 'Slope Mode (--slope-mode)', + 'friendly_name' => __('Slope Mode (--slope-mode)'), 'method' => 'checkbox', 'default' => 'on', - 'description' => 'Using Slope Mode evens out the shape of the graphs at the expense of - some on screen resolution.' + 'description' => __('Using Slope Mode evens out the shape of the graphs at the expense of + some on screen resolution.') ), 'export' => array( - 'friendly_name' => 'Allow Graph Export', + 'friendly_name' => __('Allow Graph Export'), 'method' => 'checkbox', 'default' => 'on', - 'description' => 'Choose whether this graph will be included in the static html/png export if you use - the Cacti export feature.' + 'description' => __('Choose whether this graph will be included in the static html/png export if you use + the Cacti export feature.') ), 'scaling_header' => array( - 'friendly_name' => 'Scaling Options', + 'friendly_name' => __('Scaling Options'), 'collapsible' => 'true', 'method' => 'spacer', ), 'auto_scale' => array( - 'friendly_name' => 'Auto Scale', + 'friendly_name' => __('Auto Scale'), 'method' => 'checkbox', 'default' => 'on', - 'description' => 'Auto scale the y-axis instead of defining an upper and lower limit. Note: if this is check both the - Upper and Lower limit will be ignored.', + 'description' => __('Auto scale the y-axis instead of defining an upper and lower limit. Note: if this is check both the + Upper and Lower limit will be ignored.'), 'size' => '7' ), 'auto_scale_opts' => array( - 'friendly_name' => 'Auto Scale Options', + 'friendly_name' => __('Auto Scale Options'), 'method' => 'radio', 'default' => '2', - 'description' => 'Use
+ 'description' => __('Use
--alt-autoscale to scale to the absolute minimum and maximum
--alt-autoscale-max to scale to the maximum value, using a given lower limit
--alt-autoscale-min to scale to the minimum value, using a given upper limit
- --alt-autoscale (with limits) to scale using both lower and upper limits (rrdtool default)
', + --alt-autoscale (with limits) to scale using both lower and upper limits (rrdtool default)
'), 'items' => array( 0 => array( 'radio_value' => '1', - 'radio_caption' => 'Use --alt-autoscale (ignoring given limits)' + 'radio_caption' => __('Use --alt-autoscale (ignoring given limits)') ), 1 => array( 'radio_value' => '2', - 'radio_caption' => 'Use --alt-autoscale-max (accepting a lower limit)' + 'radio_caption' => __('Use --alt-autoscale-max (accepting a lower limit)') ), 2 => array( 'radio_value' => '3', - 'radio_caption' => 'Use --alt-autoscale-min (accepting an upper limit)' + 'radio_caption' => __('Use --alt-autoscale-min (accepting an upper limit)') ), 3 => array( 'radio_value' => '4', - 'radio_caption' => 'Use --alt-autoscale (accepting both limits, rrdtool default)' + 'radio_caption' => __('Use --alt-autoscale (accepting both limits, rrdtool default)') ) ) ), 'auto_scale_log' => array( - 'friendly_name' => 'Logarithmic Scaling (--logarithmic)', + 'friendly_name' => __('Logarithmic Scaling (--logarithmic)'), 'method' => 'checkbox', 'default' => '', 'on_change' => 'changeScaleLog()', - 'description' => 'Use Logarithmic y-axis scaling' + 'description' => __('Use Logarithmic y-axis scaling') ), 'scale_log_units' => array( - 'friendly_name' => 'SI Units for Logarithmic Scaling (--units=si)', + 'friendly_name' => __('SI Units for Logarithmic Scaling (--units=si)'), 'method' => 'checkbox', 'default' => '', - 'description' => 'Use SI Units for Logarithmic Scaling instead of using exponential notation.
- Note: Linear graphs use SI notation by default.' + 'description' => __('Use SI Units for Logarithmic Scaling instead of using exponential notation.
+ Note: Linear graphs use SI notation by default.') ), 'auto_scale_rigid' => array( - 'friendly_name' => 'Rigid Boundaries Mode (--rigid)', + 'friendly_name' => __('Rigid Boundaries Mode (--rigid)'), 'method' => 'checkbox', 'default' => '', - 'description' => 'Do not expand the lower and upper limit if the graph contains a value outside the valid range.' + 'description' => __('Do not expand the lower and upper limit if the graph contains a value outside the valid range.') ), 'upper_limit' => array( - 'friendly_name' => 'Upper Limit (--upper-limit)', + 'friendly_name' => __('Upper Limit (--upper-limit)'), 'method' => 'textbox', 'max_length' => '50', 'default' => '100', - 'description' => 'The maximum vertical value for the graph.', + 'description' => __('The maximum vertical value for the graph.'), 'size' => '12' ), 'lower_limit' => array( - 'friendly_name' => 'Lower Limit (--lower-limit)', + 'friendly_name' => __('Lower Limit (--lower-limit)'), 'method' => 'textbox', 'max_length' => '255', 'default' => '0', - 'description' => 'The minimum vertical value for the graph.', + 'description' => __('The minimum vertical value for the graph.'), 'size' => '12' ), 'grid_header' => array( - 'friendly_name' => 'Grid Options', + 'friendly_name' => __('Grid Options'), 'collapsible' => 'true', 'method' => 'spacer', ), 'unit_value' => array( - 'friendly_name' => 'Unit Grid Value (--unit/--y-grid)', + 'friendly_name' => __('Unit Grid Value (--unit/--y-grid)'), 'method' => 'textbox', 'max_length' => '50', 'default' => '', - 'description' => 'Sets the exponent value on the Y-axis for numbers. Note: This option is + 'description' => __('Sets the exponent value on the Y-axis for numbers. Note: This option is depricated and replaced by the --y-grid option. In this option, Y-axis grid lines appear - at each grid step interval. Labels are placed every label factor lines.', + at each grid step interval. Labels are placed every label factor lines.'), 'size' => '12' ), 'unit_exponent_value' => array( - 'friendly_name' => 'Unit Exponent Value (--units-exponent)', + 'friendly_name' => __('Unit Exponent Value (--units-exponent)'), 'method' => 'textbox', 'max_length' => '50', 'default' => '', - 'description' => 'What unit cacti should use on the Y-axis. Use 3 to display everything in "k" or -6 - to display everything in "u" (micro).', + 'description' => __('What unit cacti should use on the Y-axis. Use 3 to display everything in "k" or -6 + to display everything in "u" (micro).'), 'size' => '12' ), 'unit_length' => array( - 'friendly_name' => 'Unit Length (--units-length <length>)', + 'friendly_name' => __('Unit Length (--units-length <length>)'), 'method' => 'textbox', 'max_length' => '50', 'default' => '', 'size' => '30', - 'description' => 'How many digits should rrdtool assume the y-axis labels to be? You may have to use this - option to make enough space once you start fiddeling with the y-axis labeling.', + 'description' => __('How many digits should rrdtool assume the y-axis labels to be? You may have to use this + option to make enough space once you start fiddeling with the y-axis labeling.'), ), 'no_gridfit' => array( - 'friendly_name' => 'No Gridfit (--no-gridfit)', + 'friendly_name' => __('No Gridfit (--no-gridfit)'), 'method' => 'checkbox', 'default' => '', - 'description' => 'In order to avoid anti-aliasing blurring effects rrdtool snaps points to device + 'description' => __('In order to avoid anti-aliasing blurring effects rrdtool snaps points to device resolution pixels, this results in a crisper appearance. If this is not to your liking, you can - use this switch to turn this behaviour off.
Note: Gridfitting is turned off for PDF, EPS, SVG output by default.', + use this switch to turn this behaviour off.
Note: Gridfitting is turned off for PDF, EPS, SVG output by default.'), ), 'alt_y_grid' => array( - 'friendly_name' => 'Alternative Y Grid (--alt-y-grid)', + 'friendly_name' => __('Alternative Y Grid (--alt-y-grid)'), 'method' => 'checkbox', 'default' => '', - 'description' => 'The algorithm ensures that you always have a grid, that there are enough but not too many grid lines, + 'description' => __('The algorithm ensures that you always have a grid, that there are enough but not too many grid lines, and that the grid is metric. This parameter will also ensure that you get enough decimals displayed - even if your graph goes from 69.998 to 70.001.
Note: This parameter may interfere with --alt-autoscale options.', + even if your graph goes from 69.998 to 70.001.
Note: This parameter may interfere with --alt-autoscale options.'), ), 'axis_header' => array( - 'friendly_name' => 'Axis Options', + 'friendly_name' => __('Axis Options'), 'collapsible' => 'true', 'method' => 'spacer', ), 'right_axis' => array( - 'friendly_name' => 'Right Axis (--right-axis <scale:shift>)', + 'friendly_name' => __('Right Axis (--right-axis <scale:shift>)'), 'method' => 'textbox', 'max_length' => '20', 'default' => '', 'size' => '20', - 'description' => 'A second axis will be drawn to the right of the graph. It is tied to the left axis via the - scale and shift parameters.', + 'description' => __('A second axis will be drawn to the right of the graph. It is tied to the left axis via the + scale and shift parameters.'), ), 'right_axis_label' => array( - 'friendly_name' => 'Right Axis Label (--right-axis-label <string>)', + 'friendly_name' => __('Right Axis Label (--right-axis-label <string>)'), 'method' => 'textbox', 'max_length' => '200', 'default' => '', 'size' => '30', - 'description' => 'The label for the right axis.', + 'description' => __('The label for the right axis.'), ), 'right_axis_format' => array( - 'friendly_name' => 'Right Axis Format (--right-axis-format <format>)', + 'friendly_name' => __('Right Axis Format (--right-axis-format <format>)'), 'method' => 'drop_sql', 'sql' => 'select id,name from graph_templates_gprint order by name', 'default' => '0', - 'none_value' => 'None', - 'description' => 'By default the format of the axis lables gets determined automatically. - If you want to do this yourself, use this option with the same %lf arguments you know from the PRINT and GPRINT commands.', + 'none_value' => __('None'), + 'description' => __('By default the format of the axis lables gets determined automatically. + If you want to do this yourself, use this option with the same %lf arguments you know from the PRINT and GPRINT commands.'), ), 'right_axis_formatter' => array( - 'friendly_name' => 'Right Axis Formatter (--right-axis-formatter <formatname>)', + 'friendly_name' => __('Right Axis Formatter (--right-axis-formatter <formatname>)'), 'method' => 'drop_array', 'array' => $rrd_axis_formatters, 'default' => '0', - 'none_value' => 'None', - 'description' => 'When you setup the right axis labeling, apply a rule to the data format. Supported formats include "numeric" where + 'none_value' => __('None'), + 'description' => __('When you setup the right axis labeling, apply a rule to the data format. Supported formats include "numeric" where data is treated as numeric, "timestamp" where values are interpreted as unix timestamps (number of seconds since January 1970) and expressed using strftime format (default is "%Y-%m-%d %H:%M:%S"). See also --units-length and --left-axis-format. Finally - "duration" where values are interpreted as duration in milliseconds. Formatting follows the rules of valstrfduration qualified PRINT/GPRINT.', + "duration" where values are interpreted as duration in milliseconds. Formatting follows the rules of valstrfduration qualified PRINT/GPRINT.'), ), 'left_axis_formatter' => array( - 'friendly_name' => 'Left Axis Formatter (--left-axis-formatter <formatname>)', + 'friendly_name' => __('Left Axis Formatter (--left-axis-formatter <formatname>)'), 'method' => 'drop_array', 'array' => $rrd_axis_formatters, 'default' => '0', - 'none_value' => 'None', - 'description' => 'When you setup the right axis labeling, apply a rule to the data format. Supported formats include "numeric" where + 'none_value' => __('None'), + 'description' => __('When you setup the right axis labeling, apply a rule to the data format. Supported formats include "numeric" where data is treated as numeric, "timestamp" where values are interpreted as unix timestamps (number of seconds since January 1970) and expressed using strftime format (default is "%Y-%m-%d %H:%M:%S"). See also --units-length and --left-axis-format. Finally - "duration" where values are interpreted as duration in milliseconds. Formatting follows the rules of valstrfduration qualified PRINT/GPRINT.', + "duration" where values are interpreted as duration in milliseconds. Formatting follows the rules of valstrfduration qualified PRINT/GPRINT.'), ), 'legend_header' => array( - 'friendly_name' => 'Legend Options', + 'friendly_name' => __('Legend Options'), 'collapsible' => 'true', 'method' => 'spacer', ), 'auto_padding' => array( - 'friendly_name' => 'Auto Padding', + 'friendly_name' => __('Auto Padding'), 'method' => 'checkbox', 'default' => 'on', - 'description' => 'Pad text so that legend and graph data always line up. Note: this could cause + 'description' => __('Pad text so that legend and graph data always line up. Note: this could cause graphs to take longer to render because of the larger overhead. Also Auto Padding may not - be accurate on all types of graphs, consistant labeling usually helps.' + be accurate on all types of graphs, consistant labeling usually helps.') ), 'dynamic_labels' => array( - 'friendly_name' => 'Dynamic Labels (--dynamic-labels)', + 'friendly_name' => __('Dynamic Labels (--dynamic-labels)'), 'method' => 'checkbox', 'default' => '', - 'description' => 'Draw line markers as a line.', + 'description' => __('Draw line markers as a line.'), ), 'force_rules_legend' => array( - 'friendly_name' => 'Force Rules Legend (--force-rules-legend)', + 'friendly_name' => __('Force Rules Legend (--force-rules-legend)'), 'method' => 'checkbox', 'default' => '', - 'description' => 'Force the generation of HRULE and VRULE legends.', + 'description' => __('Force the generation of HRULE and VRULE legends.'), ), 'tab_width' => array( - 'friendly_name' => 'Tab Width (--tabwidth <pixels>)', + 'friendly_name' => __('Tab Width (--tabwidth <pixels>)'), 'method' => 'textbox', 'max_length' => '50', 'default' => '', 'size' => '10', - 'description' => 'By default the tab-width is 40 pixels, use this option to change it.' + 'description' => __('By default the tab-width is 40 pixels, use this option to change it.') ), 'legend_position' => array( - 'friendly_name' => 'Legend Position (--legend-position=<position>)', + 'friendly_name' => __('Legend Position (--legend-position=<position>)'), 'method' => 'drop_array', 'array' => $rrd_legend_position, - 'none_value' => 'None', - 'description' => 'Place the legend at the given side of the graph.', + 'none_value' => __('None'), + 'description' => __('Place the legend at the given side of the graph.'), ), 'legend_direction' => array( - 'friendly_name' => 'Legend Direction (--legend-direction=<direction>)', + 'friendly_name' => __('Legend Direction (--legend-direction=<direction>)'), 'method' => 'drop_array', 'array' => $rrd_legend_direction, - 'none_value' => 'None', - 'description' => 'Place the legend items in the given vertical order.', + 'none_value' => __('None'), + 'description' => __('Place the legend items in the given vertical order.'), ), ); /* file: (graphs.php|graph_templates.php), action: item_edit */ $struct_graph_item = array( 'graph_type_id' => array( - 'friendly_name' => 'Graph Item Type', + 'friendly_name' => __('Graph Item Type'), 'method' => 'drop_array', 'array' => $graph_item_types, 'default' => '0', - 'description' => 'How data for this item is represented visually on the graph.' + 'description' => __('How data for this item is represented visually on the graph.') ), 'task_item_id' => array( - 'friendly_name' => 'Data Source', + 'friendly_name' => __('Data Source'), 'method' => 'drop_sql', 'sql' => 'SELECT CONCAT_WS("",case when host.description is null then "No Device" when host.description is not null then host.description end," - ",data_template_data.name," (",data_template_rrd.data_source_name,")") AS name, @@ -812,120 +811,120 @@ AND data_template_data.local_data_id=data_local.id ORDER BY name', 'default' => '0', - 'none_value' => 'None', - 'description' => 'The data source to use for this graph item.' + 'none_value' => __('None'), + 'description' => __('The data source to use for this graph item.') ), 'line_width' => array( - 'friendly_name' => 'Line Width (decimal)', + 'friendly_name' => __('Line Width (decimal)'), 'method' => 'textbox', 'max_length' => '5', 'default' => '', 'size' => '5', - 'description' => 'In case LINE was chosen, specify width of line here.', + 'description' => __('In case LINE was chosen, specify width of line here.'), ), 'dashes' => array( - 'friendly_name' => 'Dashes (dashes[=on_s[,off_s[,on_s,off_s]...]])', + 'friendly_name' => __('Dashes (dashes[=on_s[,off_s[,on_s,off_s]...]])'), 'method' => 'textbox', 'max_length' => '20', 'default' => '', 'size' => '20', - 'description' => 'The dashes modifier enables dashed line style.', + 'description' => __('The dashes modifier enables dashed line style.'), ), 'dash_offset' => array( - 'friendly_name' => 'Dash Offset (dash-offset=offset)', + 'friendly_name' => __('Dash Offset (dash-offset=offset)'), 'method' => 'textbox', 'max_length' => '4', 'default' => '', 'size' => '4', - 'description' => 'The dash-offset parameter specifies an offset into the pattern at which the stroke begins.', + 'description' => __('The dash-offset parameter specifies an offset into the pattern at which the stroke begins.'), ), 'color_id' => array( - 'friendly_name' => 'Color', + 'friendly_name' => __('Color'), 'method' => 'drop_color', 'default' => '0', 'on_change' => 'changeColorId()', - 'description' => 'The color to use for the legend.' + 'description' => __('The color to use for the legend.') ), 'alpha' => array( - 'friendly_name' => 'Opacity/Alpha Channel', + 'friendly_name' => __('Opacity/Alpha Channel'), 'method' => 'drop_array', 'default' => 'FF', 'array' => $graph_color_alpha, - 'description' => 'The opacity/alpha channel of the color.' + 'description' => __('The opacity/alpha channel of the color.') ), 'consolidation_function_id' => array( - 'friendly_name' => 'Consolidation Function', + 'friendly_name' => __('Consolidation Function'), 'method' => 'drop_array', 'array' => $consolidation_functions, 'default' => '0', - 'description' => 'How data for this item is represented statistically on the graph.' + 'description' => __('How data for this item is represented statistically on the graph.') ), 'cdef_id' => array( - 'friendly_name' => 'CDEF Function', + 'friendly_name' => __('CDEF Function'), 'method' => 'drop_sql', 'sql' => 'SELECT id,name FROM cdef ORDER BY name', 'default' => '0', - 'none_value' => 'None', - 'description' => 'A CDEF (math) function to apply to this item on the graph or legend.' + 'none_value' => __('None'), + 'description' => __('A CDEF (math) function to apply to this item on the graph or legend.') ), 'vdef_id' => array( - 'friendly_name' => 'VDEF Function', + 'friendly_name' => __('VDEF Function'), 'method' => 'drop_sql', 'sql' => 'SELECT id, name FROM vdef ORDER BY name', 'default' => '0', - 'none_value' => 'None', - 'description' => 'A VDEF (math) function to apply to this item on the graph legend.' + 'none_value' => __('None'), + 'description' => __('A VDEF (math) function to apply to this item on the graph legend.') ), 'shift' => array( - 'friendly_name' => 'Shift Data', + 'friendly_name' => __('Shift Data'), 'method' => 'checkbox', 'default' => '', - 'description' => "Offset your data on the time axis (x-axis) by the amount specified in the 'value' field.", + 'description' => __('Offset your data on the time axis (x-axis) by the amount specified in the \'value\' field.'), ), 'value' => array( - 'friendly_name' => 'Value', + 'friendly_name' => __('Value'), 'method' => 'textbox', 'max_length' => '50', 'size' => '40', 'default' => '', - 'description' => '[HRULE|VRULE]: The value of the graph item.
+ 'description' => __('[HRULE|VRULE]: The value of the graph item.
[TICK]: The fraction for the tick line.
- [SHIFT]: The time offset in seconds.' + [SHIFT]: The time offset in seconds.') ), 'gprint_id' => array( - 'friendly_name' => 'GPRINT Type', + 'friendly_name' => __('GPRINT Type'), 'method' => 'drop_sql', 'sql' => 'SELECT id,name FROM graph_templates_gprint ORDER BY name', 'default' => '2', - 'description' => 'If this graph item is a GPRINT, you can optionally choose another format - here. You can define additional types under "GPRINT Presets".' + 'description' => __('If this graph item is a GPRINT, you can optionally choose another format + here. You can define additional types under "GPRINT Presets".') ), 'textalign' => array( - 'friendly_name' => 'Text Alignment' . ' (TEXTALIGN)', + 'friendly_name' => __('Text Alignment' . ' (TEXTALIGN)'), 'method' => 'drop_array', 'value' => '|arg1:textalign|', 'array' => $rrd_textalign, - 'none_value' => 'None', - 'description' => 'All subsequent legend line(s) will be aligned as given here. You may use this command multiple times in a single graph. + 'none_value' => __('None'), + 'description' => __('All subsequent legend line(s) will be aligned as given here. You may use this command multiple times in a single graph. This command does not produce tabular layout.
Note: You may want to insert a <HR> on the preceding graph item.
- Note: A <HR> on this legend line will obsolete this setting!', + Note: A <HR> on this legend line will obsolete this setting!'), ), 'text_format' => array( - 'friendly_name' => 'Text Format', + 'friendly_name' => __('Text Format'), 'method' => 'textbox', 'max_length' => '255', 'size' => '80', 'default' => '', - 'description' => 'Text that will be displayed on the legend for this graph item.' + 'description' => __('Text that will be displayed on the legend for this graph item.') ), 'hard_return' => array( - 'friendly_name' => 'Insert Hard Return', + 'friendly_name' => __('Insert Hard Return'), 'method' => 'checkbox', 'default' => '', - 'description' => 'Forces the legend to the next line after this item.' + 'description' => __('Forces the legend to the next line after this item.') ), 'sequence' => array( - 'friendly_name' => 'Sequence', + 'friendly_name' => __('Sequence'), 'method' => 'view' ) ); @@ -934,8 +933,8 @@ $fields_graph_template_template_edit = array( 'name' => array( 'method' => 'textbox', - 'friendly_name' => 'Name', - 'description' => 'The name given to this graph template.', + 'friendly_name' => __('Name'), + 'description' => __('The name given to this graph template.'), 'value' => '|arg1:name|', 'max_length' => '150', 'size' => '80' @@ -958,24 +957,24 @@ $fields_graph_template_input_edit = array( 'name' => array( 'method' => 'textbox', - 'friendly_name' => 'Name', - 'description' => 'Enter a name for this graph item input, make sure it is something you recognize.', + 'friendly_name' => __('Name'), + 'description' => __('Enter a name for this graph item input, make sure it is something you recognize.'), 'value' => '|arg1:name|', 'max_length' => '50', 'size' => '40', ), 'description' => array( 'method' => 'textarea', - 'friendly_name' => 'Description', - 'description' => 'Enter a description for this graph item input to describe what this input is used for.', + 'friendly_name' => __('Description'), + 'description' => __('Enter a description for this graph item input to describe what this input is used for.'), 'value' => '|arg1:description|', 'textarea_rows' => '5', 'textarea_cols' => '40' ), 'column_name' => array( 'method' => 'drop_array', - 'friendly_name' => 'Field Type', - 'description' => 'How data is to be represented on the graph.', + 'friendly_name' => __('Field Type'), + 'description' => __('How data is to be represented on the graph.'), 'value' => '|arg1:column_name|', 'array' => '|arg2:|', ), @@ -998,56 +997,56 @@ 'host_gen_head' => array( 'method' => 'spacer', 'collapsible' => 'true', - 'friendly_name' => 'General Device Options' + 'friendly_name' => __('General Device Options') ), 'description' => array( 'method' => 'textbox', - 'friendly_name' => 'Description', - 'description' => 'Give this host a meaningful description.', + 'friendly_name' => __('Description'), + 'description' => __('Give this host a meaningful description.'), 'value' => '|arg1:description|', 'max_length' => '250', ), 'hostname' => array( 'method' => 'textbox', - 'friendly_name' => 'Hostname', - 'description' => 'Fully qualified hostname or IP address for this device.', + 'friendly_name' => __('Hostname'), + 'description' => __('Fully qualified hostname or IP address for this device.'), 'value' => '|arg1:hostname|', 'max_length' => '250', 'size' => '60', ), 'host_template_id' => array( 'method' => 'drop_sql', - 'friendly_name' => 'Device Template', - 'description' => 'Choose the Device Template to use to define the default Graph Templates and Data Queries associated with this Device.', + 'friendly_name' => __('Device Template'), + 'description' => __('Choose the Device Template to use to define the default Graph Templates and Data Queries associated with this Device.'), 'value' => '|arg1:host_template_id|', - 'none_value' => 'None', + 'none_value' => __('None'), 'sql' => 'SELECT id,name FROM host_template ORDER BY name', ), 'device_threads' => array( 'method' => 'drop_array', - 'friendly_name' => 'Number of Collection Threads', - 'description' => 'The number of concurrent threads to use for polling this device. This applies to the Spine poller only.', + 'friendly_name' => __('Number of Collection Threads'), + 'description' => __('The number of concurrent threads to use for polling this device. This applies to the Spine poller only.'), 'value' => '|arg1:device_threads|', 'default' => '1', 'array' => $device_threads ), 'disabled' => array( 'method' => 'checkbox', - 'friendly_name' => 'Disable Device', - 'description' => 'Check this box to disable all checks for this host.', + 'friendly_name' => __('Disable Device'), + 'description' => __('Check this box to disable all checks for this host.'), 'value' => '|arg1:disabled|', 'default' => '', 'form_id' => false ), 'host_snmp_head' => array( 'method' => 'spacer', - 'friendly_name' => 'SNMP Options', + 'friendly_name' => __('SNMP Options'), 'collapsible' => 'true' ), 'snmp_version' => array( 'method' => 'drop_array', - 'friendly_name' => 'SNMP Version', - 'description' => 'Choose the SNMP version for this device.', + 'friendly_name' => __('SNMP Version'), + 'description' => __('Choose the SNMP version for this device.'), 'on_change' => 'changeHostForm()', 'value' => '|arg1:snmp_version|', 'default' => read_config_option('snmp_ver'), @@ -1055,8 +1054,8 @@ ), 'snmp_community' => array( 'method' => 'textbox', - 'friendly_name' => 'SNMP Community', - 'description' => 'SNMP read community for this device.', + 'friendly_name' => __('SNMP Community'), + 'description' => __('SNMP read community for this device.'), 'value' => '|arg1:snmp_community|', 'form_id' => '|arg1:id|', 'default' => read_config_option('snmp_community'), @@ -1065,8 +1064,8 @@ ), 'snmp_username' => array( 'method' => 'textbox', - 'friendly_name' => 'SNMP Username (v3)', - 'description' => 'SNMP v3 username for this device.', + 'friendly_name' => __('SNMP Username (v3)'), + 'description' => __('SNMP v3 username for this device.'), 'value' => '|arg1:snmp_username|', 'default' => read_config_option('snmp_username'), 'max_length' => '50', @@ -1074,8 +1073,8 @@ ), 'snmp_password' => array( 'method' => 'textbox_password', - 'friendly_name' => 'SNMP Password (v3)', - 'description' => 'SNMP v3 authentication pass phrase for this device.', + 'friendly_name' => __('SNMP Password (v3)'), + 'description' => __('SNMP v3 authentication pass phrase for this device.'), 'value' => '|arg1:snmp_password|', 'default' => read_config_option('snmp_password'), 'max_length' => '50', @@ -1083,16 +1082,16 @@ ), 'snmp_auth_protocol' => array( 'method' => 'drop_array', - 'friendly_name' => 'SNMP Auth Protocol (v3)', - 'description' => 'Choose the SNMPv3 authentication protocol.', + 'friendly_name' => __('SNMP Auth Protocol (v3)'), + 'description' => __('Choose the SNMPv3 authentication protocol.'), 'value' => '|arg1:snmp_auth_protocol|', 'default' => read_config_option('snmp_auth_protocol'), 'array' => $snmp_auth_protocols, ), 'snmp_priv_passphrase' => array( 'method' => 'textbox', - 'friendly_name' => 'SNMP Privacy Passphrase (v3)', - 'description' => 'Choose the SNMPv3 privacy passphrase.', + 'friendly_name' => __('SNMP Privacy Passphrase (v3)'), + 'description' => __('Choose the SNMPv3 privacy passphrase.'), 'value' => '|arg1:snmp_priv_passphrase|', 'default' => read_config_option('snmp_priv_passphrase'), 'max_length' => '200', @@ -1100,16 +1099,16 @@ ), 'snmp_priv_protocol' => array( 'method' => 'drop_array', - 'friendly_name' => 'SNMP privacy protocol (v3)', - 'description' => 'Choose the SNMPv3 privacy protocol.', + 'friendly_name' => __('SNMP privacy protocol (v3)'), + 'description' => __('Choose the SNMPv3 privacy protocol.'), 'value' => '|arg1:snmp_priv_protocol|', 'default' => read_config_option('snmp_priv_protocol'), 'array' => $snmp_priv_protocols, ), 'snmp_context' => array( 'method' => 'textbox', - 'friendly_name' => 'SNMP Context', - 'description' => 'Enter the SNMP context to use for this device.', + 'friendly_name' => __('SNMP Context'), + 'description' => __('Enter the SNMP context to use for this device.'), 'value' => '|arg1:snmp_context|', 'default' => '', 'max_length' => '64', @@ -1117,8 +1116,8 @@ ), 'snmp_port' => array( 'method' => 'textbox', - 'friendly_name' => 'SNMP Port', - 'description' => 'Enter the UDP port number to use for SNMP (default is 161).', + 'friendly_name' => __('SNMP Port'), + 'description' => __('Enter the UDP port number to use for SNMP (default is 161).'), 'value' => '|arg1:snmp_port|', 'max_length' => '5', 'default' => read_config_option('snmp_port'), @@ -1126,8 +1125,8 @@ ), 'snmp_timeout' => array( 'method' => 'textbox', - 'friendly_name' => 'SNMP Timeout', - 'description' => 'The maximum number of milliseconds Cacti will wait for an SNMP response (does not work with php-snmp support).', + 'friendly_name' => __('SNMP Timeout'), + 'description' => __('The maximum number of milliseconds Cacti will wait for an SNMP response (does not work with php-snmp support).'), 'value' => '|arg1:snmp_timeout|', 'max_length' => '8', 'default' => read_config_option('snmp_timeout'), @@ -1135,8 +1134,8 @@ ), 'max_oids' => array( 'method' => 'textbox', - 'friendly_name' => 'Maximum OIDs Per Get Request', - 'description' => 'Specified the number of OIDs that can be obtained in a single SNMP Get request.', + 'friendly_name' => __('Maximum OIDs Per Get Request'), + 'description' => __('Specified the number of OIDs that can be obtained in a single SNMP Get request.'), 'value' => '|arg1:max_oids|', 'max_length' => '8', 'default' => read_config_option('max_get_size'), @@ -1144,12 +1143,12 @@ ), 'host_avail_head' => array( 'method' => 'spacer', - 'friendly_name' => 'Availability/Reachability Options', + 'friendly_name' => __('Availability/Reachability Options'), 'collapsible' => 'true', ), 'availability_method' => array( - 'friendly_name' => 'Downed Device Detection', - 'description' => 'The method Cacti will use to determine if a host is available for polling.
NOTE: It is recommended that, at a minimum, SNMP always be selected.', + 'friendly_name' => __('Downed Device Detection'), + 'description' => __('The method Cacti will use to determine if a host is available for polling.
NOTE: It is recommended that, at a minimum, SNMP always be selected.'), 'on_change' => 'changeHostForm()', 'value' => '|arg1:availability_method|', 'method' => 'drop_array', @@ -1157,8 +1156,8 @@ 'array' => $availability_options ), 'ping_method' => array( - 'friendly_name' => 'Ping Method', - 'description' => 'The type of ping packet to sent.
NOTE: ICMP on Linux/UNIX requires root privileges.', + 'friendly_name' => __('Ping Method'), + 'description' => __('The type of ping packet to sent.
NOTE: ICMP on Linux/UNIX requires root privileges.'), 'on_change' => 'changeHostForm()', 'value' => '|arg1:ping_method|', 'method' => 'drop_array', @@ -1167,16 +1166,16 @@ ), 'ping_port' => array( 'method' => 'textbox', - 'friendly_name' => 'Ping Port', + 'friendly_name' => __('Ping Port'), 'value' => '|arg1:ping_port|', - 'description' => 'TCP or UDP port to attempt connection.', + 'description' => __('TCP or UDP port to attempt connection.'), 'default' => read_config_option('ping_port'), 'max_length' => '50', 'size' => '7' ), 'ping_timeout' => array( - 'friendly_name' => 'Ping Timeout Value', - 'description' => 'The timeout value to use for host ICMP and UDP pinging. This host SNMP timeout value applies for SNMP pings.', + 'friendly_name' => __('Ping Timeout Value'), + 'description' => __('The timeout value to use for host ICMP and UDP pinging. This host SNMP timeout value applies for SNMP pings.'), 'method' => 'textbox', 'value' => '|arg1:ping_timeout|', 'default' => read_config_option('ping_timeout'), @@ -1184,8 +1183,8 @@ 'size' => '7' ), 'ping_retries' => array( - 'friendly_name' => 'Ping Retry Count', - 'description' => 'After an initial failure, the number of ping retries Cacti will attempt before failing.', + 'friendly_name' => __('Ping Retry Count'), + 'description' => __('After an initial failure, the number of ping retries Cacti will attempt before failing.'), 'method' => 'textbox', 'value' => '|arg1:ping_retries|', 'default' => read_config_option('ping_retries'), @@ -1195,12 +1194,12 @@ 'host_add_head' => array( 'method' => 'spacer', 'collapsible' => 'true', - 'friendly_name' => 'Additional Options' + 'friendly_name' => __('Additional Options') ), 'notes' => array( 'method' => 'textarea', - 'friendly_name' => 'Notes', - 'description' => 'Enter notes to this host.', + 'friendly_name' => __('Notes'), + 'description' => __('Enter notes to this host.'), 'class' => 'textAreaNotes', 'value' => '|arg1:notes|', 'textarea_rows' => '5', @@ -1224,8 +1223,8 @@ $fields_host_template_edit = array( 'name' => array( 'method' => 'textbox', - 'friendly_name' => 'Name', - 'description' => 'A useful name for this host template.', + 'friendly_name' => __('Name'), + 'description' => __('A useful name for this host template.'), 'value' => '|arg1:name|', 'max_length' => '255', 'size' => '80' @@ -1244,24 +1243,24 @@ $fields_data_query_edit = array( 'name' => array( 'method' => 'textbox', - 'friendly_name' => 'Name', - 'description' => 'A name for this data query.', + 'friendly_name' => __('Name'), + 'description' => __('A name for this data query.'), 'value' => '|arg1:name|', 'max_length' => '100', 'size' => '60' ), 'description' => array( 'method' => 'textbox', - 'friendly_name' => 'Description', - 'description' => 'A description for this data query.', + 'friendly_name' => __('Description'), + 'description' => __('A description for this data query.'), 'value' => '|arg1:description|', 'max_length' => '255', 'size' => '80', ), 'xml_path' => array( 'method' => 'textbox', - 'friendly_name' => 'XML Path', - 'description' => 'The full path to the XML file containing definitions for this data query.', + 'friendly_name' => __('XML Path'), + 'description' => __('The full path to the XML file containing definitions for this data query.'), 'value' => '|arg1:xml_path|', 'default' => '/resource/', 'max_length' => '255', @@ -1269,8 +1268,8 @@ ), 'data_input_id' => array( 'method' => 'drop_sql', - 'friendly_name' => 'Data Input Method', - 'description' => 'Choose the input method for this Data Query. This input method defines how data is collected for each Device associated with the Data Query.', + 'friendly_name' => __('Data Input Method'), + 'description' => __('Choose the input method for this Data Query. This input method defines how data is collected for each Device associated with the Data Query.'), 'value' => '|arg1:data_input_id|', 'sql' => 'SELECT id,name FROM data_input WHERE (type_id=3 OR type_id=4 OR type_id=5 OR type_id=6) ORDER BY name', ), @@ -1288,8 +1287,8 @@ $fields_data_query_item_edit = array( 'graph_template_id' => array( 'method' => 'drop_sql', - 'friendly_name' => 'Graph Template', - 'description' => 'Choose the Graph Template to use for this Data Query Graph Template item.', + 'friendly_name' => __('Graph Template'), + 'description' => __('Choose the Graph Template to use for this Data Query Graph Template item.'), 'value' => '|arg1:graph_template_id|', 'sql' => 'SELECT DISTINCT gt.id, gt.name FROM graph_templates AS gt @@ -1311,8 +1310,8 @@ ), 'name' => array( 'method' => 'textbox', - 'friendly_name' => 'Name', - 'description' => 'A name for this associated graph.', + 'friendly_name' => __('Name'), + 'description' => __('A name for this associated graph.'), 'value' => '|arg1:name|', 'max_length' => '100', 'size' => '60', @@ -1339,23 +1338,23 @@ $fields_tree_edit = array( 'name' => array( 'method' => 'textbox', - 'friendly_name' => 'Name', - 'description' => 'A useful name for this graph tree.', + 'friendly_name' => __('Name'), + 'description' => __('A useful name for this graph tree.'), 'value' => '|arg1:name|', 'max_length' => '255', 'size' => '80', ), 'sort_type' => array( 'method' => 'drop_array', - 'friendly_name' => 'Sorting Type', - 'description' => 'Choose how items in this tree will be sorted.', + 'friendly_name' => __('Sorting Type'), + 'description' => __('Choose how items in this tree will be sorted.'), 'value' => '|arg1:sort_type|', 'array' => $tree_sort_types, ), 'enabled' => array( 'method' => 'checkbox', - 'friendly_name' => 'Publish', - 'description' => 'Should this Tree be published for users to access?', + 'friendly_name' => __('Publish'), + 'description' => __('Should this Tree be published for users to access?'), 'value' => '|arg1:enabled|', 'default' => 'on' ), @@ -1373,125 +1372,125 @@ $fields_user_user_edit_host = array( 'username' => array( 'method' => 'textbox', - 'friendly_name' => 'User Name', - 'description' => 'The login name for this user.', + 'friendly_name' => __('User Name'), + 'description' => __('The login name for this user.'), 'value' => '|arg1:username|', 'max_length' => '255', 'size' => '40', ), 'full_name' => array( 'method' => 'textbox', - 'friendly_name' => 'Full Name', - 'description' => 'A more descriptive name for this user, that can include spaces or special characters.', + 'friendly_name' => __('Full Name'), + 'description' => __('A more descriptive name for this user, that can include spaces or special characters.'), 'value' => '|arg1:full_name|', 'max_length' => '128', 'size' => 60 ), 'email_address' => array( 'method' => 'textbox', - 'friendly_name' => 'E-Mail Address', - 'description' => 'An E-Mail Address where the User can be reached.', + 'friendly_name' => __('E-Mail Address'), + 'description' => __('An E-Mail Address where the User can be reached.'), 'value' => '|arg1:email_address|', 'max_length' => '128', 'size' => 60 ), 'password' => array( 'method' => 'textbox_password', - 'friendly_name' => 'Password', - 'description' => 'Enter the password for this user twice. Remember that passwords are case sensitive!', + 'friendly_name' => __('Password'), + 'description' => __('Enter the password for this user twice. Remember that passwords are case sensitive!'), 'value' => '', 'max_length' => '255', 'size' => 60 ), 'enabled' => array( 'method' => 'checkbox', - 'friendly_name' => 'Enabled', - 'description' => 'Determines if user is able to login.', + 'friendly_name' => __('Enabled'), + 'description' => __('Determines if user is able to login.'), 'value' => '|arg1:enabled|', 'default' => '' ), 'locked' => array( 'method' => 'checkbox', - 'friendly_name' => 'Locked', - 'description' => 'Determines if the user account is locked.', + 'friendly_name' => __('Locked'), + 'description' => __('Determines if the user account is locked.'), 'value' => '|arg1:locked|', 'default' => '' ), 'grp1' => array( - 'friendly_name' => 'Account Options', + 'friendly_name' => __('Account Options'), 'method' => 'checkbox_group', - 'description' => 'Set any user account specific options here.', + 'description' => __('Set any user account specific options here.'), 'items' => array( 'must_change_password' => array( 'value' => '|arg1:must_change_password|', - 'friendly_name' => 'Must Change Password at Next Login', + 'friendly_name' => __('Must Change Password at Next Login'), 'form_id' => '|arg1:id|', 'default' => '' ), 'password_change' => array( 'value' => '|arg1:password_change|', - 'friendly_name' => 'Change Password', + 'friendly_name' => __('Change Password'), 'form_id' => '|arg1:id|', 'default' => '' ), 'graph_settings' => array( 'value' => '|arg1:graph_settings|', - 'friendly_name' => 'Maintain Custom Graph Settings', + 'friendly_name' => __('Maintain Custom Graph Settings'), 'form_id' => '|arg1:id|', 'default' => 'on' ) ) ), 'grp2' => array( - 'friendly_name' => 'Graph Options', + 'friendly_name' => __('Graph Options'), 'method' => 'checkbox_group', - 'description' => 'Set any graph specific options here.', + 'description' => __('Set any graph specific options here.'), 'items' => array( 'show_tree' => array( 'value' => '|arg1:show_tree|', - 'friendly_name' => 'User Has Rights to Tree View', + 'friendly_name' => __('User Has Rights to Tree View'), 'form_id' => '|arg1:id|', 'default' => 'on' ), 'show_list' => array( 'value' => '|arg1:show_list|', - 'friendly_name' => 'User Has Rights to List View', + 'friendly_name' => __('User Has Rights to List View'), 'form_id' => '|arg1:id|', 'default' => 'on' ), 'show_preview' => array( 'value' => '|arg1:show_preview|', - 'friendly_name' => 'User Has Rights to Preview View', + 'friendly_name' => __('User Has Rights to Preview View'), 'form_id' => '|arg1:id|', 'default' => 'on' ) ) ), 'login_opts' => array( - 'friendly_name' => 'Login Options', + 'friendly_name' => __('Login Options'), 'method' => 'radio', 'default' => '1', - 'description' => 'What to do when this user logs in.', + 'description' => __('What to do when this user logs in.'), 'value' => '|arg1:login_opts|', 'items' => array( 0 => array( 'radio_value' => '1', - 'radio_caption' => 'Show the page that user pointed their browser to.' + 'radio_caption' => __('Show the page that user pointed their browser to.') ), 1 => array( 'radio_value' => '2', - 'radio_caption' => 'Show the default console screen.' + 'radio_caption' => __('Show the default console screen.') ), 2 => array( 'radio_value' => '3', - 'radio_caption' => 'Show the default graph screen.' + 'radio_caption' => __('Show the default graph screen.') ) ) ), 'realm' => array( 'method' => 'drop_array', - 'friendly_name' => 'Authentication Realm', - 'description' => 'Only used if you have LDAP or Web Basic Authentication enabled. Changing this to an non-enabled realm will effectively disable the user.', + 'friendly_name' => __('Authentication Realm'), + 'description' => __('Only used if you have LDAP or Web Basic Authentication enabled. Changing this to an non-enabled realm will effectively disable the user.'), 'value' => '|arg1:realm|', 'default' => 0, 'array' => $auth_realms, @@ -1528,22 +1527,22 @@ $export_types = array( 'graph_template' => array( - 'name' => 'Graph Template', + 'name' => __('Graph Template'), 'title_sql' => 'SELECT name FROM graph_templates WHERE id=|id|', 'dropdown_sql' => 'SELECT id,name FROM graph_templates ORDER BY name' ), 'data_template' => array( - 'name' => 'Data Template', + 'name' => __('Data Template'), 'title_sql' => 'SELECT name FROM data_template WHERE id=|id|', 'dropdown_sql' => 'SELECT id,name FROM data_template ORDER BY name' ), 'host_template' => array( - 'name' => 'Device Template', + 'name' => __('Device Template'), 'title_sql' => 'SELECT name FROM host_template WHERE id=|id|', 'dropdown_sql' => 'SELECT id,name FROM host_template ORDER BY name' ), 'data_query' => array( - 'name' => 'Data Query', + 'name' => __('Data Query'), 'title_sql' => 'SELECT name FROM snmp_query WHERE id=|id|', 'dropdown_sql' => 'SELECT id,name FROM snmp_query ORDER BY name' ) @@ -1551,14 +1550,14 @@ $fields_template_import = array( 'import_file' => array( - 'friendly_name' => 'Import Template from Local File', - 'description' => 'If the XML file containing template data is located on your local machine, select it here.', + 'friendly_name' => __('Import Template from Local File'), + 'description' => __('If the XML file containing template data is located on your local machine, select it here.'), 'method' => 'file' ), 'import_text' => array( 'method' => 'textarea', - 'friendly_name' => 'Import Template from Text', - 'description' => 'If you have the XML file containing template data as text, you can paste it into this box to import it.', + 'friendly_name' => __('Import Template from Text'), + 'description' => __('If you have the XML file containing template data as text, you can paste it into this box to import it.'), 'value' => '', 'default' => '', 'textarea_rows' => '10', @@ -1566,9 +1565,9 @@ 'class' => 'textAreaNotes' ), 'import_data_source_profile' => array( - 'friendly_name' => 'Data Source Profile', + 'friendly_name' => __('Data Source Profile'), 'method' => 'drop_sql', - 'description' => 'Select the Data Source Profile. The Data Source Profile controls polling interval, the data aggregation, and retention policy for the resulting Data Sources.', + 'description' => __('Select the Data Source Profile. The Data Source Profile controls polling interval, the data aggregation, and retention policy for the resulting Data Sources.'), 'sql' => "SELECT * FROM (SELECT '0' AS id, 'Create New From Template' AS name UNION SELECT id, name FROM data_source_profiles ORDER BY name) AS rs", 'value' => '', 'default' => '1' @@ -1578,50 +1577,50 @@ $fields_manager_edit = array( 'host_header' => array( 'method' => 'spacer', - 'friendly_name' => 'General SNMP Entity Options', + 'friendly_name' => __('General SNMP Entity Options'), 'collapsible' => 'true' ), 'description' => array( 'method' => 'textbox', - 'friendly_name' => 'Description', - 'description' => 'Give this SNMP entity a meaningful description.', + 'friendly_name' => __('Description'), + 'description' => __('Give this SNMP entity a meaningful description.'), 'value' => '|arg1:description|', 'max_length' => '250', 'size' => 80 ), 'hostname' => array( 'method' => 'textbox', - 'friendly_name' => 'Hostname', - 'description' => 'Fully qualified hostname or IP address for this device.', + 'friendly_name' => __('Hostname'), + 'description' => __('Fully qualified hostname or IP address for this device.'), 'value' => '|arg1:hostname|', 'max_length' => '250', 'size' => 80 ), 'disabled' => array( 'method' => 'checkbox', - 'friendly_name' => 'Disable SNMP Notification Receiver', - 'description' => 'Check this box if you temporary do not want to sent SNMP notifications to this host.', + 'friendly_name' => __('Disable SNMP Notification Receiver'), + 'description' => __('Check this box if you temporary do not want to sent SNMP notifications to this host.'), 'value' => '|arg1:disabled|', 'default' => '', 'form_id' => false ), 'max_log_size' => array( 'method' => 'drop_array', - 'friendly_name' => 'Maximum Log Size', - 'description' => 'Maximum number of days notification log entries for this receiver need to be stored.', + 'friendly_name' => __('Maximum Log Size'), + 'description' => __('Maximum number of days notification log entries for this receiver need to be stored.'), 'value' => '|arg1:max_log_size|', 'default' => 31, 'array' => array_combine( range(1,31), range(1,31) ) ), 'snmp_options_header' => array( 'method' => 'spacer', - 'friendly_name' => 'SNMP Options', + 'friendly_name' => __('SNMP Options'), 'collapsible' => 'true' ), 'snmp_version' => array( 'method' => 'drop_array', - 'friendly_name' => 'SNMP Version', - 'description' => 'Choose the SNMP version for this device.', + 'friendly_name' => __('SNMP Version'), + 'description' => __('Choose the SNMP version for this device.'), 'on_change' => 'setSNMP()', 'value' => '|arg1:snmp_version|', 'default' => '1', @@ -1629,8 +1628,8 @@ ), 'snmp_community' => array( 'method' => 'textbox', - 'friendly_name' => 'SNMP Community', - 'description' => 'SNMP read community for this device.', + 'friendly_name' => __('SNMP Community'), + 'description' => __('SNMP read community for this device.'), 'value' => '|arg1:snmp_community|', 'form_id' => '|arg1:id|', 'default' => read_config_option('snmp_community'), @@ -1639,8 +1638,8 @@ ), 'snmp_username' => array( 'method' => 'textbox', - 'friendly_name' => 'SNMP Username (v3)', - 'description' => 'SNMP v3 username for this device.', + 'friendly_name' => __('SNMP Username (v3)'), + 'description' => __('SNMP v3 username for this device.'), 'value' => '|arg1:snmp_username|', 'default' => read_config_option('snmp_username'), 'max_length' => '50', @@ -1648,8 +1647,8 @@ ), 'snmp_auth_password' => array( 'method' => 'textbox_password', - 'friendly_name' => 'SNMP Auth Password (v3)', - 'description' => 'SNMP v3 user password for this device.', + 'friendly_name' => __('SNMP Auth Password (v3)'), + 'description' => __('SNMP v3 user password for this device.'), 'value' => '|arg1:snmp_auth_password|', 'default' => read_config_option('snmp_password'), 'max_length' => '50', @@ -1657,16 +1656,16 @@ ), 'snmp_auth_protocol' => array( 'method' => 'drop_array', - 'friendly_name' => 'SNMP Auth Protocol (v3)', - 'description' => 'Choose the SNMPv3 Authorization Protocol.
Note: SHA authentication support is only available if you have OpenSSL installed.', + 'friendly_name' => __('SNMP Auth Protocol (v3)'), + 'description' => __('Choose the SNMPv3 Authorization Protocol.
Note: SHA authentication support is only available if you have OpenSSL installed.'), 'value' => '|arg1:snmp_auth_protocol|', 'default' => read_config_option('snmp_auth_protocol'), 'array' => $snmp_auth_protocols, ), 'snmp_priv_password' => array( 'method' => 'textbox_password', - 'friendly_name' => 'SNMP Privacy Password (v3)', - 'description' => 'Choose the SNMPv3 Privacy Passphrase.', + 'friendly_name' => __('SNMP Privacy Password (v3)'), + 'description' => __('Choose the SNMPv3 Privacy Passphrase.'), 'value' => '|arg1:snmp_priv_password|', 'default' => read_config_option('snmp_priv_passphrase'), 'max_length' => '200', @@ -1674,16 +1673,16 @@ ), 'snmp_priv_protocol' => array( 'method' => 'drop_array', - 'friendly_name' => 'SNMP Privacy Protocol (v3)', - 'description' => 'Choose the SNMPv3 Privacy Protocol.
Note: DES/AES encryption support is only available if you have OpenSSL installed.', + 'friendly_name' => __('SNMP Privacy Protocol (v3)'), + 'description' => __('Choose the SNMPv3 Privacy Protocol.
Note: DES/AES encryption support is only available if you have OpenSSL installed.'), 'value' => '|arg1:snmp_priv_protocol|', 'default' => read_config_option('snmp_priv_protocol'), 'array' => $snmp_priv_protocols, ), 'snmp_context' => array( 'method' => 'textbox', - 'friendly_name' => 'SNMP Context', - 'description' => 'Enter the SNMP Context to use for this device.', + 'friendly_name' => __('SNMP Context'), + 'description' => __('Enter the SNMP Context to use for this device.'), 'value' => '|arg1:snmp_context|', 'default' => '', 'max_length' => '64', @@ -1691,8 +1690,8 @@ ), 'snmp_port' => array( 'method' => 'textbox', - 'friendly_name' => 'SNMP Port', - 'description' => 'The UDP port to be used for SNMP traps. Typically 162.', + 'friendly_name' => __('SNMP Port'), + 'description' => __('The UDP port to be used for SNMP traps. Typically 162.'), 'value' => '|arg1:snmp_port|', 'max_length' => '5', 'default' => '162', @@ -1700,16 +1699,16 @@ ), 'snmp_timeout' => array( 'method' => 'textbox', - 'friendly_name' => 'SNMP Timeout', - 'description' => 'The maximum number of milliseconds Cacti will wait for an SNMP response (does not work with php-snmp support).', + 'friendly_name' => __('SNMP Timeout'), + 'description' => __('The maximum number of milliseconds Cacti will wait for an SNMP response (does not work with php-snmp support).'), 'value' => '|arg1:snmp_timeout|', 'max_length' => '8', 'default' => read_config_option('snmp_timeout'), 'size' => '7' ), 'snmp_message_type' => array( - 'friendly_name' => 'SNMP Message Type', - 'description' => 'SNMP traps are always unacknowledged. To send out acknowledged SNMP notifications, formally called "INFORMS", SNMPv2 or above will be required.', + 'friendly_name' => __('SNMP Message Type'), + 'description' => __('SNMP traps are always unacknowledged. To send out acknowledged SNMP notifications, formally called "INFORMS", SNMPv2 or above will be required.'), 'method' => 'drop_array', 'value' => '|arg1:snmp_message_type|', 'default' => '1', @@ -1717,13 +1716,13 @@ ), 'addition_header' => array( 'method' => 'spacer', - 'friendly_name' => 'Additional Options', + 'friendly_name' => __('Additional Options'), 'collapsible' => 'true' ), 'notes' => array( 'method' => 'textarea', - 'friendly_name' => 'Notes', - 'description' => 'Enter notes to this host.', + 'friendly_name' => __('Notes'), + 'description' => __('Enter notes to this host.'), 'class' => 'textAreaNotes', 'value' => '|arg1:notes|', 'textarea_rows' => '5', @@ -1741,60 +1740,60 @@ /* file: aggregate.php */ $struct_aggregate = array( 'title_format' => array( - 'friendly_name' => 'Title', - 'description' => 'The new Title of the aggregated Graph.', + 'friendly_name' => __('Title'), + 'description' => __('The new Title of the aggregated Graph.'), 'method' => 'textbox', 'max_length' => '255', 'value' => '|arg1:title_format|', 'size' => '80' ), 'gprint_prefix' => array( - 'friendly_name' => 'Prefix', - 'description' => 'A Prefix for all GPRINT lines to distinguish e.g. different hosts.', + 'friendly_name' => __('Prefix'), + 'description' => __('A Prefix for all GPRINT lines to distinguish e.g. different hosts.'), 'method' => 'textbox', 'max_length' => '255', 'value' => '|arg1:gprint_prefix|', 'size' => '40' ), 'aggregate_graph_type' => array( - 'friendly_name' => 'Graph Type', - 'description' => 'Use this Option to create e.g. STACKed graphs.' . '
' . + 'friendly_name' => __('Graph Type'), + 'description' => __('Use this Option to create e.g. STACKed graphs.' . '
' . 'AREA/STACK: 1st graph keeps AREA/STACK items, others convert to STACK' . '
' . 'LINE1: all items convert to LINE1 items' . '
' . 'LINE2: all items convert to LINE2 items' . '
' . - 'LINE3: all items convert to LINE3 items', + 'LINE3: all items convert to LINE3 items'), 'method' => 'drop_array', 'value' => '|arg1:aggregate_graph_type|', 'array' => $agg_graph_types, 'default' => GRAPH_ITEM_TYPE_STACK, ), 'aggregate_total' => array( - 'friendly_name' => 'Totaling', - 'description' => 'Please check those Items that shall be totaled in the "Total" column, when selecting any totaling option here.', + 'friendly_name' => __('Totaling'), + 'description' => __('Please check those Items that shall be totaled in the "Total" column, when selecting any totaling option here.'), 'method' => 'drop_array', 'value' => '|arg1:aggregate_total|', 'array' => $agg_totals, 'default' => AGGREGATE_TOTAL_NONE ), 'aggregate_total_type' => array( - 'friendly_name' => 'Total Type', - 'description' => 'Which type of totaling shall be performed.', + 'friendly_name' => __('Total Type'), + 'description' => __('Which type of totaling shall be performed.'), 'method' => 'drop_array', 'value' => '|arg1:aggregate_total_type|', 'array' => $agg_totals_type, 'default' => AGGREGATE_TOTAL_TYPE_SIMILAR ), 'aggregate_total_prefix' => array( - 'friendly_name' => 'Prefix for GPRINT Totals', - 'description' => 'A Prefix for all totaling GPRINT lines.', + 'friendly_name' => __('Prefix for GPRINT Totals'), + 'description' => __('A Prefix for all totaling GPRINT lines.'), 'method' => 'textbox', 'max_length' => '255', 'value' => '|arg1:aggregate_total_prefix|', 'size' => '40' ), 'aggregate_order_type' => array( - 'friendly_name' => 'Reorder Type', - 'description' => 'Reordering of Graphs.', + 'friendly_name' => __('Reorder Type'), + 'description' => __('Reordering of Graphs.'), 'method' => 'drop_array', 'value' => '|arg1:aggregate_order_type|', 'array' => $agg_order_types, @@ -1809,51 +1808,51 @@ $struct_aggregate_graph = array( 'spacer0' => array( - 'friendly_name' => 'General Settings', + 'friendly_name' => __('General Settings'), 'method' => 'spacer' ), 'title_format' => array( - 'friendly_name' => 'Graph Name', - 'description' => 'Please name this Aggregate Graph.', + 'friendly_name' => __('Graph Name'), + 'description' => __('Please name this Aggregate Graph.'), 'method' => 'textbox', 'max_length' => '255', 'value' => '|arg1:title_format|', 'size' => '80' ), 'template_propogation' => array( - 'friendly_name' => 'Propogation Enabled', - 'description' => 'Is this to carry the template?', + 'friendly_name' => __('Propogation Enabled'), + 'description' => __('Is this to carry the template?'), 'method' => 'checkbox', 'default' => '', 'value' => '|arg1:template_propogation|' ), 'spacer1' => array( - 'friendly_name' => 'Aggregate Graph Settings', + 'friendly_name' => __('Aggregate Graph Settings'), 'method' => 'spacer' ), 'gprint_prefix' => array( - 'friendly_name' => 'Prefix', - 'description' => 'A Prefix for all GPRINT lines to distinguish e.g. different hosts. You may use both Host as well as Data Query replacement variables in this prefix.', + 'friendly_name' => __('Prefix'), + 'description' => __('A Prefix for all GPRINT lines to distinguish e.g. different hosts. You may use both Host as well as Data Query replacement variables in this prefix.'), 'method' => 'textbox', 'max_length' => '255', 'value' => '|arg1:gprint_prefix|', 'size' => '40' ), 'graph_type' => array( - 'friendly_name' => 'Graph Type', - 'description' => 'Use this Option to create e.g. STACKed graphs.' . '
' . + 'friendly_name' => __('Graph Type'), + 'description' => __('Use this Option to create e.g. STACKed graphs.' . '
' . 'AREA/STACK: 1st graph keeps AREA/STACK items, others convert to STACK' . '
' . 'LINE1: all items convert to LINE1 items' . '
' . 'LINE2: all items convert to LINE2 items' . '
' . - 'LINE3: all items convert to LINE3 items', + 'LINE3: all items convert to LINE3 items'), 'method' => 'drop_array', 'value' => '|arg1:graph_type|', 'array' => $agg_graph_types, 'default' => GRAPH_ITEM_TYPE_STACK, ), 'total' => array( - 'friendly_name' => 'Totaling', - 'description' => 'Please check those Items that shall be totaled in the "Total" column, when selecting any totaling option here.', + 'friendly_name' => __('Totaling'), + 'description' => __('Please check those Items that shall be totaled in the "Total" column, when selecting any totaling option here.'), 'method' => 'drop_array', 'value' => '|arg1:total|', 'array' => $agg_totals, @@ -1861,8 +1860,8 @@ 'on_change' => 'changeTotals()', ), 'total_type' => array( - 'friendly_name' => 'Total Type', - 'description' => 'Which type of totaling shall be performed.', + 'friendly_name' => __('Total Type'), + 'description' => __('Which type of totaling shall be performed.'), 'method' => 'drop_array', 'value' => '|arg1:total_type|', 'array' => $agg_totals_type, @@ -1870,16 +1869,16 @@ 'on_change' => 'changeTotalsType()', ), 'total_prefix' => array( - 'friendly_name' => 'Prefix for GPRINT Totals', - 'description' => 'A Prefix for all totaling GPRINT lines.', + 'friendly_name' => __('Prefix for GPRINT Totals'), + 'description' => __('A Prefix for all totaling GPRINT lines.'), 'method' => 'textbox', 'max_length' => '255', 'value' => '|arg1:total_prefix|', 'size' => '40' ), 'order_type' => array( - 'friendly_name' => 'Reorder Type', - 'description' => 'Reordering of Graphs.', + 'friendly_name' => __('Reorder Type'), + 'description' => __('Reordering of Graphs.'), 'method' => 'drop_array', 'value' => '|arg1:order_type|', 'array' => $agg_order_types, @@ -1909,20 +1908,20 @@ $struct_aggregate_template = array( 'spacer0' => array( - 'friendly_name' => 'General Settings', + 'friendly_name' => __('General Settings'), 'method' => 'spacer' ), 'name' => array( - 'friendly_name' => 'Aggregate Template Name', - 'description' => 'Please name this Aggregate Template.', + 'friendly_name' => __('Aggregate Template Name'), + 'description' => __('Please name this Aggregate Template.'), 'method' => 'textbox', 'max_length' => '255', 'value' => '|arg1:name|', 'size' => '80' ), 'graph_template_id' => array( - 'friendly_name' => 'Source Graph Template', - 'description' => 'The Graph Template that this Aggregate Template is based upon.', + 'friendly_name' => __('Source Graph Template'), + 'description' => __('The Graph Template that this Aggregate Template is based upon.'), 'method' => 'drop_sql', 'value' => '|arg1:graph_template_id|', 'sql' => 'SELECT id, name FROM graph_templates ORDER BY name', @@ -1930,32 +1929,32 @@ 'none_value' => 'None' ), 'spacer1' => array( - 'friendly_name' => 'Aggregate Template Settings', + 'friendly_name' => __('Aggregate Template Settings'), 'method' => 'spacer' ), 'gprint_prefix' => array( - 'friendly_name' => 'Prefix', - 'description' => 'A Prefix for all GPRINT lines to distinguish e.g. different hosts. You may use both Host as well as Data Query replacement variables in this prefix.', + 'friendly_name' => __('Prefix'), + 'description' => __('A Prefix for all GPRINT lines to distinguish e.g. different hosts. You may use both Host as well as Data Query replacement variables in this prefix.'), 'method' => 'textbox', 'max_length' => '255', 'value' => '|arg1:gprint_prefix|', 'size' => '40' ), 'graph_type' => array( - 'friendly_name' => 'Graph Type', - 'description' => 'Use this Option to create e.g. STACKed graphs.' . '
' . + 'friendly_name' => __('Graph Type'), + 'description' => __('Use this Option to create e.g. STACKed graphs.' . '
' . 'AREA/STACK: 1st graph keeps AREA/STACK items, others convert to STACK' . '
' . 'LINE1: all items convert to LINE1 items' . '
' . 'LINE2: all items convert to LINE2 items' . '
' . - 'LINE3: all items convert to LINE3 items', + 'LINE3: all items convert to LINE3 items'), 'method' => 'drop_array', 'value' => '|arg1:graph_type|', 'array' => $agg_graph_types, 'default' => GRAPH_ITEM_TYPE_STACK, ), 'total' => array( - 'friendly_name' => 'Totaling', - 'description' => 'Please check those Items that shall be totaled in the "Total" column, when selecting any totaling option here.', + 'friendly_name' => __('Totaling'), + 'description' => __('Please check those Items that shall be totaled in the "Total" column, when selecting any totaling option here.'), 'method' => 'drop_array', 'value' => '|arg1:total|', 'array' => $agg_totals, @@ -1963,8 +1962,8 @@ 'on_change' => 'changeTotals()', ), 'total_type' => array( - 'friendly_name' => 'Total Type', - 'description' => 'Which type of totaling shall be performed.', + 'friendly_name' => __('Total Type'), + 'description' => __('Which type of totaling shall be performed.'), 'method' => 'drop_array', 'value' => '|arg1:total_type|', 'array' => $agg_totals_type, @@ -1972,16 +1971,16 @@ 'on_change' => 'changeTotalsType()', ), 'total_prefix' => array( - 'friendly_name' => 'Prefix for GPRINT Totals', - 'description' => 'A Prefix for all totaling GPRINT lines.', + 'friendly_name' => __('Prefix for GPRINT Totals'), + 'description' => __('A Prefix for all totaling GPRINT lines.'), 'method' => 'textbox', 'max_length' => '255', 'value' => '|arg1:total_prefix|', 'size' => '40' ), 'order_type' => array( - 'friendly_name' => 'Reorder Type', - 'description' => 'Reordering of Graphs.', + 'friendly_name' => __('Reorder Type'), + 'description' => __('Reordering of Graphs.'), 'method' => 'drop_array', 'value' => '|arg1:order_type|', 'array' => $agg_order_types, @@ -2000,11 +1999,11 @@ /* file: color_templates.php, action: template_edit */ $struct_color_template = array( 'title' => array( - 'friendly_name' => 'Title', + 'friendly_name' => __('Title'), 'method' => 'textbox', 'max_length' => '255', 'default' => '', - 'description' => 'The name of this Color Template.', + 'description' => __('The name of this Color Template.'), 'size' => '80' ) ); @@ -2012,10 +2011,10 @@ /* file: color_templates.php, action: item_edit */ $struct_color_template_item = array( 'color_id' => array( - 'friendly_name' => 'Color', + 'friendly_name' => __('Color'), 'method' => 'drop_color', 'default' => '0', - 'description' => 'A nice Color', + 'description' => __('A nice Color'), 'value' => '|arg1:color_id|', ) ); @@ -2024,8 +2023,8 @@ $fields_color_template_template_edit = array( 'name' => array( 'method' => 'textbox', - 'friendly_name' => 'Name', - 'description' => 'A useful name for this Template.', + 'friendly_name' => __('Name'), + 'description' => __('A useful name for this Template.'), 'value' => '|arg1:name|', 'max_length' => '255', 'size' => '80' @@ -2039,40 +2038,40 @@ $fields_automation_match_rule_item_edit = array( 'operation' => array( 'method' => 'drop_array', - 'friendly_name' => 'Operation', - 'description' => 'Logical operation to combine rules.', + 'friendly_name' => __('Operation'), + 'description' => __('Logical operation to combine rules.'), 'array' => $automation_oper, 'value' => '|arg1:operation|', 'on_change' => 'toggle_operation()', ), 'field' => array( 'method' => 'drop_array', - 'friendly_name' => 'Field Name', - 'description' => 'The Field Name that shall be used for this Rule Item.', + 'friendly_name' => __('Field Name'), + 'description' => __('The Field Name that shall be used for this Rule Item.'), 'array' => array(), # to be filled dynamically 'value' => '|arg1:field|', - 'none_value' => 'None', + 'none_value' => __('None'), ), 'operator' => array( 'method' => 'drop_array', - 'friendly_name' => 'Operator', - 'description' => 'Operator.', + 'friendly_name' => __('Operator'), + 'description' => __('Operator.'), 'array' => $automation_op_array['display'], 'value' => '|arg1:operator|', 'on_change' => 'toggle_operator()', ), 'pattern' => array( 'method' => 'textbox', - 'friendly_name' => 'Matching Pattern', - 'description' => 'The Pattern to be matched against.', + 'friendly_name' => __('Matching Pattern'), + 'description' => __('The Pattern to be matched against.'), 'value' => '|arg1:pattern|', 'max_length' => '255', 'size' => '50', ), 'sequence' => array( 'method' => 'view', - 'friendly_name' => 'Sequence', - 'description' => 'Sequence.', + 'friendly_name' => __('Sequence'), + 'description' => __('Sequence.'), 'value' => '|arg1:sequence|', ) ); @@ -2081,40 +2080,40 @@ $fields_automation_graph_rule_item_edit = array( 'operation' => array( 'method' => 'drop_array', - 'friendly_name' => 'Operation', - 'description' => 'Logical operation to combine rules.', + 'friendly_name' => __('Operation'), + 'description' => __('Logical operation to combine rules.'), 'array' => $automation_oper, 'value' => '|arg1:operation|', 'on_change' => 'toggle_operation()', ), 'field' => array( 'method' => 'drop_array', - 'friendly_name' => 'Field Name', - 'description' => 'The Field Name that shall be used for this Rule Item.', + 'friendly_name' => __('Field Name'), + 'description' => __('The Field Name that shall be used for this Rule Item.'), 'array' => array(), # later to be filled dynamically 'value' => '|arg1:field|', - 'none_value' => 'None', + 'none_value' => __('None'), ), 'operator' => array( 'method' => 'drop_array', - 'friendly_name' => 'Operator', - 'description' => 'Operator.', + 'friendly_name' => __('Operator'), + 'description' => __('Operator.'), 'array' => $automation_op_array['display'], 'value' => '|arg1:operator|', 'on_change' => 'toggle_operator()', ), 'pattern' => array( 'method' => 'textbox', - 'friendly_name' => 'Matching Pattern', - 'description' => 'The Pattern to be matched against.', + 'friendly_name' => __('Matching Pattern'), + 'description' => __('The Pattern to be matched against.'), 'value' => '|arg1:pattern|', 'max_length' => '255', 'size' => '50', ), 'sequence' => array( 'method' => 'view', - 'friendly_name' => 'Sequence', - 'description' => 'Sequence.', + 'friendly_name' => __('Sequence'), + 'description' => __('Sequence.'), 'value' => '|arg1:sequence|', ) ); @@ -2122,16 +2121,16 @@ $fields_automation_graph_rules_edit1 = array( 'name' => array( 'method' => 'textbox', - 'friendly_name' => 'Name', - 'description' => 'A useful name for this Rule.', + 'friendly_name' => __('Name'), + 'description' => __('A useful name for this Rule.'), 'value' => '|arg1:name|', 'max_length' => '255', 'size' => '80' ), 'snmp_query_id' => array( 'method' => 'drop_sql', - 'friendly_name' => 'Data Query', - 'description' => 'Choose a Data Query to apply to this rule.', + 'friendly_name' => __('Data Query'), + 'description' => __('Choose a Data Query to apply to this rule.'), 'value' => '|arg1:snmp_query_id|', 'on_change' => 'applySNMPQueryIdChange()', 'sql' => 'SELECT id, name FROM snmp_query ORDER BY name' @@ -2141,8 +2140,8 @@ $fields_automation_graph_rules_edit2 = array( 'graph_type_id' => array( 'method' => 'drop_sql', - 'friendly_name' => 'Graph Type', - 'description' => 'Choose any of the available Graph Types to apply to this rule.', + 'friendly_name' => __('Graph Type'), + 'description' => __('Choose any of the available Graph Types to apply to this rule.'), 'value' => '|arg1:graph_type_id|', 'on_change' => 'applySNMPQueryTypeChange()', 'sql' => 'SELECT ' . @@ -2159,8 +2158,8 @@ $fields_automation_graph_rules_edit3 = array( 'enabled' => array( 'method' => 'checkbox', - 'friendly_name' => 'Enable Rule', - 'description' => 'Check this box to enable this rule.', + 'friendly_name' => __('Enable Rule'), + 'description' => __('Check this box to enable this rule.'), 'value' => '|arg1:enabled|', 'default' => '', 'form_id' => false @@ -2171,32 +2170,32 @@ $fields_automation_tree_rules_edit1 = array( 'name' => array( 'method' => 'textbox', - 'friendly_name' => 'Name', - 'description' => 'A useful name for this Rule.', + 'friendly_name' => __('Name'), + 'description' => __('A useful name for this Rule.'), 'value' => '|arg1:name|', 'max_length' => '255', 'size' => '80' ), 'tree_id' => array( 'method' => 'drop_sql', - 'friendly_name' => 'Tree', - 'description' => 'Choose a Tree for the new Tree Items.', + 'friendly_name' => __('Tree'), + 'description' => __('Choose a Tree for the new Tree Items.'), 'value' => '|arg1:tree_id|', 'on_change' => 'applyTreeChange()', 'sql' => 'SELECT id, name FROM graph_tree ORDER BY name' ), 'leaf_type' => array( 'method' => 'drop_array', - 'friendly_name' => 'Leaf Item Type', - 'description' => 'The Item Type that shall be dynamically added to the tree.', + 'friendly_name' => __('Leaf Item Type'), + 'description' => __('The Item Type that shall be dynamically added to the tree.'), 'value' => '|arg1:leaf_type|', 'on_change' => 'applyItemTypeChange()', 'array' => $automation_tree_item_types ), 'host_grouping_type' => array( 'method' => 'drop_array', - 'friendly_name' => 'Graph Grouping Style', - 'description' => 'Choose how graphs are grouped when drawn for this particular host on the tree.', + 'friendly_name' => __('Graph Grouping Style'), + 'description' => __('Choose how graphs are grouped when drawn for this particular host on the tree.'), 'array' => $host_group_types, 'value' => '|arg1:host_grouping_type|', 'default' => HOST_GROUPING_GRAPH_TEMPLATE, @@ -2206,9 +2205,9 @@ $fields_automation_tree_rules_edit2 = array( 'tree_item_id' => array( 'method' => 'drop_tree', - 'friendly_name' => 'Optional: Sub-Tree Item', - 'description' => 'Choose a Sub-Tree Item to hook in.' . '
' . - 'Make sure, that it is still there when this rule is executed!', + 'friendly_name' => __('Optional: Sub-Tree Item'), + 'description' => __('Choose a Sub-Tree Item to hook in.' . '
' . + 'Make sure, that it is still there when this rule is executed!'), 'tree_id' => '|arg1:tree_id|', 'value' => '|arg1:tree_item_id|', ) @@ -2217,8 +2216,8 @@ $fields_automation_tree_rules_edit3 = array( 'enabled' => array( 'method' => 'checkbox', - 'friendly_name' => 'Enable Rule', - 'description' => 'Check this box to enable this rule.', + 'friendly_name' => __('Enable Rule'), + 'description' => __('Check this box to enable this rule.'), 'value' => '|arg1:enabled|', 'default' => '', 'form_id' => false @@ -2228,8 +2227,8 @@ $fields_automation_tree_rule_item_edit = array( 'field' => array( 'method' => 'drop_array', - 'friendly_name' => 'Header Type', - 'description' => 'Choose an Object to build a new Subheader.', + 'friendly_name' => __('Header Type'), + 'description' => __('Choose an Object to build a new Subheader.'), 'array' => array(), # later to be filled dynamically 'value' => '|arg1:field|', 'none_value' => $automation_tree_header_types[AUTOMATION_TREE_ITEM_TYPE_STRING], @@ -2237,42 +2236,40 @@ ), 'sort_type' => array( 'method' => 'drop_array', - 'friendly_name' => 'Sorting Type', - 'description' => 'Choose how items in this tree will be sorted.', + 'friendly_name' => __('Sorting Type'), + 'description' => __('Choose how items in this tree will be sorted.'), 'value' => '|arg1:sort_type|', 'default' => TREE_ORDERING_NONE, 'array' => $tree_sort_types, ), 'propagate_changes' => array( 'method' => 'checkbox', - 'friendly_name' => 'Propagate Changes', - 'description' => "Propagate all options on this form (except for 'Title') to all child 'Header' items.", + 'friendly_name' => __('Propagate Changes'), + 'description' => __('Propagate all options on this form (except for \'Title\') to all child \'Header\' items.'), 'value' => '|arg1:propagate_changes|', 'default' => '', 'form_id' => false ), 'search_pattern' => array( 'method' => 'textbox', - 'friendly_name' => 'Matching Pattern', - 'description' => 'The String Pattern (Regular Expression) to match against.
' . - "Enclosing '/' must NOT be provided!", + 'friendly_name' => __('Matching Pattern'), + 'description' => __('The String Pattern (Regular Expression) to match against.
Enclosing \'/\' must NOT be provided!'), 'value' => '|arg1:search_pattern|', 'max_length' => '255', 'size' => '50', ), 'replace_pattern' => array( 'method' => 'textbox', - 'friendly_name' => 'Replacement Pattern', - 'description' => 'The Replacement String Pattern for use as a Tree Header.' . '
' . - "Refer to a Match by e.g. \${1} for the first match!", + 'friendly_name' => __('Replacement Pattern'), + 'description' => __('The Replacement String Pattern for use as a Tree Header.
Refer to a Match by e.g. \${1} for the first match!'), 'value' => '|arg1:replace_pattern|', 'max_length' => '255', 'size' => '50', ), 'sequence' => array( 'method' => 'view', - 'friendly_name' => 'Sequence', - 'description' => 'Sequence.', + 'friendly_name' => __('Sequence'), + 'description' => __('Sequence.'), 'value' => '|arg1:sequence|', ) );