Skip to content

Commit 52c8f77

Browse files
committed
refactor: replace specific vis types with visualization word
1 parent aff1dd2 commit 52c8f77

File tree

4 files changed

+15
-12
lines changed

4 files changed

+15
-12
lines changed

vis/js/i18n/localization.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,11 @@ export const localization: {
202202
pdf_not_loaded:
203203
"Sorry, we were not able to retrieve the PDF for this publication. You can get it directly from",
204204
pdf_not_loaded_linktext: "this website",
205-
share_button_title: "Share this knowledge map",
206-
share_button_title_sg: "Share this streamgraph",
205+
share_button_title: "Share this visualization",
206+
share_button_title_sg: "Share this visualization",
207207
embed_title: "embed visualization",
208-
embed_button_title: "Embed this knowledge map on other websites",
209-
embed_button_title_sg: "Embed this streamgraph on other websites",
208+
embed_button_title: "Embed this visualization on other websites",
209+
embed_button_title_sg: "Embed this visualization on other websites",
210210
embed_body_text:
211211
"You can use this code to embed the visualization on your own website or in a dashboard.",
212212
area_streamgraph: "Stream",
@@ -219,8 +219,8 @@ export const localization: {
219219
lang_all: "All languages",
220220
cite: "Cite",
221221
filter_by_label: "show: ",
222-
cite_title_km: "Cite this knowledge map",
223-
cite_title_sg: "Cite this streamgraph",
222+
cite_title_km: "Cite this visualization",
223+
cite_title_sg: "Cite this visualization",
224224
citation_template:
225225
"Open Knowledge Maps (${year}). ${type} for research on ${query}. Retrieved from ${source} [${date}].",
226226
cite_vis_km: "Please cite this knowledge map as follows",
@@ -312,7 +312,7 @@ export const localization: {
312312
"Keine Dokumente gefunden. Setzen Sie bitte Ihre Filtereinstellungen zurück.",
313313
cite: "Cite",
314314
cite_title_km: "Zitieren Sie diese Wissenskarte",
315-
cite_title_sg: "Cite this streamgraph",
315+
cite_title_sg: "Cite this visualization",
316316
citation_template:
317317
"Open Knowledge Maps (${year}). ${type} for research on ${query}. Retrieved from ${source} [${date}].",
318318
cite_vis_km: "Please cite this knowledge map as follows",

vis/js/templates/buttons/CitationButton.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ import { useLocalizationContext } from "../../components/LocalizationProvider";
88
import { STREAMGRAPH_MODE } from "../../reducers/chartType";
99
import useMatomo from "../../utils/useMatomo";
1010

11-
const CitationButton = ({ isStreamgraph, onClick }: {
11+
const CitationButton = ({
12+
isStreamgraph,
13+
onClick,
14+
}: {
1215
isStreamgraph: boolean;
1316
onClick: () => void;
1417
}) => {

vis/js/templates/buttons/EmailButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @ts-nocheck
22
import React from "react";
3-
43
import { Button } from "react-bootstrap";
4+
55
import useMatomo from "../../utils/useMatomo";
66

77
const EmailButton = () => {
@@ -30,7 +30,7 @@ const EmailButton = () => {
3030
>
3131
<Button
3232
bsStyle="primary"
33-
title="Share this knowledge map via email"
33+
title="Share this visualization via email"
3434
onClick={handleClick}
3535
>
3636
<i className="fa fa-envelope"></i>

vis/js/templates/buttons/TwitterButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// @ts-nocheck
22

33
import React from "react";
4+
import { Button } from "react-bootstrap";
45
import { connect } from "react-redux";
56

6-
import { Button } from "react-bootstrap";
77
import useMatomo from "../../utils/useMatomo";
88

99
const TwitterButton = ({ twitterHashtags }) => {
@@ -29,7 +29,7 @@ const TwitterButton = ({ twitterHashtags }) => {
2929
>
3030
<Button
3131
bsStyle="primary"
32-
title="Share this knowledge map via Twitter"
32+
title="Share this visualization via Twitter"
3333
onClick={handleClick}
3434
>
3535
<i className="fab fa-twitter"></i>

0 commit comments

Comments
 (0)