Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP : Advanced filters #702

Closed
wants to merge 10 commits into from
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
class="py-[37px] pl-[47px] rounded-lg border bg-white mb-5 card-shadow cursor-pointer"
[figure]="recordsCount$ | async"
[icon]="'folder_open'"
[title]="'catalog.figures.datasets'"
[title]="'catalog.figures.datasets' | translate"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is useless as the gn-ui-figure already does a translation.

[color]="'secondary'"
></gn-ui-figure>
</a>
Expand All @@ -13,7 +13,7 @@
class="py-[37px] pl-[47px] rounded-lg bg-white border card-shadow cursor-pointer"
[figure]="orgsCount$ | async"
[icon]="'corporate_fare'"
[title]="'catalog.figures.organisations'"
[title]="'catalog.figures.organisations' | translate"
[color]="'secondary'"
></gn-ui-figure>
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ marker('search.filters.representationType')
marker('search.filters.resourceType')
marker('search.filters.standard')
marker('search.filters.topic')
marker('search.filters.contact')

@Injectable({
providedIn: 'root',
Expand Down
10 changes: 7 additions & 3 deletions translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
"dashboard.records.noUser": "",
"dashboard.records.publishedRecords": "",
"dashboard.records.search": "",
"dashboard.records.users": "",
"dashboard.records.username": "",
"dashboard.records.userDetail": "",
"dashboard.records.userEmail": "",
"dashboard.records.username": "",
"dashboard.records.users": "",
"datafeeder.analysisProgressBar.illustration.fileFormatDetection": "Dateiformat-Erkennung",
"datafeeder.analysisProgressBar.illustration.gatheringDatasetInformation": "Sammeln von Datensatzinformationen",
"datafeeder.analysisProgressBar.illustration.samplingData": "Datenauswahl",
Expand Down Expand Up @@ -207,6 +207,8 @@
"record.metadata.origin": "Über die Daten",
"record.metadata.preview": "Vorschau",
"record.metadata.publications": "Veröffentlichungen",
"record.metadata.quality": "",
"record.metadata.quality.details": "",
"record.metadata.related": "Ähnliche Datensätze",
"record.metadata.sheet": "Weitere Informationen erhalten Sie unter :",
"record.metadata.title": "Titel",
Expand All @@ -228,6 +230,7 @@
"results.showMore": "Mehr Ergebnisse anzeigen...",
"results.sortBy.dateStamp": "Letzte Aktualisierungen",
"results.sortBy.popularity": "Beliebtheit",
"results.sortBy.qualityScore": "",
"results.sortBy.relevancy": "Relevanz",
"search.autocomplete.error": "Vorschläge konnten nicht abgerufen werden:",
"search.error.couldNotReachApi": "Die API konnte nicht erreicht werden",
Expand All @@ -236,6 +239,7 @@
"search.field.any.placeholder": "Suche nach Datensätzen ...",
"search.field.sortBy": "Sortieren nach:",
"search.filters.clear": "Zurücksetzen",
"search.filters.contact": "Kontakt",
"search.filters.format": "Formate",
"search.filters.inspireKeyword": "INSPIRE-Schlüsselwort",
"search.filters.isSpatial": "Ist räumliche Daten",
Expand All @@ -253,10 +257,10 @@
"search.filters.license.unknown": "Unbekannt oder nicht vorhanden",
"search.filters.maximize": "Erweitern",
"search.filters.minimize": "Minimieren",
"search.filters.publicationYear": "Veröffentlichungsjahr",
"search.filters.myRecords": "",
"search.filters.myRecordsHelp": "",
"search.filters.otherRecords": "",
"search.filters.publicationYear": "Veröffentlichungsjahr",
"search.filters.publisher": "Organisationen",
"search.filters.representationType": "",
"search.filters.resourceType": "",
Expand Down
33 changes: 9 additions & 24 deletions translations/en.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"catalog.figures.datasets": "{count, plural, =0{datasets} one{dataset} other{datasets}}",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should tells that there is an issue with the translation.
In a previous commit, you added a key which is not recognized by ngx-translate.
Never add key by hand in this file.

"catalog.figures.organisations": "{count, plural, =0{organisations} one{organisation} other{organisations}}",
"catalog.figures.datasets": "",
"catalog.figures.organisations": "",
"chart.aggregation.average": "average",
"chart.aggregation.count": "count",
"chart.aggregation.max": "max",
Expand All @@ -26,10 +26,10 @@
"dashboard.records.noUser": "No users for this organization",
"dashboard.records.publishedRecords": "published records",
"dashboard.records.search": "Search for \"{searchText}\"",
"dashboard.records.users": "users",
"dashboard.records.username": "Username",
"dashboard.records.userDetail": "Name",
"dashboard.records.userEmail": "Email",
"dashboard.records.username": "Username",
"dashboard.records.users": "users",
"datafeeder.analysisProgressBar.illustration.fileFormatDetection": "File format \n detection",
"datafeeder.analysisProgressBar.illustration.gatheringDatasetInformation": "Gathering dataset \n information",
"datafeeder.analysisProgressBar.illustration.samplingData": "Sampling \n data",
Expand Down Expand Up @@ -207,31 +207,15 @@
"record.metadata.origin": "About the data",
"record.metadata.preview": "Preview",
"record.metadata.publications": "publications",
"record.metadata.quality": "Metadata Quality",
"record.metadata.quality.details": "Details",
"record.metadata.related": "Related records",
"record.metadata.sheet": "More information available from:",
"record.metadata.title": "Title",
"record.metadata.updateFrequency": "Data Update Frequency",
"record.metadata.updateStatus": "Data Update Status",
"record.metadata.updatedOn": "Last Data Information Update",
"record.metadata.usage": "Usage & constraints",
"record.metadata.quality": "Metadata Quality",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same, big warning here.

"record.metadata.quality.details": "Details",
"record.metadata.quality.title.success": "Title is completed",
"record.metadata.quality.title.failed": "Title is not completed",
"record.metadata.quality.description.success": "Description is completed",
"record.metadata.quality.description.failed": "Description is not completed",
"record.metadata.quality.topic.success": "Topic is completed",
"record.metadata.quality.topic.failed": "Topic is not completed",
"record.metadata.quality.keywords.success": "Keywords are completed",
"record.metadata.quality.keywords.failed": "Keywords are not completed",
"record.metadata.quality.legalConstraints.success": "Legal constraints are completed",
"record.metadata.quality.legalConstraints.failed": "Legal constraints are not completed",
"record.metadata.quality.contact.success": "Contact is completed",
"record.metadata.quality.contact.failed": "Contact is not completed",
"record.metadata.quality.updateFrequency.success": "Update frequency is completed",
"record.metadata.quality.updateFrequency.failed": "Update frequency is not completed",
"record.metadata.quality.organisation.success": "Organisation is completed",
"record.metadata.quality.organisation.failed": "Organisation is not completed",
"record.more.details": "Read more",
"record.tab.chart": "Chart",
"record.tab.data": "Table",
Expand All @@ -246,15 +230,16 @@
"results.showMore": "Show more results...",
"results.sortBy.dateStamp": "Most recent",
"results.sortBy.popularity": "Popularity",
"results.sortBy.relevancy": "Relevancy",
"results.sortBy.qualityScore": "Quality score",
"results.sortBy.relevancy": "Relevancy",
"search.autocomplete.error": "Suggestions could not be fetched:",
"search.error.couldNotReachApi": "The API could not be reached",
"search.error.receivedError": "An error was received",
"search.error.recordNotFound": "The record with identifier \"{ id }\" could not be found.",
"search.field.any.placeholder": "Search datasets ...",
"search.field.sortBy": "Sort by:",
"search.filters.clear": "Reset",
"search.filters.contact": "Contact",
"search.filters.format": "Formats",
"search.filters.inspireKeyword": "INSPIRE keyword",
"search.filters.isSpatial": "Is spatial data",
Expand All @@ -272,10 +257,10 @@
"search.filters.license.unknown": "Unknown or absent",
"search.filters.maximize": "Expand",
"search.filters.minimize": "Minimize",
"search.filters.publicationYear": "Publication year",
"search.filters.myRecords": "Show only my records",
"search.filters.myRecordsHelp": "When this is enabled, records only created by myself are shown; records created by others will not show up.",
"search.filters.otherRecords": "Showing records from another person",
"search.filters.publicationYear": "Publication year",
"search.filters.publisher": "Organizations",
"search.filters.representationType": "Representation type",
"search.filters.resourceType": "Resource type",
Expand Down
33 changes: 9 additions & 24 deletions translations/es.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"catalog.figures.datasets": "conjuntos de datos",
"catalog.figures.organisations": "organizaciones",
"catalog.figures.datasets": "",
"catalog.figures.organisations": "",
"chart.aggregation.average": "promedio",
"chart.aggregation.count": "conteo",
"chart.aggregation.max": "máximo",
Expand All @@ -26,10 +26,10 @@
"dashboard.records.noUser": "",
"dashboard.records.publishedRecords": "",
"dashboard.records.search": "Buscar \"{searchText}\"",
"dashboard.records.users": "",
"dashboard.records.username": "",
"dashboard.records.userDetail": "",
"dashboard.records.userEmail": "",
"dashboard.records.username": "",
"dashboard.records.users": "",
"datafeeder.analysisProgressBar.illustration.fileFormatDetection": "",
"datafeeder.analysisProgressBar.illustration.gatheringDatasetInformation": "",
"datafeeder.analysisProgressBar.illustration.samplingData": "",
Expand Down Expand Up @@ -207,31 +207,15 @@
"record.metadata.origin": "",
"record.metadata.preview": "",
"record.metadata.publications": "",
"record.metadata.quality": "",
"record.metadata.quality.details": "",
"record.metadata.related": "",
"record.metadata.sheet": "",
"record.metadata.title": "",
"record.metadata.updateFrequency": "",
"record.metadata.updateStatus": "",
"record.metadata.updatedOn": "",
"record.metadata.usage": "",
"record.metadata.quality": "",
"record.metadata.quality.details": "",
"record.metadata.quality.title.success": "",
"record.metadata.quality.title.failed": "",
"record.metadata.quality.description.success": "",
"record.metadata.quality.description.failed": "",
"record.metadata.quality.topic.success": "",
"record.metadata.quality.topic.failed": "",
"record.metadata.quality.keywords.success": "",
"record.metadata.quality.keywords.failed": "",
"record.metadata.quality.legalConstraints.success": "",
"record.metadata.quality.legalConstraints.failed": "",
"record.metadata.quality.contact.success": "",
"record.metadata.quality.contact.failed": "",
"record.metadata.quality.updateFrequency.success": "",
"record.metadata.quality.updateFrequency.failed": "",
"record.metadata.quality.organisation.success": "",
"record.metadata.quality.organisation.failed": "",
"record.more.details": "",
"record.tab.chart": "",
"record.tab.data": "",
Expand All @@ -246,15 +230,16 @@
"results.showMore": "",
"results.sortBy.dateStamp": "",
"results.sortBy.popularity": "",
"results.sortBy.relevancy": "",
"results.sortBy.qualityScore": "",
"results.sortBy.relevancy": "",
"search.autocomplete.error": "",
"search.error.couldNotReachApi": "",
"search.error.receivedError": "",
"search.error.recordNotFound": "",
"search.field.any.placeholder": "",
"search.field.sortBy": "",
"search.filters.clear": "",
"search.filters.contact": "",
"search.filters.format": "",
"search.filters.inspireKeyword": "",
"search.filters.isSpatial": "",
Expand All @@ -272,10 +257,10 @@
"search.filters.license.unknown": "",
"search.filters.maximize": "",
"search.filters.minimize": "",
"search.filters.publicationYear": "",
"search.filters.myRecords": "",
"search.filters.myRecordsHelp": "",
"search.filters.otherRecords": "",
"search.filters.publicationYear": "",
"search.filters.publisher": "",
"search.filters.representationType": "",
"search.filters.resourceType": "",
Expand Down
33 changes: 9 additions & 24 deletions translations/fr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"catalog.figures.datasets": "{count, plural, =0{données} one{donnée} other{données}}",
"catalog.figures.organisations": "{count, plural, =0{organisations} one{organisation} other{organisations}}",
"catalog.figures.datasets": "",
"catalog.figures.organisations": "",
"chart.aggregation.average": "moyenne",
"chart.aggregation.count": "nombre",
"chart.aggregation.max": "maximum",
Expand All @@ -26,10 +26,10 @@
"dashboard.records.noUser": "Aucun utilisateur pour cette organisation",
"dashboard.records.publishedRecords": "données publiées",
"dashboard.records.search": "Résultats pour \"{searchText}\"",
"dashboard.records.users": "utilisateurs",
"dashboard.records.username": "Nom d'utilisateur",
"dashboard.records.userDetail": "Nom",
"dashboard.records.userEmail": "Email",
"dashboard.records.username": "Nom d'utilisateur",
"dashboard.records.users": "utilisateurs",
"datafeeder.analysisProgressBar.illustration.fileFormatDetection": "Détection du \n format de fichier",
"datafeeder.analysisProgressBar.illustration.gatheringDatasetInformation": "Récupération des informations \n sur le jeu de données",
"datafeeder.analysisProgressBar.illustration.samplingData": "Sampling \n des données",
Expand Down Expand Up @@ -207,31 +207,15 @@
"record.metadata.origin": "À propos des données",
"record.metadata.preview": "Aperçu",
"record.metadata.publications": "données",
"record.metadata.quality": "Qualité des métadonnées",
"record.metadata.quality.details": "Détails",
"record.metadata.related": "Voir aussi",
"record.metadata.sheet": "Plus d'informations à l'adresse suivante :",
"record.metadata.title": "Titre",
"record.metadata.updateFrequency": "Fréquence de mise à jour des données",
"record.metadata.updateStatus": "Statut de mise à jour des données",
"record.metadata.updatedOn": "Dernière mise à jour des informations sur les données",
"record.metadata.usage": "Conditions d'utilisation",
"record.metadata.quality": "Qualité des métadonnées",
"record.metadata.quality.details": "Détails",
"record.metadata.quality.title.success": "Titre est renseigné",
"record.metadata.quality.title.failed": "Titre n'est pas renseigné",
"record.metadata.quality.description.success": "Description est renseignée",
"record.metadata.quality.description.failed": "Description n'est pas renseignée",
"record.metadata.quality.topic.success": "Thème est renseigné",
"record.metadata.quality.topic.failed": "Thème n'est pas renseigné",
"record.metadata.quality.keywords.success": "Mots clés sont renseignés",
"record.metadata.quality.keywords.failed": "Mots clés ne sont pas renseignés",
"record.metadata.quality.legalConstraints.success": "Contraintes légales sont renseignées",
"record.metadata.quality.legalConstraints.failed": "Contraintes légales ne sont pas renseignées",
"record.metadata.quality.contact.success": "Contact est renseigné",
"record.metadata.quality.contact.failed": "Contact n'est pas renseigné",
"record.metadata.quality.updateFrequency.success": "Fréquence de mise à jour est renseignée",
"record.metadata.quality.updateFrequency.failed": "Fréquence de mise à jour n'est pas renseignée",
"record.metadata.quality.organisation.success": "Producteur est renseigné",
"record.metadata.quality.organisation.failed": "Producteur n'est pas renseigné",
"record.more.details": "Détails",
"record.tab.chart": "Graphique",
"record.tab.data": "Tableau",
Expand All @@ -246,15 +230,16 @@
"results.showMore": "Plus de résultats...",
"results.sortBy.dateStamp": "Plus récent",
"results.sortBy.popularity": "Popularité",
"results.sortBy.relevancy": "Pertinence",
"results.sortBy.qualityScore": "Indicateur de qualité",
"results.sortBy.relevancy": "Pertinence",
"search.autocomplete.error": "Les suggestions ne peuvent pas être récupérées",
"search.error.couldNotReachApi": "Problème de connexion à l'API",
"search.error.receivedError": "Erreur retournée",
"search.error.recordNotFound": "Cette donnée n'a pu être trouvée.",
"search.field.any.placeholder": "Rechercher une donnée...",
"search.field.sortBy": "Trier par :",
"search.filters.clear": "Réinitialiser",
"search.filters.contact": "Contact",
"search.filters.format": "Formats",
"search.filters.inspireKeyword": "Mot-clé INSPIRE",
"search.filters.isSpatial": "Données spatiales",
Expand All @@ -272,10 +257,10 @@
"search.filters.license.unknown": "Non-reconnue ou absente",
"search.filters.maximize": "Agrandir",
"search.filters.minimize": "Réduire",
"search.filters.publicationYear": "Année de publication",
"search.filters.myRecords": "Voir mes données",
"search.filters.myRecordsHelp": "Quand activé, n'affiche que les données créées avec mon utilisateur. Les données créées par les autres utilisateurs ne sont pas affichées.",
"search.filters.otherRecords": "Affichage des données d'un autre utilisateur",
"search.filters.publicationYear": "Année de publication",
"search.filters.publisher": "Organisations",
"search.filters.representationType": "Type de représentation",
"search.filters.resourceType": "Type de ressource",
Expand Down
Loading
Loading