Skip to content

Commit 3f50fd5

Browse files
committed
Update displayed text in App in english and German according to issue # 16.
1 parent 493b073 commit 3f50fd5

2 files changed

Lines changed: 25 additions & 26 deletions

File tree

survey_dashboard/main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,8 @@ def select_data_wordcloud(data_filters, data_filters_method, content=['dataGenMe
408408
#tab2 = ("Filter HFG field", fig2)
409409
#filter_tabs = pn.Tabs(*[tab1, tab2])
410410

411-
multi_choice = pn.widgets.MultiChoice(name="Filter by research area. (Each selected will be shown)", value=["All"], options=FILTER_OPTIONS['researchArea'])
412-
multi_choice_method = pn.widgets.MultiChoice(name="Filter by data generation method (Only datasets containing all filters)", value=[], options=FILTER_OPTIONS['method'])
411+
multi_choice = pn.widgets.MultiChoice(name=md_text_global_filters_widgets[0], value=["All"], options=FILTER_OPTIONS['researchArea'])
412+
multi_choice_method = pn.widgets.MultiChoice(name=md_text_global_filters_widgets[1], value=[], options=FILTER_OPTIONS['method'])
413413
#multi_choice_hgf_field = pn.widgets.MultiChoice(name="Filter by HGF research field (Each selected will be shown)", value=["All"], options=FILTER_OPTIONS['HGFresearchfield'])
414414
# for careerlevel there can be only one, so we use a Multiselect instead
415415
#select_careerlevel = pn.widgets.Select(name="Filter by career level.", value=[], options=FILTER_OPTIONS['careerLevel'])
@@ -418,13 +418,13 @@ def select_data_wordcloud(data_filters, data_filters_method, content=['dataGenMe
418418
# Bar chart
419419
# D: question select could also be a slider?
420420
# TODO: get filter options for question
421-
question_select = pn.widgets.Select(name="Select a Question from the survey", value=START_DATA_BAR,
421+
question_select = pn.widgets.Select(name=md_text_select_widgets[0][LANGUAGE], value=START_DATA_BAR,
422422
options=questions)#, description="Select the survey question, which results should be displayed.")
423423

424424
multi_filter = pn.widgets.MultiChoice(name="Filter by data by question specific filter", value=[],
425425
options=FILTER_OPTIONS['method'], visible=False)
426426

427-
question_select2 = pn.widgets.Select(name="Select a Question from the survey", value=START_DATA_BAR2,
427+
question_select2 = pn.widgets.Select(name=md_text_select_widgets[1][LANGUAGE], value=START_DATA_BAR2,
428428
options=questions)#, description="Select the survey question, which results should be displayed.")
429429

430430
multi_filter2 = pn.widgets.MultiChoice(name="Filter by data by question specific filter", value=[],

survey_dashboard/text_display.py

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
md_text_description = {'EN': ("Explorer interactively the HMC 2021 Survey results. "
1818
"The overview sections displays some main results, while you can apply some global filters to these. "
1919
"Find out what methods, tools, software and standards are applied by others in your research area. "
20-
"The question explorer allows for in detail analyzis of a specific question and simple correlations of two questions. "
20+
"The question explorer allows for in detail analysis of a specific question and simple correlations of two questions. "
2121
"Interact with the visualizations and widgets on the left to explorer the data.\n"
2222
"The corresponding Data publication of the survey is available [here](https://doi.org/10.7802/2433).\n"
2323
"\n "
@@ -33,36 +33,35 @@
3333

3434

3535
## Global data filters\n
36-
md_text_global_filter = {'EN': ("Select some data filters to apply. "
37-
"You can filter global by research area and or by data generation method."),
38-
'DE': ("Wähle Datenfilter aus. Die Resultate können global nach "
39-
"Forschungsfeld und Erzeugungsmethode gefiltert werden.")}
36+
md_text_global_filter = {'EN': ("Apply filters to displayed data according to research areas and data generation method"),
37+
'DE': ("Wende Filter auf die Resultate an um nur Daten bestimmter "
38+
"Forschungsfelder und Erzeugungsmethode dazustellen.")}
39+
40+
md_text_global_filters_widgets = [{'EN': "Research area", 'DE': "Forschungsfeld"}, {'EN': "Data generation method", 'DE': "Datenerzeugungs Methode"}]
41+
4042
# Overview\n
41-
md_text_overview = {'EN': ("Birds eye view of survey results related to research data management."
42-
""),
43-
'DE': ("Überblick")}
43+
md_text_overview = {'EN': ("Birds eye view of survey results related to research data management."),
44+
'DE': ("Übersicht mit hervorgehobene Fragen zum Forschungsdatenmanagement")}
4445

4546

46-
# Basic Correlations\n
47-
md_text_corrchart = {'EN': ("Find out about basic correlation of two answers, "
48-
"i.e. how many participants provided the same answer for two questions."),
49-
'DE': ("Finde heraus wie Antworten zweier Fragen sich überschneiden. "
50-
"Also wie viele der Befragten gleich auf zwei Fragen geantwortet haben.")}
5147

52-
md_text_button = {'EN': ("# Further charts\n")}
5348

5449
# Tools and Methods\n
55-
md_text_tools_used = {'EN': ("Find out about the tools and methods used in the "
56-
"research area and data generation method you filtered for."),
57-
'DE': ("Finde heraus welche Methoden, welche Werkzeuge und welche Software "
58-
"in welchem Anwendungsbereich genutzt wird.")}
50+
md_text_tools_used = {'EN': ("Discover the scientific methods, used software and repositories of our communities."),
51+
'DE': ("Entdecke die wissenschaftliche Methoden, Werkzeuge, Software und Repositorien welche in unseren Forschungsgemeinschaft "
52+
"genutzt werden.")}
5953

6054
# Question explorer
6155

62-
md_text_barchart = {'EN': ("Use this area to explorer the results for each survey question. "
63-
"Use the dropdown menus to select the question of interest."),
64-
'DE': ("Exploriere hier die Resultate für den Teil der Umfrage welcher dich am meisten interessiert. "
65-
"Benutze die Auswahlwidgets um die Resultate einer bestimmten Frage anzuzeigen.")}
56+
md_text_barchart = {'EN': ("Select two questions to explore answers and see how they correspond to one another."),
57+
'DE': ("Wähle zwei Fragen aus um deren Anworten zu sehen und wie diese übereinstimmen.")}
58+
59+
md_text_select_widgets = [{'EN': "Question 1", 'DE': "Frage 1"}, {'EN': "Question 2", 'DE': "Frage 2"}]
60+
# Basic Correlations\n
61+
md_text_corrchart = {'EN': ("Correspondence of selected questions"),
62+
'DE': ("Korrespondenz der ausgewählten Fragen")}
63+
64+
md_text_button = {'EN': ("# Further charts\n")}
6665

6766
accordion_titles = {
6867
'EN': ['Global Data Filters', 'Overview', 'Methods, Tools and Software', 'Survey Data Explorer'],

0 commit comments

Comments
 (0)