From 232a2b54b1641c3d9b83be86eb408facf3fa48c0 Mon Sep 17 00:00:00 2001 From: Ismail Sunni Date: Wed, 12 Jul 2023 13:58:28 +0700 Subject: [PATCH] Translation setting. --- .../resources/i18n/plugin_translation.pro | 18 +- .../resources/i18n/qgis_hub_plugin_de.ts | 379 ++++++++++++++++++ .../resources/i18n/qgis_hub_plugin_id.ts | 379 ++++++++++++++++++ 3 files changed, 773 insertions(+), 3 deletions(-) create mode 100644 qgis_hub_plugin/resources/i18n/qgis_hub_plugin_de.ts create mode 100644 qgis_hub_plugin/resources/i18n/qgis_hub_plugin_id.ts diff --git a/qgis_hub_plugin/resources/i18n/plugin_translation.pro b/qgis_hub_plugin/resources/i18n/plugin_translation.pro index 2f15459..3d5a234 100644 --- a/qgis_hub_plugin/resources/i18n/plugin_translation.pro +++ b/qgis_hub_plugin/resources/i18n/plugin_translation.pro @@ -1,8 +1,20 @@ -FORMS = ../../gui/dlg_settings.ui +FORMS = ../../gui/dlg_settings.ui \ + ../../gui/resource_browser.ui SOURCES= ../../plugin_main.py \ + ../../core/api_client.py \ + ../../core/custom_filter_proxy.py \ ../../gui/dlg_settings.py \ + ../../gui/constants.py \ + ../../gui/resource_browser.py \ + ../../gui/resource_item.py \ ../../toolbelt/log_handler.py \ - ../../toolbelt/preferences.py + ../../toolbelt/preferences.py \ + ../../utilities/common.py \ + ../../utilities/file_downloader.py \ + ../../utilities/i18n.py \ + ../../utilities/qgis_util.py -TRANSLATIONS = qgis_hub_plugin_en.ts + +TRANSLATIONS = qgis_hub_plugin_id.ts \ + qgis_hub_plugin_de.ts diff --git a/qgis_hub_plugin/resources/i18n/qgis_hub_plugin_de.ts b/qgis_hub_plugin/resources/i18n/qgis_hub_plugin_de.ts new file mode 100644 index 0000000..fb9973f --- /dev/null +++ b/qgis_hub_plugin/resources/i18n/qgis_hub_plugin_de.ts @@ -0,0 +1,379 @@ + + + + + @default + + + {} : {} of {} + + + + + The network is unreachable. Please check your internet connection. + + + + + Sorry, the server aborted your request. Please try a smaller area. + + + + + Sorry, the server is currently busy with another request. Please try again in a few minutes. + + + + + Sorry, the server is unreachable. Please try again later. + + + + + Sorry, the layer was not found on the server. + + + + + Dialog + + + QGIS Hub Explorer + + + + + Update Resources + + + + + ... + + + + + Preview + + + + + Name + + + + + Type + + + + + Subtype + + + + + Creator + + + + + Download + + + + + Count + + + + + Uploaded + + + + + Date + + + + + Description + + + + + Open download directory + + + + + Add to QGIS + + + + + Search + + + + + Resource Type + + + + + Style + + + + + Geopackage + + + + + Model + + + + + QgisHubPluginPlugin + + + Open Resource Browser + + + + + Help + + + + + Settings + + + + + Everything ran OK. + + + + + Houston, we've got a problem: {err} + + + + + ResourceBrowserDialog + + + Open the help page + + + + + List view + + + + + Icon view + + + + + Thumbnail size + + + + + Enable this to open the download directory after download + + + + + Update resources from the QGIS Hub website + + + + + Search resource by the name or the creator + + + + + Download selected resource to your local disk + + + + + Success + + + + + Error + + + + + Warning + + + + + Add Model to QGIS + + + + + Add the model to QGIS directly + + + + + Add Style to QGIS + + + + + Add the style to QGIS style database + + + + + Add Geopackage to QGIS + + + + + Download and load the layers to QGIS + + + + + Save Resource + + + + + All Files (*);;Geopackage (*.gpkg);;QGIS Model (*.model3);; ZIP Files (*.zip) + + + + + Model {resource.name} is added to QGIS + + + + + Download failed for model {resource.name} + + + + + All files (*) + + + + + Geopackage (*.gpkg) + + + + + ZIP Files (*.zip) + + + + + Download failed for {resource.name} + + + + + Invalid layer: {layer_name} + + + + + Only Geopackage and zip file are supported. File is {file_path} + + + + + Successfully load {valid_layer_num} of {len(layers)} layers from {resource_name} + + + + + Invalid geopackage: {gpkg_file_path} + + + + + Style {resource.name} is added to QGIS + + + + + Style {resource.name} is not added to QGIS + + + + + QGIS Hub Explorer ({num_selected_resources} of {num_total_resources}) + + + + + wdg_qgis_hub_plugin_settings + + + QGIS Hub Plugin - Settings + + + + + <html><head/><body><p align="center"><span style=" font-weight:600;">PluginTitle - Version X.X.X</span></p></body></html> + + + + + Miscellaneous + + + + + Report an issue + + + + + Version used to save settings: + + + + + Help + + + + + Reset setttings to factory defaults + + + + + Enable debug mode. + + + + + Debug mode (degraded performances) + + + + diff --git a/qgis_hub_plugin/resources/i18n/qgis_hub_plugin_id.ts b/qgis_hub_plugin/resources/i18n/qgis_hub_plugin_id.ts new file mode 100644 index 0000000..e9605c4 --- /dev/null +++ b/qgis_hub_plugin/resources/i18n/qgis_hub_plugin_id.ts @@ -0,0 +1,379 @@ + + + + + @default + + + {} : {} of {} + + + + + The network is unreachable. Please check your internet connection. + + + + + Sorry, the server aborted your request. Please try a smaller area. + + + + + Sorry, the server is currently busy with another request. Please try again in a few minutes. + + + + + Sorry, the server is unreachable. Please try again later. + + + + + Sorry, the layer was not found on the server. + + + + + Dialog + + + QGIS Hub Explorer + + + + + Update Resources + + + + + ... + + + + + Preview + + + + + Name + + + + + Type + + + + + Subtype + + + + + Creator + + + + + Download + + + + + Count + + + + + Uploaded + + + + + Date + + + + + Description + + + + + Open download directory + + + + + Add to QGIS + + + + + Search + + + + + Resource Type + + + + + Style + + + + + Geopackage + + + + + Model + + + + + QgisHubPluginPlugin + + + Open Resource Browser + + + + + Help + + + + + Settings + + + + + Everything ran OK. + + + + + Houston, we've got a problem: {err} + + + + + ResourceBrowserDialog + + + Open the help page + + + + + List view + + + + + Icon view + + + + + Thumbnail size + + + + + Enable this to open the download directory after download + + + + + Update resources from the QGIS Hub website + + + + + Search resource by the name or the creator + + + + + Download selected resource to your local disk + + + + + Success + + + + + Error + + + + + Warning + + + + + Add Model to QGIS + + + + + Add the model to QGIS directly + + + + + Add Style to QGIS + + + + + Add the style to QGIS style database + + + + + Add Geopackage to QGIS + + + + + Download and load the layers to QGIS + + + + + Save Resource + + + + + All Files (*);;Geopackage (*.gpkg);;QGIS Model (*.model3);; ZIP Files (*.zip) + + + + + Model {resource.name} is added to QGIS + + + + + Download failed for model {resource.name} + + + + + All files (*) + + + + + Geopackage (*.gpkg) + + + + + ZIP Files (*.zip) + + + + + Download failed for {resource.name} + + + + + Invalid layer: {layer_name} + + + + + Only Geopackage and zip file are supported. File is {file_path} + + + + + Successfully load {valid_layer_num} of {len(layers)} layers from {resource_name} + + + + + Invalid geopackage: {gpkg_file_path} + + + + + Style {resource.name} is added to QGIS + + + + + Style {resource.name} is not added to QGIS + + + + + QGIS Hub Explorer ({num_selected_resources} of {num_total_resources}) + + + + + wdg_qgis_hub_plugin_settings + + + QGIS Hub Plugin - Settings + + + + + <html><head/><body><p align="center"><span style=" font-weight:600;">PluginTitle - Version X.X.X</span></p></body></html> + + + + + Miscellaneous + + + + + Report an issue + + + + + Version used to save settings: + + + + + Help + + + + + Reset setttings to factory defaults + + + + + Enable debug mode. + + + + + Debug mode (degraded performances) + + + +