From 0c763b7dc433194c5aa525d8c96c72b13defb734 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 25 May 2022 15:32:25 +0200 Subject: [PATCH] Bug 32030: Improve I18N * Remove ":" from the translation to prevent duplication string * Add a script to auto-translate the strings in English echo "{}" > koha-tmpl/intranet-tmpl/prog/js/vue/locales/en.json npx vue-i18n-extract --vueFiles 'koha-tmpl/intranet-tmpl/prog/js/vue/**/*.?(js|vue)' \ --exclude koha-tmpl/intranet-tmpl/prog/js/vue/dist/main.js \ --languageFiles 'koha-tmpl/intranet-tmpl/prog/js/vue/locales/*.json' \ --add --remove perl misc/translate_json.pl | sponge koha-tmpl/intranet-tmpl/prog/js/vue/locales/en.json Signed-off-by: Jonathan Field Signed-off-by: Martin Renvoize Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- .../vue/components/ERM/AgreementDocuments.vue | 16 +- .../vue/components/ERM/AgreementLicenses.vue | 26 +- .../vue/components/ERM/AgreementPeriods.vue | 12 +- .../components/ERM/AgreementRelationships.vue | 10 +- .../vue/components/ERM/AgreementUserRoles.vue | 8 +- .../vue/components/ERM/AgreementsFormAdd.vue | 42 +-- .../ERM/AgreementsFormConfirmDelete.vue | 6 +- .../js/vue/components/ERM/AgreementsShow.vue | 16 +- .../vue/components/ERM/EHoldingPackages.vue | 12 +- .../vue/components/ERM/EHoldingsFormAdd.vue | 189 ++++++----- .../ERM/EHoldingsFormConfirmDelete.vue | 2 +- .../js/vue/components/ERM/EHoldingsShow.vue | 104 ++++-- .../js/vue/components/ERM/LicensesFormAdd.vue | 22 +- .../ERM/LicensesFormConfirmDelete.vue | 4 +- .../js/vue/components/ERM/LicensesShow.vue | 12 +- .../vue/components/ERM/PackageAgreements.vue | 9 +- .../js/vue/components/ERM/PackagesFormAdd.vue | 14 +- .../ERM/PackagesFormConfirmDelete.vue | 2 +- .../js/vue/components/ERM/PackagesShow.vue | 12 +- .../intranet-tmpl/prog/js/vue/locales/en.json | 309 ++++++++++-------- .../prog/js/vue/locales/fr-FR.json | 166 ++++++---- misc/translate_json.pl | 30 ++ 22 files changed, 592 insertions(+), 431 deletions(-) create mode 100644 misc/translate_json.pl diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementDocuments.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementDocuments.vue index df745973f6..ade2a7d71f 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementDocuments.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementDocuments.vue @@ -16,7 +16,7 @@
  1. - +
    {{ $t("Select a file") }} @@ -38,15 +38,15 @@
    1. - {{ $t("File name:") }} + {{ $t("File name") }}: {{ document.file_name }}
    2. - {{ $t("File type:") }} + {{ $t("File type") }}: {{ document.file_type }}
    3. - {{ $t("File description:") }} + {{ $t("File description") }}:
    4. - {{ $t("Uploaded on:") }} + {{ $t("Uploaded on") }}: {{ format_date(document.uploaded_on) }} @@ -67,7 +67,7 @@
    5. - +
    6. - +
      1. - +
      2. - +
      3. - +
      4. {{ $t("Required") }}
      5. - +
      6. - +
      7. {{ $t("Required") }}
      8. - +
        1. - + {{ user_role.patron_str }} @@ -26,9 +26,9 @@ >)
        2. - + {{ $t("Required") }}
        3. - +