Skip to content

Commit

Permalink
fix(locales): update patents locales and add language to search-patents
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihoub2 committed Mar 25, 2024
1 parent 7fdcdc8 commit 8abc451
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 4 deletions.
2 changes: 2 additions & 0 deletions client/locales.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@
| /components/share | TODO | FRED | FR,EN |
| /pages/patents | OK | Mihoub | FR,EN,ES,DE |
| /pages/search/ | OK | Mihoub | FR,EN,ES,DE |
| /pages/search/patents | OK | Mihoub | FR,EN,ES,DE |
| /pages/search/ | TODO | Mihoub | FR,EN,ES,DE |
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ export default function PatentRegionFilter() {
handleBoolFilterChange({
field: "isInternational",
value: e.target.checked,
label: "Brevets internationaux seulement",
label: intl.formatMessage({
id: "search.filters.only.WO",
}),
})
}
/>
Expand All @@ -34,7 +36,9 @@ export default function PatentRegionFilter() {
handleBoolFilterChange({
field: "isOeb",
value: e.target.checked,
label: "Brevets européens seulement",
label: intl.formatMessage({
id: "search.filters.only.EP",
}),
})
}
/>
Expand All @@ -44,10 +48,14 @@ export default function PatentRegionFilter() {
handleBoolFilterChange({
field: "isGranted",
value: true,
label: "Les brevets protégés uniquement",
label: intl.formatMessage({
id: "search.filters.only.granted",
}),
})
}
label="Les brevets protégés uniquement"
label={intl.formatMessage({
id: "search.filters.only.granted",
})}
/>
</>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"patents.item.badges.main": "Patentfamilie",
"patents.item.badges.isInternational": "International",
"patents.item.badges.isOeb": "Europäisches Amt",
"patents.item.badges.application-count": "{count, plural, one {# Anmeldung} other {# Anmeldungen}}",
"patents.item.badges.granted": "Erteilte Patente",
"patents.item.dep-count": "{count, plural, one {# Anmelder} other {# Anmelder}}",
"patents.item.inv-count": "{count, plural, one {# Erfinder} other {# Erfinder}}",
"patents.item.publication-date": "Erstveröffentlichung am {date}",
"patents.item.submission-date": "Erstanmeldung am {date}"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"patents.item.badges.main": "Patent Family",
"patents.item.badges.isInternational": "International",
"patents.item.badges.isOeb": "European Office",
"patents.item.badges.application-count": "{count, plural, one {# application} other {# applications}}",
"patents.item.badges.granted": "Granted Patents",
"patents.item.dep-count": "{count, plural, one {# applicant} other {# applicants}}",
"patents.item.inv-count": "{count, plural, one {# inventor} other {# inventors}}",
"patents.item.publication-date": "First published on {date}",
"patents.item.submission-date": "First filed on {date}"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"patents.item.badges.main": "Familia de Patentes",
"patents.item.badges.isInternational": "Internacional",
"patents.item.badges.isOeb": "Oficina Europea",
"patents.item.badges.application-count": "{count, plural, one {# solicitud} other {# solicitudes}}",
"patents.item.badges.granted": "Patentes Concedidas",
"patents.item.dep-count": "{count, plural, one {# solicitante} other {# solicitantes}}",
"patents.item.inv-count": "{count, plural, one {# inventor} other {# inventores}}",
"patents.item.publication-date": "Publicado por primera vez el {date}",
"patents.item.submission-date": "Presentado por primera vez el {date}"
}
3 changes: 3 additions & 0 deletions client/src/pages/search/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@
"search.filters.patents.WO": "Nur Patente anzeigen, die bei der Weltorganisation für geistiges Eigentum eingereicht wurden",
"search.filters.patents.EP": "Nur Patente anzeigen, die beim Europäischen Patentamt eingereicht wurden",
"search.filters.projects.by-year-description": "Ausgewählter Zeitraum: {min} - {max}",
"search.filters.only.WO": "Patente beim Weltorganisation für geistiges Eigentum eingereicht",
"search.filters.only.EP": "Patente beim Europäischen Patentamt eingereicht",
"search.filters.only.granted": "Nur erteilte Patente",
"search.filters.projects.by-year-tooltip": "Finanzierungen im Jahr {year}",
"search.filters.projects.title": "Finanzierungen filtern",
"search.publications.analytics.by-year.year-bars.name": "Veröffentlichungen",
Expand Down
3 changes: 3 additions & 0 deletions client/src/pages/search/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@
"search.filters.patents.WO": "Show only patents filed at the World Intellectual Property Organization",
"search.filters.patents.EP": "Show only patents filed at the European Patent Office",
"search.filters.projects.by-year-description": "Selected period: {min} - {max}",
"search.filters.only.WO": "Patents filed at the World Intellectual Property Organization",
"search.filters.only.EP": "Patents filed at the European Patent Office",
"search.filters.only.granted": "Granted patents only",
"search.filters.projects.by-year-tooltip": "Funding in {year}",
"search.filters.projects.title": "Filter Funding",
"search.publications.analytics.by-year.year-bars.name": "Publications",
Expand Down
3 changes: 3 additions & 0 deletions client/src/pages/search/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@
"search.filters.patents.by-year-tooltip": "Presentaciones en {year}",
"search.filters.patents.WO": "Mostrar solo patentes presentadas en la Organización Mundial de la Propiedad Intelectual",
"search.filters.patents.EP": "Mostrar solo patentes presentadas en la Oficina Europea de Patentes",
"search.filters.only.WO": "Patentes presentadas en la Organización Mundial de la Propiedad Intelectual",
"search.filters.only.EP": "Patentes presentadas en la Oficina Europea de Patentes",
"search.filters.only.granted": "Patentes concedidas solamente",
"search.filters.projects.by-year-description": "Período seleccionado: {min} - {max}",
"search.filters.projects.by-year-tooltip": "Financiamiento en {year}",
"search.filters.projects.title": "Filtrar Financiamiento",
Expand Down
3 changes: 3 additions & 0 deletions client/src/pages/search/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@
"search.filters.patents.by-year-tooltip": "Dépôts en {year}",
"search.filters.patents.WO": "Afficher uniquement les brevets déposés à l'Organisation mondiale de la propriété intellectuelle",
"search.filters.patents.EP": "Afficher uniquement les brevets déposés à l'Office européen des brevets",
"search.filters.only.WO": "Brevets déposés à l'Organisation mondiale de la propriété intellectuelle",
"search.filters.only.EP": "Brevets déposés à l'Office européen des brevets",
"search.filters.only.granted": "Brevets délivrés uniquements",
"search.filters.projects.by-year-description": "Période sélectionnée {min} - {max}",
"search.filters.projects.by-year-tooltip": "Financements en {year}",
"search.filters.projects.title": "Filtrer les financements",
Expand Down

0 comments on commit 8abc451

Please sign in to comment.