diff --git a/app/components/chart-footnotes.tsx b/app/components/chart-footnotes.tsx
index a82d086fc..f659fdd8f 100644
--- a/app/components/chart-footnotes.tsx
+++ b/app/components/chart-footnotes.tsx
@@ -1,7 +1,7 @@
import { Trans } from "@lingui/macro";
import { Box, Button, Link, Theme, Typography } from "@mui/material";
import { makeStyles } from "@mui/styles";
-import { useEffect, useMemo, useState } from "react";
+import { PropsWithChildren, useEffect, useMemo, useState } from "react";
import { useChartTablePreview } from "@/components/chart-table-preview";
import { DataDownloadMenu, RunSparqlQuery } from "@/components/data-download";
@@ -174,6 +174,12 @@ export const ChartFootnotes = ({
dangerouslySetInnerHTML={{ __html: dataCubeByIri.publisher }}
>
)}
+ {configKey && shareUrl && visualizeLinkText && (
+ <>
+ {" "}
+ / {visualizeLinkText}
+ >
+ )}
) : null}
@@ -238,23 +244,12 @@ export const ChartFootnotes = ({
{sparqlEditorUrl && showSparqlQuery !== false && (
)}
- {configKey && shareUrl && (
-
+ {configKey && shareUrl && !visualizeLinkText && (
+
+
+ Created with visualize.admin.ch
+
+
)}
@@ -263,3 +258,18 @@ export const ChartFootnotes = ({
return null;
}
};
+
+const LinkButton = (props: PropsWithChildren<{ href: string }>) => {
+ return (
+
+ );
+};
diff --git a/app/components/chart-published.tsx b/app/components/chart-published.tsx
index 027afe6a2..8a4685c53 100644
--- a/app/components/chart-published.tsx
+++ b/app/components/chart-published.tsx
@@ -279,7 +279,7 @@ export const ChartPublishedInner = ({
visualizeLinkText={
showDownload === false ? (
- More information
+ visualize.admin.ch
) : undefined
}
diff --git a/app/locales/de/messages.po b/app/locales/de/messages.po
index a2c624077..670ad98fc 100644
--- a/app/locales/de/messages.po
+++ b/app/locales/de/messages.po
@@ -157,6 +157,7 @@ msgstr "Kategorien"
msgid "columnStyle.heatmap"
msgstr "Heatmap"
+#: app/configurator/table/table-chart-options.tsx
#: app/configurator/table/table-chart-options.tsx
#: app/configurator/table/table-chart-options.tsx
msgid "columnStyle.text"
@@ -874,6 +875,8 @@ msgstr "Koordinaten-Ladefehler"
msgid "hint.create.your.own.chart"
msgstr "Kopieren Sie diese Visualisierung oder erstellen Sie eine neue Visualisierung mit Swiss Open Government Data."
+#: app/components/data-download.tsx
+#: app/components/data-download.tsx
#: app/components/hint.tsx
msgid "hint.dataloadingerror.message"
msgstr "Die Daten konnten nicht geladen werden."
@@ -892,7 +895,6 @@ msgstr "Sie können diese Visualisierung teilen oder sie einbetten. Zudem könne
#: app/components/form.tsx
#: app/components/hint.tsx
-#: app/components/hint.tsx
msgid "hint.loading.data"
msgstr "Lade Daten …"
@@ -943,7 +945,7 @@ msgstr "Erstellt mit visualize.admin.ch"
#: app/components/chart-published.tsx
msgid "metadata.link.created.with.visualize.alternate"
-msgstr "Mehr Informationen"
+msgstr "visualize.admin.ch"
#: app/components/chart-footnotes.tsx
msgid "metadata.source"
diff --git a/app/locales/en/messages.po b/app/locales/en/messages.po
index e8f0de9b8..6482c2164 100644
--- a/app/locales/en/messages.po
+++ b/app/locales/en/messages.po
@@ -157,6 +157,7 @@ msgstr "Categories"
msgid "columnStyle.heatmap"
msgstr "Heat Map"
+#: app/configurator/table/table-chart-options.tsx
#: app/configurator/table/table-chart-options.tsx
#: app/configurator/table/table-chart-options.tsx
msgid "columnStyle.text"
@@ -874,6 +875,8 @@ msgstr "Coordinates loading error"
msgid "hint.create.your.own.chart"
msgstr "Copy this visualization or make a new visualization using Swiss Open Government Data."
+#: app/components/data-download.tsx
+#: app/components/data-download.tsx
#: app/components/hint.tsx
msgid "hint.dataloadingerror.message"
msgstr "The data could not be loaded."
@@ -892,7 +895,6 @@ msgstr "You can share this visualization by copying the URL or by embedding it o
#: app/components/form.tsx
#: app/components/hint.tsx
-#: app/components/hint.tsx
msgid "hint.loading.data"
msgstr "Loading data..."
@@ -943,7 +945,7 @@ msgstr "Created with visualize.admin.ch"
#: app/components/chart-published.tsx
msgid "metadata.link.created.with.visualize.alternate"
-msgstr "More information"
+msgstr "visualize.admin.ch"
#: app/components/chart-footnotes.tsx
msgid "metadata.source"
diff --git a/app/locales/fr/messages.po b/app/locales/fr/messages.po
index 4a46e9f18..d755e4a20 100644
--- a/app/locales/fr/messages.po
+++ b/app/locales/fr/messages.po
@@ -157,6 +157,7 @@ msgstr "Catégories"
msgid "columnStyle.heatmap"
msgstr "Heatmap"
+#: app/configurator/table/table-chart-options.tsx
#: app/configurator/table/table-chart-options.tsx
#: app/configurator/table/table-chart-options.tsx
msgid "columnStyle.text"
@@ -874,6 +875,8 @@ msgstr "Erreur de chargement des coordonnées"
msgid "hint.create.your.own.chart"
msgstr "Copiez cette visualisation ou créez une nouvelle visualisation à partir des données ouvertes de l’administration publique suisse."
+#: app/components/data-download.tsx
+#: app/components/data-download.tsx
#: app/components/hint.tsx
msgid "hint.dataloadingerror.message"
msgstr "Les données n'ont pas pu être téléchargées."
@@ -892,7 +895,6 @@ msgstr "Vous pouvez partager cette visualisation en copiant l'URL ou en l'intég
#: app/components/form.tsx
#: app/components/hint.tsx
-#: app/components/hint.tsx
msgid "hint.loading.data"
msgstr "Chargement des données..."
@@ -943,7 +945,7 @@ msgstr "Créé avec visualize.admin.ch"
#: app/components/chart-published.tsx
msgid "metadata.link.created.with.visualize.alternate"
-msgstr "Plus d'informations"
+msgstr "visualize.admin.ch"
#: app/components/chart-footnotes.tsx
msgid "metadata.source"
diff --git a/app/locales/it/messages.po b/app/locales/it/messages.po
index fd32e7766..23b3b4188 100644
--- a/app/locales/it/messages.po
+++ b/app/locales/it/messages.po
@@ -157,6 +157,7 @@ msgstr "Categorie"
msgid "columnStyle.heatmap"
msgstr "Mappa di calore"
+#: app/configurator/table/table-chart-options.tsx
#: app/configurator/table/table-chart-options.tsx
#: app/configurator/table/table-chart-options.tsx
msgid "columnStyle.text"
@@ -874,6 +875,8 @@ msgstr "Errore di caricamento delle coordinate"
msgid "hint.create.your.own.chart"
msgstr "Copia questa visualizzazione o crea una nuova visualizzazione usando «dati aperti» dell’amministrazione pubblica svizzera"
+#: app/components/data-download.tsx
+#: app/components/data-download.tsx
#: app/components/hint.tsx
msgid "hint.dataloadingerror.message"
msgstr "I dati non possono essere caricati."
@@ -892,7 +895,6 @@ msgstr "È possibile condividere questa visualizzazione copiando l'URL o incorpo
#: app/components/form.tsx
#: app/components/hint.tsx
-#: app/components/hint.tsx
msgid "hint.loading.data"
msgstr "Caricamento dei dati..."
@@ -943,7 +945,7 @@ msgstr "Creato con visualize.admin.ch"
#: app/components/chart-published.tsx
msgid "metadata.link.created.with.visualize.alternate"
-msgstr "Più informazioni"
+msgstr "visualize.admin.ch"
#: app/components/chart-footnotes.tsx
msgid "metadata.source"