From d9e8b1f1ee32cbbc6ab90a801497b69db7bb4b86 Mon Sep 17 00:00:00 2001 From: "aurelie.ehanno" Date: Fri, 17 Nov 2023 10:50:13 -0500 Subject: [PATCH] Correction test Add translation from script po2json --- .../cypress/e2e/explore/control.test.ts | 2 +- .../DateFilterControl/utils/constants.ts | 10 +++++----- .../translations/fr/LC_MESSAGES/messages.json | 19 +++++++++---------- .../translations/fr/LC_MESSAGES/messages.po | 11 ++--------- 4 files changed, 17 insertions(+), 25 deletions(-) diff --git a/superset-frontend/cypress-base/cypress/e2e/explore/control.test.ts b/superset-frontend/cypress-base/cypress/e2e/explore/control.test.ts index 4d641a6b5a243..faee1f6f4ee41 100644 --- a/superset-frontend/cypress-base/cypress/e2e/explore/control.test.ts +++ b/superset-frontend/cypress-base/cypress/e2e/explore/control.test.ts @@ -210,7 +210,7 @@ describe('Time range filter', () => { .click() .then(() => { cy.get('.ant-radio-group').children().its('length').should('eq', 5); - cy.get('.ant-radio-checked + span').contains('Last year'); + cy.get('.ant-radio-checked + span').contains('last year'); cy.get('[data-test=cancel-button]').click(); }); }); diff --git a/superset-frontend/src/explore/components/controls/DateFilterControl/utils/constants.ts b/superset-frontend/src/explore/components/controls/DateFilterControl/utils/constants.ts index 6831cf89263da..dad77fb9cb821 100644 --- a/superset-frontend/src/explore/components/controls/DateFilterControl/utils/constants.ts +++ b/superset-frontend/src/explore/components/controls/DateFilterControl/utils/constants.ts @@ -36,11 +36,11 @@ export const FRAME_OPTIONS: SelectOptionType[] = [ ]; export const COMMON_RANGE_OPTIONS: SelectOptionType[] = [ - { value: 'Last day', label: t('Last day') }, - { value: 'Last week', label: t('Last week') }, - { value: 'Last month', label: t('Last month') }, - { value: 'Last quarter', label: t('Last quarter') }, - { value: 'Last year', label: t('Last year') }, + { value: 'Last day', label: t('last day') }, + { value: 'Last week', label: t('last week') }, + { value: 'Last month', label: t('last month') }, + { value: 'Last quarter', label: t('last quarter') }, + { value: 'Last year', label: t('last year') }, ]; export const COMMON_RANGE_VALUES_SET = new Set( COMMON_RANGE_OPTIONS.map(({ value }) => value), diff --git a/superset/translations/fr/LC_MESSAGES/messages.json b/superset/translations/fr/LC_MESSAGES/messages.json index 5c000012face7..c47af33720b1d 100644 --- a/superset/translations/fr/LC_MESSAGES/messages.json +++ b/superset/translations/fr/LC_MESSAGES/messages.json @@ -100,7 +100,7 @@ "1H": [""], "1M": [""], "1T": [""], - "2 years ago": ["il y a 2 ans"], + "2 years ago": ["Il y a 2 ans"], "2/98 percentiles": [""], "28 days ago": [""], "2D": [""], @@ -1091,6 +1091,7 @@ "" ], "Currently rendered: %s": [""], + "Custom": ["Personnalisée"], "Custom Plugin": ["Plugin custom"], "Custom Plugins": ["Plugins custom"], "Custom SQL": ["SQL personnalisé"], @@ -1981,6 +1982,7 @@ "Labels for the marker lines": [""], "Labels for the markers": [""], "Labels for the ranges": [""], + "Last": ["Dernier"], "Last Changed": ["Dernière modification"], "Last Modified": ["Dernière modification"], "Last Updated %s": ["Dernière mise à jour %s"], @@ -4525,6 +4527,11 @@ "json isn't valid": ["le json n'est pas valide"], "key a-z": [""], "key z-a": [""], + "last day": ["hier"], + "last month": ["le mois dernier"], + "last quarter": ["le trimestre dernier"], + "last week": ["la semaine dernière"], + "last year": ["l'année dernière"], "latest partition:": ["dernière partition :"], "less than {min} {name}": [""], "log": ["log"], @@ -4591,18 +4598,10 @@ "y: values are normalized within each row": [""], "year": ["année"], "zoom area": [""], - "No matching records found": ["Aucun résultat trouvé"], - "Seconds %s": ["%s secondes"], - "Minutes %s": ["%s minutes "], "10 seconds": ["10 secondes"], "6 hours": ["6 heures"], "12 hours": ["12 heures"], - "24 hours": ["24 heures"], - "Last day": ["Hier"], - "Last week": ["La semaine derniere"], - "Last month": ["Le mois dernier"], - "Last quarter": ["Le trimestre dernier"], - "Last year": ["L'année dernière"] + "24 hours": ["24 heures"] } } } diff --git a/superset/translations/fr/LC_MESSAGES/messages.po b/superset/translations/fr/LC_MESSAGES/messages.po index 6c4cdd69c4298..9335a5fe07350 100644 --- a/superset/translations/fr/LC_MESSAGES/messages.po +++ b/superset/translations/fr/LC_MESSAGES/messages.po @@ -4956,7 +4956,6 @@ msgid "Currently rendered: %s" msgstr "" #: superset-frontend/src/explore/components/controls/DateFilterControl/utils/constants.ts:33 -#, fuzzy msgid "Custom" msgstr "Personnalisée" @@ -9038,9 +9037,8 @@ msgstr "Partage de requête" #: superset-frontend/plugins/plugin-chart-pivot-table/src/plugin/controlPanel.tsx:190 #: superset-frontend/src/explore/components/controls/DateFilterControl/utils/constants.ts:31 -#, fuzzy msgid "Last" -msgstr "à" +msgstr "Dernier" #: superset/connectors/sqla/views.py:388 superset/views/database/mixins.py:190 msgid "Last Changed" @@ -20421,27 +20419,22 @@ msgid "label" msgstr "Label" #: superset-frontend/src/explore/components/controls/DateFilterControl/utils/constants.ts:39 -#, fuzzy msgid "last day" msgstr "hier" #: superset-frontend/src/explore/components/controls/DateFilterControl/utils/constants.ts:41 -#, fuzzy msgid "last month" msgstr "le mois dernier" #: superset-frontend/src/explore/components/controls/DateFilterControl/utils/constants.ts:42 -#, fuzzy msgid "last quarter" msgstr "le trimestre dernier" #: superset-frontend/src/explore/components/controls/DateFilterControl/utils/constants.ts:40 -#, fuzzy msgid "last week" -msgstr "la semaine derniere" +msgstr "la semaine dernière" #: superset-frontend/src/explore/components/controls/DateFilterControl/utils/constants.ts:43 -#, fuzzy msgid "last year" msgstr "l'année dernière"