diff --git a/i18n/inasafe_af.ts b/i18n/inasafe_af.ts index ca9783ecd6..f8ce3a1681 100644 --- a/i18n/inasafe_af.ts +++ b/i18n/inasafe_af.ts @@ -6090,7 +6090,7 @@ p, li { white-space: pre-wrap; } - You have selected <b>%s %s</b> for this <b>%s data</b> raster layer. For some exposure types you may want InaSAFE to not resample the raster to the hazard layer resolution during analyses. Please select the check box below if you want to set the <i>allow_resample</i> keyword to <i>False</i>. + You have selected <b>%s %s</b> for this <b>%s data</b> raster layer. For some exposure types you may want InaSAFE to not resample the raster to the hazard layer resolution during analyses. Please select the check box below if you want to set the <i>allow_resampling</i> keyword to <i>False</i>. @@ -6553,4 +6553,4 @@ Please step back and select another layer. - \ No newline at end of file + diff --git a/i18n/inasafe_en.ts b/i18n/inasafe_en.ts index da55c802b5..9a7ac7930b 100644 --- a/i18n/inasafe_en.ts +++ b/i18n/inasafe_en.ts @@ -6101,7 +6101,7 @@ p, li { white-space: pre-wrap; } - You have selected <b>%s %s</b> for this <b>%s data</b> raster layer. For some exposure types you may want InaSAFE to not resample the raster to the hazard layer resolution during analyses. Please select the check box below if you want to set the <i>allow_resample</i> keyword to <i>False</i>. + You have selected <b>%s %s</b> for this <b>%s data</b> raster layer. For some exposure types you may want InaSAFE to not resample the raster to the hazard layer resolution during analyses. Please select the check box below if you want to set the <i>allow_resampling</i> keyword to <i>False</i>. diff --git a/i18n/inasafe_es_ES.ts b/i18n/inasafe_es_ES.ts index 7d1bd0c183..d92054ae66 100644 --- a/i18n/inasafe_es_ES.ts +++ b/i18n/inasafe_es_ES.ts @@ -6090,7 +6090,7 @@ p, li { white-space: pre-wrap; } - You have selected <b>%s %s</b> for this <b>%s data</b> raster layer. For some exposure types you may want InaSAFE to not resample the raster to the hazard layer resolution during analyses. Please select the check box below if you want to set the <i>allow_resample</i> keyword to <i>False</i>. + You have selected <b>%s %s</b> for this <b>%s data</b> raster layer. For some exposure types you may want InaSAFE to not resample the raster to the hazard layer resolution during analyses. Please select the check box below if you want to set the <i>allow_resampling</i> keyword to <i>False</i>. @@ -6553,4 +6553,4 @@ Please step back and select another layer. - \ No newline at end of file + diff --git a/i18n/inasafe_fr.ts b/i18n/inasafe_fr.ts index b9bd84c074..6bd08fc7db 100644 --- a/i18n/inasafe_fr.ts +++ b/i18n/inasafe_fr.ts @@ -6090,7 +6090,7 @@ p, li { white-space: pre-wrap; } - You have selected <b>%s %s</b> for this <b>%s data</b> raster layer. For some exposure types you may want InaSAFE to not resample the raster to the hazard layer resolution during analyses. Please select the check box below if you want to set the <i>allow_resample</i> keyword to <i>False</i>. + You have selected <b>%s %s</b> for this <b>%s data</b> raster layer. For some exposure types you may want InaSAFE to not resample the raster to the hazard layer resolution during analyses. Please select the check box below if you want to set the <i>allow_resampling</i> keyword to <i>False</i>. @@ -6553,4 +6553,4 @@ Please step back and select another layer. - \ No newline at end of file + diff --git a/i18n/inasafe_id.qm b/i18n/inasafe_id.qm index ade0dfd822..373b101a88 100644 Binary files a/i18n/inasafe_id.qm and b/i18n/inasafe_id.qm differ diff --git a/i18n/inasafe_id.ts b/i18n/inasafe_id.ts index 849a515d55..0d84c3eca6 100644 --- a/i18n/inasafe_id.ts +++ b/i18n/inasafe_id.ts @@ -6153,8 +6153,8 @@ p, li { white-space: pre-wrap; } - You have selected <b>%s %s</b> for this <b>%s data</b> raster layer. For some exposure types you may want InaSAFE to not resample the raster to the hazard layer resolution during analyses. Please select the check box below if you want to set the <i>allow_resample</i> keyword to <i>False</i>. - Anda telah memilih <b>%s %s</b>untuk lapisan raster <b>data %s</b> ini. Untuk beberapa jenis keterpaparan, Anda mungkin tidak ingin InaSAFE untuk melakukan resampling lapisan raster ke resolusi lapisan ancaman selama melakukan analisis. Silahkan pilih check box di bawah ini jika Anda ingin mengeset <i>allow_resample</i> menjadi <i>False</>. + You have selected <b>%s %s</b> for this <b>%s data</b> raster layer. For some exposure types you may want InaSAFE to not resample the raster to the hazard layer resolution during analyses. Please select the check box below if you want to set the <i>allow_resampling</i> keyword to <i>False</i>. + Anda telah memilih <b>%s %s</b>untuk lapisan raster <b>data %s</b> ini. Untuk beberapa jenis keterpaparan, Anda mungkin tidak ingin InaSAFE untuk melakukan resampling lapisan raster ke resolusi lapisan ancaman selama melakukan analisis. Silahkan pilih check box di bawah ini jika Anda ingin mengeset <i>allow_resampling</i> menjadi <i>False</>. @@ -6627,4 +6627,4 @@ Silahkan mundur ke langkah sebelumnya dan pilih lapisan lainnya. <html><head/><body><p>Cara lain, <a href="define_user_extent"> <span style=" text-decoration: underline; color:#e85290;">definisikan luasan analisis sekarang...</span></a></p></body></html> - \ No newline at end of file + diff --git a/safe/gui/tools/wizard_dialog.py b/safe/gui/tools/wizard_dialog.py index 2b8f6e74cd..0ff1a320f1 100644 --- a/safe/gui/tools/wizard_dialog.py +++ b/safe/gui/tools/wizard_dialog.py @@ -180,9 +180,9 @@ allow_resampling_question = QApplication.translate( 'WizardDialog', 'You have selected %s %s for this %s data raster layer. ' - 'For some exposure types you may want InaSAFE to not resample ' - 'the raster to the hazard layer resolution during analyses. Please ' - 'select the check box below if you want to set the allow_resample ' + 'For some exposure types you may want InaSAFE to not resample the raster ' + 'to the hazard layer resolution during analyses. Please select the ' + 'check box below if you want to set the allow_resampling ' 'keyword to False.') # (subcategory, category, layer_mode) # Constants for subcategory-unit relations @@ -1423,12 +1423,12 @@ def set_widgets_step_kw_field(self): # STEP_KW_RESAMPLE # =========================== - def selected_allowresample(self): - """Obtain the allow_resample state selected by user. + def selected_allowresampling(self): + """Obtain the allow_resampling state selected by user. .. note:: Returns none if not set or not relevant - :returns: Value of the allow_resample or None for not-set. + :returns: Value of the allow_resampling or None for not-set. :rtype: boolean or None """ if not is_raster_layer(self.layer): @@ -1453,7 +1453,7 @@ def set_widgets_step_kw_resample(self): category['name'], layer_mode['name'])) # Set value based on existing keyword (if already assigned) - if self.get_existing_keyword('allow_resample') is False: + if self.get_existing_keyword('allow_resampling') is False: self.chkAllowResample.setChecked(True) # =========================== @@ -2508,6 +2508,9 @@ def set_widgets_step_fc_function_3(self): icon_path = resources_path('img', 'wizard', 'keyword-category-aggregation.svg') + # Temporarily hide aggregation icon until we have one suitable + # (as requested in a comment to PR #2060) + icon_path = None self.lblIconIFCWAggregationOrigin.setPixmap(QPixmap(icon_path)) self.lblIconIFCWAggregationFromCanvas.setPixmap(QPixmap(icon_path)) self.lblIconIFCWAggregationFromBrowser.setPixmap(QPixmap(icon_path)) @@ -4262,7 +4265,7 @@ def compute_previous_step(self, current_step): else: new_step = step_kw_layermode else: - if self.selected_allowresample() is not None: + if self.selected_allowresampling() is not None: new_step = step_kw_resample else: new_step = step_kw_unit @@ -4280,7 +4283,7 @@ def compute_previous_step(self, current_step): else: new_step = step_kw_layermode else: - if self.selected_allowresample() is not None: + if self.selected_allowresampling() is not None: new_step = step_kw_resample else: new_step = step_kw_unit @@ -4403,8 +4406,9 @@ def get_keywords(self): else: key = exposure_unit['key'] keywords[key] = self.selected_unit()['key'] - if self.selected_allowresample() is not None: - keywords['allow_resample'] = self.selected_allowresample() + if self.selected_allowresampling() is not None: + keywords['allow_resampling'] = ( + self.selected_allowresampling() and 'true' or 'false') if self.lstFields.currentItem(): field_keyword = self.field_keyword_for_the_layer() keywords[field_keyword] = self.lstFields.currentItem().text()