# coding=utf-8
"""Wizard Strings."""

from safe.utilities.i18n import tr

__copyright__ = "Copyright 2016, The InaSAFE Project"
__license__ = "GPL version 3"
__email__ = "info@inasafe.org"
__revision__ = '$Format:%H$'

category_question = tr(
    'By following the simple steps in this wizard, you can assign '
    'keywords to your layer: <b>%s</b>. First you need to define the purpose '
    'of your layer. Is it a <b>hazard</b>, <b>exposure</b>, or '
    '<b>aggregation</b> layer? ')  # (layer name)
category_question_hazard = tr(
    'You have selected a layer that needs to have keywords assigned or '
    'updated. In the next steps you can assign keywords to that layer. '
    'First you need to confirm the layer is a <b>hazard</b> layer.')
category_question_exposure = tr(
    'You have selected a layer that needs to have keywords assigned or '
    'updated. In the next steps you can assign keywords to that layer. '
    'First you need to confirm the layer is an <b>exposure</b>.')
category_question_aggregation = tr(
    'You have selected a layer that needs to have keywords assigned or '
    'updated. In the next steps you can assign keywords to that layer. '
    'First you need to confirm the layer is an <b>aggregation</b> layer.')
hazard_category_question = tr(
    'What type of <b>hazard scenario</b> does this layer represent? '
    '<p>Does it represent a <b>single event</b> or <b>multiple events</b>?'
    '</p>')
hazard_question = tr(
    'What kind of <b>hazard</b> does this layer represent? '
    '<p>The choice you make here will determine which impact functions this '
    'hazard layer can be used with. For example, if you choose <b>flood</b> '
    'you will be able to use this hazard layer with impact functions such '
    'as <b>flood impact on population</b>.</p>')
exposure_question = tr(
    'What kind of <b>exposure</b> does this layer represent? '
    'Is it a <b>population</b>, <b>structure</b>, <b>area</b>, or '
    '<b>road</b> layer? '
    '<p>The choice you make here will determine '
    'which impact functions this exposure layer can be used with. '
    'For example, if you choose <b>population</b> you will be able to use '
    'this exposure layer with impact functions such as <b>flood impact on '
    'population</b>.</p>')
layer_mode_raster_question = tr(
    'You have selected <b>%s %s</b> for this raster layer. '
    '<p>We need to know whether each cell in this raster represents '
    '<b>continuous</b> data or if the data have been <b>classified</b>.</p>'
)  # (subcategory, layer purpose)
layer_mode_vector_question = tr(
    'You have selected <b>%s</b> for this <b>%s</b> layer. '
    '<p>We need to confirm that attribute values represents <b>continuous</b> '
    'data or if the data have been <b>classified</b>.</p>'
)  # (subcategory, layer purpose)
layer_mode_vector_classified_confirm = tr(
    'You have selected <b>%s</b> for this <b>%s</b> layer. '
    '<p>We need to confirm that attribute values in this vector layer have '
    'been <b>classified</b> and are represented by a code.</p>'
)  # (subcategory, layer purpose)
layer_mode_vector_continuous_confirm = tr(
    'You have selected <b>%s</b> for this <b>%s</b> layer. '
    '<p>We need to confirm that attribute values represents '
    '<b>continuous</b> data.</p>')  # (subcategory, layer purpose)
unit_question = tr(
    'You have selected <b>%s</b> for this <b>%s</b> layer type. '
    '<p>We need to know what units the continuous data are in. For example in '
    'a raster layer, each cell might represent depth in metres or depth in '
    'feet.</p>')  # (subcategory, layer purpose)

flood_metres_question = tr('flood depth in metres')
flood_feet_question = tr('flood depth in feet')
flood_wetdry_question = tr('flood extent as wet/dry')

tsunami_metres_question = tr('tsunami depth in metres')
tsunami_feet_depth_question = tr('tsunami depth in feet')
tsunami_wetdry_question = tr('tsunami extent as wet/dry')

earthquake_mmi_question = tr('earthquake intensity in MMI')

tephra_kgm2_question = tr('tephra intensity in kg/m<sup>2</sup>')

volcano_volcano_categorical_question = tr('volcano hazard categorical level')

cyclone_kilometres_per_hour_question = tr('wind speed in km/h')
cyclone_miles_per_hour_question = tr('wind speed in mph')
cyclone_knots_question = tr('wind speed in kn')

population_count_question = tr('the number of people')
population_density_question = tr('people density in people/km<sup>2</sup>')

road_road_type_question = tr('type for your road')
structure_building_type_question = tr('type for your building')

field_question_subcategory_unit = tr(
    'You have selected a <b>%s %s</b> for the vector layer measured in '
    '<b>%s</b>. Please select the attribute in this layer that represents %s.'
)  # (layer purpose, subcategory, unit, subcategory-unit relation)
field_question_subcategory_classified = tr(
    'You have selected <b>classified</b> data for the vector <b>%s</b> layer. '
    'Please select the attribute in this layer that represents the classes.'
)
field_question_population_field = tr(
    'You have selected <b>place</b> as an exposure input for the vector '
    '<b>%s</b> layer. Please select the attribute in this layer that '
    'represents the population. If you do not have one, let this step empty '
    'and click the next button.'
)
field_question_name_field = tr(
    'You have selected <b>place</b> as an exposure input for the vector '
    '<b>%s</b> layer. Please select the attribute in this layer that '
    'represents the name.'
)
field_question_subcategory_classified_id = tr(
    'You have selected <b>classified</b> data for the vector <b>%s</b> layer. '
    'Please select the attribute in this layer that represents the ids.'
)  # (layer purpose, subcategory)
field_question_aggregation = tr(
    'You have selected a vector <b>aggregation</b> layer. Please select the '
    'attribute in this layer that has the names of the aggregation areas.')
classification_question = tr(
    'You have selected <b>%s %s</b> for this classified data. '
    'Please select the type of classification you want to use. '
)  # (subcategory, layer purpose)
classify_vector_question = tr(
    'You have selected <b>%s %s</b> classified by <b>%s</b>, '
    'and the attribute is <b>%s</b>. '
    'Please drag unique values from the list on the left '
    'into the panel on the right and place them in the appropriate categories.'
)  # (subcategory, layer purpose, classification, field)
classify_raster_question = tr(
    'You have selected <b>%s %s</b> classified by <b>%s</b>, '
    'for the raster layer. '
    'Please drag unique values from the list on the left '
    'into the panel on the right and place them in the appropriate categories.'
)  # (subcategory, layer purpose, classification)
continuous_vector_question = tr(
    'You have selected <b>%s %s</b> as a <b>continuous</b> layer and the '
    'attribute is <b>%s</b> with <b>%s</b>. '
    'Please input the minimum and maximum value for each class below. '
    'Minimum value will be excluded in the range, while maximum value will be '
    'included. The minimum value from the layer is <b>%s</b> and the maximum '
    'value is <b>%s</b>.'
)  # (subcategory, purpose, field, classification, min value, max value)
continuous_raster_question = tr(
    'You have selected <b>%s %s</b> as a <b>continuous</b> layer with '
    '<b>%s</b>. Minimum value will be excluded in the range, while maximum '
    'value will be included. Please input the minimum and maximum value for '
    'each class below. The minimum value from the layer is <b>%s</b> and the '
    'maximum value is <b>%s</b>.'
)  # (subcategory, purpose, classification, min value, max value)
select_function_constraints2_question = tr(
    'You selected <b>%s</b> hazard and <b>%s</b> exposure. Now, select the '
    '<b>geometry types</b> for the hazard and exposure layers you want to '
    'use. Click on the cell in the table below that matches '
    'the geometry type for each.')  # (hazard, exposure)
select_function_question = tr(
    '<p>You have selected <b>%s %s</b> hazard and <b>%s %s</b> exposure. '
    'Below you can see a list of available <b>impact functions</b> matching '
    'the selected hazard, exposure and their geometries. Please choose which '
    'impact function you would like to use from the list below.</p> '
    '<p>Please note some functions may require either continuous or '
    'classified input data. A <b>continuous</b> raster is one where cell '
    'values are real data values such as: depth of flood water in metres or '
    'the number of people per cell. A <b>classified</b> raster is one where '
    'cell values represent classes or zones such as: high hazard zone, '
    'medium hazard zone, low hazard zone.</p>'
)  # (haz_geom, haz, expo_geom, exp)
select_hazard_origin_question = tr(
    '<p>You selected <b>%s %s</b> as hazard input.</p> '
    '<p>Please help us to find your <b>hazard</b> layer. A hazard layer '
    'represents something that will impact the people or infrastructure '
    'in an area. '
    'For example flood, earthquake and tsunami inundation are all different '
    'kinds of hazards. Select the appropriate option below to indicate '
    'where your data resides:</p>')  # (hazard_geom, hazard)
select_hazlayer_from_canvas_question = tr(
    '<p>You selected <b>%s %s</b> as hazard input.</p> '
    '<p>These are suitable layers currently loaded in QGIS. Please choose '
    'the hazard layer that you would like to use for your assessment.</p>'
)  # (hazard_geom, hazard)
select_hazlayer_from_browser_question = tr(
    '<p>You selected <b>%s %s</b> as hazard input.</p> '
    '<p>Please choose the hazard layer that you would like to use '
    'for your assessment.</p>')  # (exposure_geom, exposure)
select_exposure_origin_question = tr(
    '<p>You selected <b>%s %s</b> as exposure input.</p>'
    '<p>Please help us to find your <b>exposure</b> layer. An exposure layer '
    'represents people, property or infrastructure that may be affected in '
    'the event of a flood, earthquake, volcano etc. Select an appropriate '
    'option below to indicate where your data can be found:</p>'
)  # (exposure_geom, exposure)
select_explayer_from_canvas_question = tr(
    '<p>You selected <b>%s %s</b> as exposure input.</p>'
    '<p>These are suitable layers currently loaded in QGIS. Please choose '
    'the exposure layer that you would like to use for your '
    'assessment.</p>')  # (exposure_geom, exposure)
select_explayer_from_browser_question = tr(
    '<p>You selected <b>%s %s</b> as exposure input</p>'
    '<p>Please choose the exposure layer that you would like to use '
    'for your assessment.</p>')  # (exposure_geom, exposure)
create_postGIS_connection_first = tr(
    '<html>In order to use PostGIS layers, please close the wizard, '
    'create a new PostGIS connection and run the wizard again. <br/><br/> '
    'You can manage connections under the '
    '<i>Layer</i> > <i>Add Layer</i> > <i>Add PostGIS Layers</i> '
    'menu.</html>')
multiple_classified_hazard_classifications_vector = tr(
    # (subcategory, layer purpose, field)
    'You have selected <b>%s %s</b> and attribute <b>%s</b>. Please select '
    'hazard classifications for each exposure type. If you want to edit the '
    'value mapping, you can click edit button next to each and you can do '
    'value mapping in the right panel. Do not forget to save the value '
    'mapping before you continue to the next step.')
multiple_classified_hazard_classifications_raster = tr(
    # (subcategory, layer purpose)
    'You have selected <b>%s %s</b>. Please select hazard classifications for '
    'each exposure type. If you want to edit the value mapping, you can click '
    'edit button next to each and you can do value mapping in the right '
    'panel. Do not forget to save the value mapping before you continue to '
    'the next step.')
multiple_continuous_hazard_classifications_vector = tr(
    # (subcategory, layer purpose, field)
    'You have selected <b>%s %s</b> and attribute <b>%s</b>. Please select '
    'hazard classifications for each exposure type. If you want to edit the '
    'thresholds, you can click edit button next to each and you can edit the '
    'threshold in the right panel. Do not forget to save the thresholds '
    'before you continue to the next step.')
multiple_continuous_hazard_classifications_raster = tr(
    # (subcategory, layer purpose)
    'You have selected <b>%s %s</b>. Please select hazard classifications for '
    'each exposure type. If you want to edit the thresholds, you can click '
    'edit button next to each and you can edit the threshold in the right '
    'panel. Do not forget to save the thresholds before you continue to the '
    'next step.')
