Skip to content

Commit

Permalink
Add EULA strings to the translation system
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMakesThings committed Apr 22, 2020
1 parent 8768c36 commit 96853b0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 27 deletions.
30 changes: 4 additions & 26 deletions app/components/EulaModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,6 @@ import Colors from '../constants/colors';
import languages from '../locales/languages';
import ButtonWrapper from './ButtonWrapper';

// Delete this when actual EULA is available - just use the translation
// ...function in place of EulaCopy in the Markdown tag
const EulaCopy = `## EULA and legal things
Text here
yes its text
many lines
to
test
scrolling
- hey
- look
- its
- a
- list`;

export default class EulaModal extends Component {
constructor(props) {
super(props);
Expand Down Expand Up @@ -71,7 +49,7 @@ export default class EulaModal extends Component {
</TouchableOpacity>
<ScrollView>
<Markdown style={{ body: { color: Colors.DARK_GRAY } }}>
{EulaCopy}
{languages.t('markdown.eula')}
</Markdown>
</ScrollView>
</View>
Expand All @@ -90,14 +68,14 @@ export default class EulaModal extends Component {
style={{ width: 25, height: 25, marginRight: 10 }}
/>
<Text style={styles.checkboxText}>
I accept the licensing agreement
{languages.t('label.eula_checkbox')}
</Text>
</TouchableOpacity>
<Text style={styles.smallDescriptionText}>
*You must accept in order to use Safe Paths
{languages.t('label.eula_message')}
</Text>
<ButtonWrapper
title='Continue'
title={languages.t('label.eula_continue')}
buttonColor={
this.state.boxChecked ? Colors.VIOLET : Colors.GRAY_BUTTON
}
Expand Down
8 changes: 7 additions & 1 deletion app/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@
"logging_inactive": "Location Inactive",
"language_change_alert_title": "App need to restart in order to use this language",
"language_change_alert_proced": "Restart",
"language_change_alert_cancel": "Cancel"
"language_change_alert_cancel": "Cancel",
"eula_checkbox": "I accept the licensing agreement",
"eula_message": "*You must accept in order to use Safe Paths",
"eula_continue": "Continue"
},
"history": {
"no_exposure": "No known",
Expand All @@ -109,5 +112,8 @@
"what_does_this_mean": "What does this mean?",
"what_if_no_symptoms_para": "If you have no symptoms but still would like to be tested you can go to your nearest testing site.\n\nIndividuals who don't exhibit symptoms can sometimes still carry the infection and infect others. Being careful about social distancing and coming in contact with large groups or at risk individuals (the elderly, those with significant other medical issues) is important to manage both your risk and the risk to others.",
"what_if_no_symptoms": "What if I’m not showing symptoms?"
},
"markdown": {
"eula": "## EULA and legal things \n \nText here \n \nyes its text \n \nmany lines \n \nto \n \ntest \n \nscrolling \n \n- hey \n- look \n- its \n- a \n- list"
}
}

0 comments on commit 96853b0

Please sign in to comment.