Skip to content

Commit

Permalink
Correction test
Browse files Browse the repository at this point in the history
Add translation from script po2json
  • Loading branch information
aehanno committed Nov 17, 2023
1 parent 819f427 commit d9e8b1f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
19 changes: 9 additions & 10 deletions superset/translations/fr/LC_MESSAGES/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [""],
Expand Down Expand Up @@ -1091,6 +1091,7 @@
""
],
"Currently rendered: %s": [""],
"Custom": ["Personnalisée"],
"Custom Plugin": ["Plugin custom"],
"Custom Plugins": ["Plugins custom"],
"Custom SQL": ["SQL personnalisé"],
Expand Down Expand Up @@ -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"],
Expand Down Expand Up @@ -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"],
Expand Down Expand Up @@ -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"]
}
}
}
11 changes: 2 additions & 9 deletions superset/translations/fr/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"

Expand Down

0 comments on commit d9e8b1f

Please sign in to comment.