Skip to content

Commit

Permalink
feat: Add browsing description
Browse files Browse the repository at this point in the history
fix #247
  • Loading branch information
ptbrowne committed Jan 19, 2022
1 parent a2b02ad commit 3d0fd6f
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 14 deletions.
45 changes: 35 additions & 10 deletions app/configurator/components/select-dataset-step.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,41 @@ export const SelectDatasetStepContent = () => {
}}
>
<Box sx={{ maxWidth: 900 }}>
<Text variant="heading1" sx={{ mb: 4 }}>
{dataset ? null : filters.length > 0 ? (
filters
.filter((f) => f.__typename !== "DataCubeAbout")
.map((f) => (f.__typename !== "DataCubeAbout" ? f.label : null))
.join(", ")
) : (
<Trans id="browse.datasets.all-datasets">All datasets</Trans>
)}
</Text>
{dataset ? null : filters.length > 0 ? (
filters
.filter((f) => f.__typename !== "DataCubeAbout")
.map((f) => (f.__typename !== "DataCubeAbout" ? f.label : null))
.join(", ")
) : (
<>
<Text
variant="heading1"
color="monochrome800"
mb={4}
sx={{ display: "block" }}
>
<Trans id="browse.datasets.all-datasets">All datasets</Trans>
</Text>
<Text
variant="paragraph1"
color="monochrome800"
sx={{
mb: 4,
maxWidth: 800,
fontWeight:"light",
display: "block",
}}
>
<Trans id="browse.datasets.description">
Explore datasets provided by the LINDAS Linked Data Service by
either filtering by categories or organisations or search
directly for specific keywords. Click on a dataset to see more
detailed information and start creating your own
visualizations.
</Trans>
</Text>
</>
)}
{dataset ? null : (
<Box mb={4}>
<SearchDatasetBox browseState={browseState} searchResult={data} />
Expand Down
6 changes: 5 additions & 1 deletion app/locales/de/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,14 @@ msgstr "Kategorien"
msgid "browse.dataset.create-visualization"
msgstr "Visualisierung erstellen"

#: app/configurator/components/select-dataset-step.tsx:123
#: app/configurator/components/select-dataset-step.tsx:129
msgid "browse.datasets.all-datasets"
msgstr "Alle Datensätze"

#: app/configurator/components/select-dataset-step.tsx:141
msgid "browse.datasets.description"
msgstr "Erkunden Sie die vom LINDAS Linked Data Service bereitgestellten Datensätze, indem Sie entweder nach Kategorien oder Organisationen filtern oder direkt nach bestimmten Stichworten suchen. Klicken Sie auf einen Datensatz, um detailliertere Informationen zu erhalten und Ihre eigenen Visualisierungen zu erstellen."

#: app/pages/v/[chartId].tsx:122
msgid "button.copy.visualization"
msgstr "Diese Visualisierung kopieren"
Expand Down
6 changes: 5 additions & 1 deletion app/locales/en/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,14 @@ msgstr "Categories"
msgid "browse.dataset.create-visualization"
msgstr "Create visualization"

#: app/configurator/components/select-dataset-step.tsx:123
#: app/configurator/components/select-dataset-step.tsx:129
msgid "browse.datasets.all-datasets"
msgstr "All Datasets"

#: app/configurator/components/select-dataset-step.tsx:141
msgid "browse.datasets.description"
msgstr "Explore datasets provided by the LINDAS Linked Data Service by either filtering by categories or organisations or search directly for specific keywords. Click on a dataset to see more detailed information and start creating your own visualizations."

#: app/pages/v/[chartId].tsx:122
msgid "button.copy.visualization"
msgstr "Copy This Visualization"
Expand Down
6 changes: 5 additions & 1 deletion app/locales/fr/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,14 @@ msgstr "Catégories"
msgid "browse.dataset.create-visualization"
msgstr "Créer une visualisation"

#: app/configurator/components/select-dataset-step.tsx:123
#: app/configurator/components/select-dataset-step.tsx:129
msgid "browse.datasets.all-datasets"
msgstr "Tout les jeux de données"

#: app/configurator/components/select-dataset-step.tsx:141
msgid "browse.datasets.description"
msgstr "Explorez les jeux de données liés fournis par LINDAS, en filtrant par catégories ou organisations, ou en recherchant par mots-clés. Cliquez sur un ensemble de données pour afficher des informations plus détaillées et commencer à créer vos propres visualisations. "

#: app/pages/v/[chartId].tsx:122
msgid "button.copy.visualization"
msgstr "Copier cette visualisation"
Expand Down
6 changes: 5 additions & 1 deletion app/locales/it/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,14 @@ msgstr "Categorie"
msgid "browse.dataset.create-visualization"
msgstr "Crea una visualizzazione"

#: app/configurator/components/select-dataset-step.tsx:123
#: app/configurator/components/select-dataset-step.tsx:129
msgid "browse.datasets.all-datasets"
msgstr "Tutti i set di dati"

#: app/configurator/components/select-dataset-step.tsx:141
msgid "browse.datasets.description"
msgstr "Esplora i set di dati forniti dal LINDAS Linked Data Service filtrando per categorie o organizzazioni oppure cercando direttamente per parole chiave specifiche. Clicca su un set di dati per vedere informazioni più dettagliate e iniziare a creare le tue visualizzazioni."

#: app/pages/v/[chartId].tsx:122
msgid "button.copy.visualization"
msgstr "Copia questa visualizzazione"
Expand Down

0 comments on commit 3d0fd6f

Please sign in to comment.