From 0b28e3e84da7fea4a3dd1f6bff6a9dbadce4e659 Mon Sep 17 00:00:00 2001 From: Julien Moura Date: Tue, 1 Oct 2024 14:57:06 +0200 Subject: [PATCH 1/2] update(i18n): adapt Qt Linguist files to new files structure --- profile_manager/i18n/ProfileManager.pro | 31 -- profile_manager/i18n/ProfileManager_de.qm | Bin 9333 -> 0 bytes profile_manager/i18n/ProfileManager_de.ts | 410 ----------------- profile_manager/i18n/ProfileManager_it.qm | Bin 1374 -> 0 bytes .../resources/i18n/ProfileManager_de.ts | 425 ++++++++++++++++++ .../resources/i18n/ProfileManager_fr.ts | 403 +++++++++++++++++ .../{ => resources}/i18n/ProfileManager_it.ts | 247 +++++----- .../resources/i18n/plugin_translation.pro | 32 ++ 8 files changed, 986 insertions(+), 562 deletions(-) delete mode 100644 profile_manager/i18n/ProfileManager.pro delete mode 100644 profile_manager/i18n/ProfileManager_de.qm delete mode 100644 profile_manager/i18n/ProfileManager_de.ts delete mode 100644 profile_manager/i18n/ProfileManager_it.qm create mode 100644 profile_manager/resources/i18n/ProfileManager_de.ts create mode 100644 profile_manager/resources/i18n/ProfileManager_fr.ts rename profile_manager/{ => resources}/i18n/ProfileManager_it.ts (61%) create mode 100644 profile_manager/resources/i18n/plugin_translation.pro diff --git a/profile_manager/i18n/ProfileManager.pro b/profile_manager/i18n/ProfileManager.pro deleted file mode 100644 index 83f9455..0000000 --- a/profile_manager/i18n/ProfileManager.pro +++ /dev/null @@ -1,31 +0,0 @@ -FORMS = ../profile_manager_dialog_base.ui - -SOURCES = \ - ../utils.py \ - ../profiles/profile_copier.py \ - ../profiles/profile_editor.py \ - ../profiles/profile_remover.py \ - ../profiles/profile_creator.py \ - ../profiles/profile_action_handler.py \ - ../profile_manager_dialog.py \ - ../userInterface/interface_handler.py \ - ../userInterface/name_profile_dialog.py \ - ../profile_manager.py \ - ../datasources/Functions/function_handler.py \ - ../datasources/Dataservices/datasource_distributor.py \ - ../datasources/Dataservices/datasource_provider.py \ - ../datasources/Dataservices/datasource_handler.py \ - ../datasources/Bookmarks/bookmark_handler.py \ - ../datasources/Favourites/favourites_handler.py \ - ../datasources/Models/script_handler.py \ - ../datasources/Models/model_handler.py \ - ../datasources/Plugins/plugin_remover.py \ - ../datasources/Plugins/plugin_handler.py \ - ../datasources/Plugins/plugin_displayer.py \ - ../datasources/Plugins/plugin_importer.py \ - ../datasources/Customizations/customization_handler.py \ - ../datasources/Styles/style_handler.py - -TRANSLATIONS = \ - ProfileManager_de.ts \ - ProfileManager_it.ts diff --git a/profile_manager/i18n/ProfileManager_de.qm b/profile_manager/i18n/ProfileManager_de.qm deleted file mode 100644 index 72cb12f3f889b6da55aadf172f63a38ae5fa366a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 9333 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 E4@8B8KL7v# diff --git a/profile_manager/i18n/ProfileManager_de.ts b/profile_manager/i18n/ProfileManager_de.ts deleted file mode 100644 index 3e7817c..0000000 --- a/profile_manager/i18n/ProfileManager_de.ts +++ /dev/null @@ -1,410 +0,0 @@ - - - - - InterfaceHandler - - - Source Profile: {} - Quellprofil: {} - - - - Target Profile: {} - Zielprofil: {} - - - - Target profile can not be same as source profile - Zielprofil darf nicht Quellprofil sein - - - - Please choose a profile to remove - Bitte ein Profile auswählen, das entfernt werden soll - - - - Please choose a profile to rename - Bitte ein Profile auswählen, das umbenannt werden soll - - - - Please select a profile to copy from - Bitte ein Profile auswählen, das kopiert werden soll - - - - The active profile cannot be removed - Das aktive Profil kann nicht entfernt werden - - - - The active profile cannot be renamed - Das aktive Profil kann nicht umbenannt werden - - - - NameProfileDialog - - - Create Profile - Profil erstellen - - - - Profile Name - Profilname - - - - PluginRemover - - - Plugin '{0}' could not be removed due to error: -{1} - Plugin '{0}' konnte wegen eines Fehlers nicht entfernt werden: -{1} - - - - ProfileCopier - - - Profile directory '{}' already exists. - Profilverzeichnis '{}' existiert bereits. - - - - Profile could not be copied - Profil konnte nicht kopiert werden - - - - Profile copied - Profil kopiert - - - - Profile '{}' successfully copied. - Profil '{}' erfolgreich kopiert. - - - - ProfileCreator - - - Profile directory '{}' already exists. - Profilverzeichnis '{}' existiert bereits. - - - - Profile could not be created - Profil konnte nicht erstellt werden - - - - Profile created - Profil erstellt - - - - Profile '{}' successfully created. - Profil '{}' erfolgreich erstellt. - - - - ProfileEditor - - - Rename Profile '{}' - Profil '{}' umbenennen - - - - Profile could not be renamed - Profil konnte nicht umbenannt werden - - - - Profile renamed - Profil umbenannt - - - - Profile '{0}' successfully renamed to '{1}'. - Profil '{0}' erfolgreich in '{1}' umbenannt. - - - - ProfileManager - - - &Profile Manager - - - - - Profile Manager - - - - - Aborting import due to error: -{} - Import wegen Fehler abgebrochen: -{} - - - - Backup could not be created - Backup konnte nicht erstellt werden - - - - Data Source Import - Datenquellenimport - - - - There were errors on import. - Es gab Fehler beim Import. - - - - Data sources have been successfully imported. - -Please refresh the QGIS Browser to see the changes. - Datenquellen erfolgreich importiert. - -Bitte ggf. den QGIS-Browser aktualisieren. - - - - Remove Data Sources - Datenquellen entfernen - - - - Aborting removal due to error: -{} - Abbruch wegen Fehler: -{} - - - - Data Sources Removed - Datenquellen entfernt - - - - Data sources have been successfully removed. - -Please refresh the QGIS Browser to see the changes. - Datenquellen erfolgreich entfernt. - -Bitte ggf. den QGIS-Browser aktualisieren. - - - - Are you sure you want to remove these sources? - -A backup will be created at '{}' - Sollen die ausgewählten Datenquellen wirklich entfernt werden? - -Ein Backup wird in '{}' erstellt. - - - - ProfileManagerDialogBase - - - Profile Manager - - - - - Profiles - Profile - - - - New profile - Neu - - - - Remove profile - Löschen - - - - Rename profile - Umbenennen - - - - Copy profile - Kopieren - - - - Import - Import - - - - Plugins - Plugins - - - - Source profile - Quellprofil - - - - Target profile - Zielprofil - - - - Select all items - Alle Elemente auswählen - - - - Remove selected items - Ausgewählte Elemente entfernen - - - - Import selected items - Ausgewählte Elemente importieren - - - - Data Sources - Datenquellen - - - - Source Profile: - Quellprofil: - - - - Target Profile: - Zielprofil: - - - - Plugins in source profile - Plugins im Quellprofil - - - - Plugins in target profile - Plugins im Zielprofil - - - - Other (Import only) - Anderes - - - - Bookmarks - Räumliche Lesezeichen - - - - Favourites - Favoriten - - - - Models - Verarbeitungsmodelle - - - - Scripts - Verarbeitungsskripte - - - - Styles + Labels - Symbolisierungen + Beschriftungen - - - - UI Customization (e.g. hidden toolbar icons) - UI-Anpassungen (z.B. versteckte Icons) - - - - Expression Functions - Ausdrucksfunktionen - - - - Remove selected items from source profile - Entferne auswählte Elemente aus Quellprofil - - - - Import selected items from source to target profile - Importiere auswählte Elemente vom Quell- ins Zielprofil - - - - Select all items in the source profile - Alle Elemente des Quellprofils auswählen - - - - ProfileRemover - - - Remove Profile - Gelöscht - - - - Aborting removal of profile '{0}' due to error: -{1} - Entfernung des Profils '{0}' wegen Fehler abgebrochen: -{1} - - - - Backup could not be created - Backup konnte nicht erstellt werden - - - - Profile could not be removed - Profil konnte nicht entfernt werden - - - - Profile removed - Profil entfernt - - - - Profile '{}' has been removed. - Profil '{}' wurde entfernt. - - - - Are you sure you want to remove the profile '{0}'? - -A backup will be created at '{1}' - Soll das Profil '{0}' wirklich entfernt werden? - -Ein Backup wird in '{1}' erstellt. - - - diff --git a/profile_manager/i18n/ProfileManager_it.qm b/profile_manager/i18n/ProfileManager_it.qm deleted file mode 100644 index 0df5fd1c025dfea06b4e4e8e8a836bdc1c64795e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1374 zcmbu8ziSjh6vyA@er)98C6$DrVIq>oMzGZC63{CQM~Gk}X0kW8S=^mDX6G&_7B+&7 z*k~cxSosHNz(#B(VkMRV1v?Qzuob^Ex7q9!=Pk%G^Y+coe&;jaH*@(-ck$ro^QRwI zPQTlJ@%Hc~5!E7dtG(62+pc$N`wSvgF796^nyFRiAJ>pRs#S+ikl(1kK6#eN+aJZs z`TD^RoA3CSzEtr2yZ_a<|2;c#(|-k(2aQk7&xr34e-l;jH4gtEudYPsKHv{prxrzI z@Cagbmj>u>lcGLG1!*)%UGyo&JIEFF@FhmJN8e}{ZIk8 zt$I-`m{BZH{X49uRpMjfLR%W4dprGTz>rv& zp|@`gxC8oyXhBo-7Mx)$MB@&UxoBq|Z^CLT(FSU# zXoxn6sj(sU$|KFe_Sl^X)H(<9JMkclWICPbe_WqtR`EbYIooVzaVfY>lrPCFizZsu z+!To#jvd>7voW&5_MRm!PCg-!miBIxJ|oLcy2xC#;rL!0F=uWRZ^dXg+IxrtIpcYM E0e^Ns`2YX_ diff --git a/profile_manager/resources/i18n/ProfileManager_de.ts b/profile_manager/resources/i18n/ProfileManager_de.ts new file mode 100644 index 0000000..464f486 --- /dev/null +++ b/profile_manager/resources/i18n/ProfileManager_de.ts @@ -0,0 +1,425 @@ + + + + + @default + + + Plugin could not be removed + + + + + Plugin '{0}' could not be removed due to error: +{1} + Plugin '{0}' konnte wegen eines Fehlers nicht entfernt werden: +{1} + + + + InterfaceHandler + + + Source Profile: {} + Quellprofil: {} + + + + Target Profile: {} + Zielprofil: {} + + + + Target profile can not be same as source profile + Zielprofil darf nicht Quellprofil sein + + + + Please choose a profile to remove + Bitte ein Profile auswählen, das entfernt werden soll + + + + Please choose a profile to rename + Bitte ein Profile auswählen, das umbenannt werden soll + + + + Please select a profile to copy from + Bitte ein Profile auswählen, das kopiert werden soll + + + + The active profile cannot be removed + Das aktive Profil kann nicht entfernt werden + + + + The active profile cannot be renamed + Das aktive Profil kann nicht umbenannt werden + + + + NameProfileDialog + + + Create Profile + Profil erstellen + + + + Profile Name + Profilname + + + + PluginRemover + + + Plugin '{0}' could not be removed due to error: +{1} + Plugin '{0}' konnte wegen eines Fehlers nicht entfernt werden: +{1} + + + + ProfileCopier + + + Profile directory '{}' already exists. + Profilverzeichnis '{}' existiert bereits. + + + + Profile could not be copied + Profil konnte nicht kopiert werden + + + + Profile copied + Profil kopiert + + + + Profile '{}' successfully copied. + Profil '{}' erfolgreich kopiert. + + + + ProfileCreator + + + Profile directory '{}' already exists. + Profilverzeichnis '{}' existiert bereits. + + + + Profile could not be created + Profil konnte nicht erstellt werden + + + + Profile created + Profil erstellt + + + + Profile '{}' successfully created. + Profil '{}' erfolgreich erstellt. + + + + ProfileEditor + + + Rename Profile '{}' + Profil '{}' umbenennen + + + + Profile could not be renamed + Profil konnte nicht umbenannt werden + + + + Profile renamed + Profil umbenannt + + + + Profile '{0}' successfully renamed to '{1}'. + Profil '{0}' erfolgreich in '{1}' umbenannt. + + + + ProfileManager + + + Aborting import due to error: +{} + Import wegen Fehler abgebrochen: +{} + + + + Backup could not be created + Backup konnte nicht erstellt werden + + + + Data Source Import + Datenquellenimport + + + + There were errors on import. + Es gab Fehler beim Import. + + + + Data sources have been successfully imported. + +Please refresh the QGIS Browser to see the changes. + Datenquellen erfolgreich importiert. + +Bitte ggf. den QGIS-Browser aktualisieren. + + + + Remove Data Sources + Datenquellen entfernen + + + + Aborting removal due to error: +{} + Abbruch wegen Fehler: +{} + + + + Data Sources Removed + Datenquellen entfernt + + + + Data sources have been successfully removed. + +Please refresh the QGIS Browser to see the changes. + Datenquellen erfolgreich entfernt. + +Bitte ggf. den QGIS-Browser aktualisieren. + + + + Are you sure you want to remove these sources? + +A backup will be created at '{}' + Sollen die ausgewählten Datenquellen wirklich entfernt werden? + +Ein Backup wird in '{}' erstellt. + + + + &Profile Manager + + + + + Profile Manager + + + + + ProfileManagerDialogBase + + + Profiles + Profile + + + + New profile + Neu + + + + Remove profile + Löschen + + + + Rename profile + Umbenennen + + + + Copy profile + Kopieren + + + + Import + Import + + + + Plugins + Plugins + + + + Source profile + Quellprofil + + + + Target profile + Zielprofil + + + + Select all items + Alle Elemente auswählen + + + + Remove selected items + Ausgewählte Elemente entfernen + + + + Import selected items + Ausgewählte Elemente importieren + + + + Data Sources + Datenquellen + + + + Source Profile: + Quellprofil: + + + + Target Profile: + Zielprofil: + + + + Plugins in source profile + Plugins im Quellprofil + + + + Plugins in target profile + Plugins im Zielprofil + + + + Other (Import only) + Anderes + + + + Bookmarks + Räumliche Lesezeichen + + + + Favourites + Favoriten + + + + Models + Verarbeitungsmodelle + + + + Scripts + Verarbeitungsskripte + + + + Styles + Labels + Symbolisierungen + Beschriftungen + + + + UI Customization (e.g. hidden toolbar icons) + UI-Anpassungen (z.B. versteckte Icons) + + + + Expression Functions + Ausdrucksfunktionen + + + + Remove selected items from source profile + Entferne auswählte Elemente aus Quellprofil + + + + Import selected items from source to target profile + Importiere auswählte Elemente vom Quell- ins Zielprofil + + + + Select all items in the source profile + Alle Elemente des Quellprofils auswählen + + + + Profile Manager + + + + + ProfileRemover + + + Remove Profile + Gelöscht + + + + Aborting removal of profile '{0}' due to error: +{1} + Entfernung des Profils '{0}' wegen Fehler abgebrochen: +{1} + + + + Backup could not be created + Backup konnte nicht erstellt werden + + + + Profile could not be removed + Profil konnte nicht entfernt werden + + + + Profile removed + Profil entfernt + + + + Profile '{}' has been removed. + Profil '{}' wurde entfernt. + + + + Are you sure you want to remove the profile '{0}'? + +A backup will be created at '{1}' + Soll das Profil '{0}' wirklich entfernt werden? + +Ein Backup wird in '{1}' erstellt. + + + diff --git a/profile_manager/resources/i18n/ProfileManager_fr.ts b/profile_manager/resources/i18n/ProfileManager_fr.ts new file mode 100644 index 0000000..c4669be --- /dev/null +++ b/profile_manager/resources/i18n/ProfileManager_fr.ts @@ -0,0 +1,403 @@ + + + + + @default + + + Plugin could not be removed + + + + + Plugin '{0}' could not be removed due to error: +{1} + + + + + InterfaceHandler + + + Source Profile: {} + + + + + Target Profile: {} + + + + + Target profile can not be same as source profile + + + + + Please choose a profile to remove + + + + + Please choose a profile to rename + + + + + Please select a profile to copy from + + + + + The active profile cannot be removed + + + + + The active profile cannot be renamed + + + + + NameProfileDialog + + + Create Profile + + + + + Profile Name + + + + + ProfileCopier + + + Profile directory '{}' already exists. + + + + + Profile could not be copied + + + + + Profile copied + + + + + Profile '{}' successfully copied. + + + + + ProfileCreator + + + Profile directory '{}' already exists. + + + + + Profile could not be created + + + + + Profile created + + + + + Profile '{}' successfully created. + + + + + ProfileEditor + + + Rename Profile '{}' + + + + + Profile could not be renamed + + + + + Profile renamed + + + + + Profile '{0}' successfully renamed to '{1}'. + + + + + ProfileManager + + + &Profile Manager + + + + + Profile Manager + + + + + Aborting import due to error: +{} + + + + + Backup could not be created + + + + + Data Source Import + + + + + There were errors on import. + + + + + Data sources have been successfully imported. + +Please refresh the QGIS Browser to see the changes. + + + + + Remove Data Sources + + + + + Are you sure you want to remove these sources? + +A backup will be created at '{}' + + + + + Aborting removal due to error: +{} + + + + + Data Sources Removed + + + + + Data sources have been successfully removed. + +Please refresh the QGIS Browser to see the changes. + + + + + ProfileManagerDialogBase + + + Profile Manager + + + + + Profiles + + + + + New profile + + + + + Copy profile + + + + + Rename profile + + + + + Remove profile + + + + + Import + + + + + Source profile + + + + + Target profile + + + + + Select all items in the source profile + + + + + Select all items + + + + + Remove selected items from source profile + + + + + Remove selected items + + + + + Import selected items from source to target profile + + + + + Import selected items + + + + + Data Sources + + + + + Source Profile: + + + + + Target Profile: + + + + + Plugins + + + + + Plugins in source profile + + + + + Plugins in target profile + + + + + Other (Import only) + + + + + Bookmarks + + + + + Favourites + + + + + Models + + + + + Scripts + + + + + Styles + Labels + + + + + UI Customization (e.g. hidden toolbar icons) + + + + + Expression Functions + + + + + ProfileRemover + + + Remove Profile + + + + + Are you sure you want to remove the profile '{0}'? + +A backup will be created at '{1}' + + + + + Aborting removal of profile '{0}' due to error: +{1} + + + + + Backup could not be created + + + + + Profile could not be removed + + + + + Profile removed + + + + + Profile '{}' has been removed. + + + + diff --git a/profile_manager/i18n/ProfileManager_it.ts b/profile_manager/resources/i18n/ProfileManager_it.ts similarity index 61% rename from profile_manager/i18n/ProfileManager_it.ts rename to profile_manager/resources/i18n/ProfileManager_it.ts index 982290c..f1ceb97 100644 --- a/profile_manager/i18n/ProfileManager_it.ts +++ b/profile_manager/resources/i18n/ProfileManager_it.ts @@ -2,44 +2,58 @@ - InterfaceHandler + @default - - Source Profile: {} + + Plugin could not be removed - - Target Profile: {} + + Plugin '{0}' could not be removed due to error: +{1} + + + InterfaceHandler - + Target profile can not be same as source profile Il profilo destinazione non può essere uguale al profilo origine - - Please choose a profile to remove + + Please select a profile to copy from + Bitte zu kopierendes Profil wählen + + + + Source Profile: {} - - Please choose a profile to rename + + Target Profile: {} - - Please select a profile to copy from - Bitte zu kopierendes Profil wählen + + Please choose a profile to remove + - + + Please choose a profile to rename + + + + The active profile cannot be removed - + The active profile cannot be renamed @@ -47,44 +61,35 @@ NameProfileDialog - + Create Profile - + Profile Name - - PluginRemover - - - Plugin '{0}' could not be removed due to error: -{1} - - - ProfileCopier - + Profile directory '{}' already exists. - + Profile could not be copied - + Profile copied - + Profile '{}' successfully copied. @@ -92,22 +97,22 @@ ProfileCreator - + Profile directory '{}' already exists. - + Profile could not be created - + Profile created - + Profile '{}' successfully created. @@ -115,22 +120,22 @@ ProfileEditor - + Rename Profile '{}' - + Profile could not be renamed - + Profile renamed - + Profile '{0}' successfully renamed to '{1}'. @@ -138,261 +143,261 @@ ProfileManager - + &Profile Manager - &Gestore Profilo + &Gestore Profilo - + Profile Manager - Gestore Profilo + Gestore Profilo - + Aborting import due to error: {} - + Backup could not be created - + Data Source Import - + There were errors on import. - + Data sources have been successfully imported. Please refresh the QGIS Browser to see the changes. - + Remove Data Sources - + + Are you sure you want to remove these sources? + +A backup will be created at '{}' + + + + Aborting removal due to error: {} - + Data Sources Removed - + Data sources have been successfully removed. Please refresh the QGIS Browser to see the changes. - - - Are you sure you want to remove these sources? - -A backup will be created at '{}' - - ProfileManagerDialogBase - + Profile Manager - Gestore Profilo + Gestore Profilo - + Profiles - Profili + Profili - + New profile - Nuovo profilo + Nuovo profilo - + Remove profile - Rimuovi profilo + Rimuovi profilo - + Rename profile - Rinomina profilo + Rinomina profilo - + Copy profile - Copia profilo + Copia profilo - + Import - Importa + Importa - + Plugins - Plugin + Plugin - + Source profile - + Target profile - + + Select all items in the source profile + + + + Select all items - + + Remove selected items from source profile + + + + Remove selected items - + + Import selected items from source to target profile + + + + Import selected items - + Data Sources - + Source Profile: - + Target Profile: - + Plugins in source profile - + Plugins in target profile - + Other (Import only) - + Bookmarks - + Favourites - + Models - + Scripts - + Styles + Labels - + UI Customization (e.g. hidden toolbar icons) - + Expression Functions - - - Remove selected items from source profile - - - - - Import selected items from source to target profile - - - - - Select all items in the source profile - - ProfileRemover - + Remove Profile - Rimuovi Profilo + Rimuovi Profilo - + + Are you sure you want to remove the profile '{0}'? + +A backup will be created at '{1}' + + + + Aborting removal of profile '{0}' due to error: {1} - + Backup could not be created - + Profile could not be removed - + Profile removed - + Profile '{}' has been removed. - - - Are you sure you want to remove the profile '{0}'? - -A backup will be created at '{1}' - - diff --git a/profile_manager/resources/i18n/plugin_translation.pro b/profile_manager/resources/i18n/plugin_translation.pro new file mode 100644 index 0000000..944de25 --- /dev/null +++ b/profile_manager/resources/i18n/plugin_translation.pro @@ -0,0 +1,32 @@ +FORMS = ../../profile_manager_dialog_base.ui + +SOURCES = \ + ../../utils.py \ + ../../profiles/profile_copier.py \ + ../../profiles/profile_editor.py \ + ../../profiles/profile_remover.py \ + ../../profiles/profile_creator.py \ + ../../profiles/profile_action_handler.py \ + ../../profile_manager_dialog.py \ + ../../gui/interface_handler.py \ + ../../gui/name_profile_dialog.py \ + ../../profile_manager.py \ + ../../datasources/functions/function_handler.py \ + ../../datasources/dataservices/datasource_distributor.py \ + ../../datasources/dataservices/datasource_provider.py \ + ../../datasources/dataservices/datasource_handler.py \ + ../../datasources/bookmarks/bookmark_handler.py \ + ../../datasources/favourites/favourites_handler.py \ + ../../datasources/models/script_handler.py \ + ../../datasources/models/model_handler.py \ + ../../datasources/plugins/plugin_remover.py \ + ../../datasources/plugins/plugin_handler.py \ + ../../datasources/plugins/plugin_displayer.py \ + ../../datasources/plugins/plugin_importer.py \ + ../../datasources/customizations/customization_handler.py \ + ../../datasources/styles/style_handler.py + +TRANSLATIONS = \ + ProfileManager_de.ts \ + ProfileManager_fr.ts \ + ProfileManager_it.ts From 839712ff6d828889216b660b8a9f7953120d4a0b Mon Sep 17 00:00:00 2001 From: Julien Moura Date: Tue, 1 Oct 2024 14:58:18 +0200 Subject: [PATCH 2/2] update(docs): add how to manage translations --- docs/development/translation.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 docs/development/translation.md diff --git a/docs/development/translation.md b/docs/development/translation.md new file mode 100644 index 0000000..91f363f --- /dev/null +++ b/docs/development/translation.md @@ -0,0 +1,24 @@ +# Manage translations + +## Requirements + +Qt Linguist tools are used to manage translations. Typically on Ubuntu: + +```bash +sudo apt install qttools5-dev-tools +``` + +## Workflow + +1. Update `.ts` files: + + ```bash + pylupdate5 -verbose profile_manager/resources/i18n/plugin_translation.pro + ``` + +2. Translate your text using QLinguist or directly into `.ts` files. +3. Compile it: + + ```bash + lrelease profile_manager/resources/i18n/*.ts + ```