Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

Commit

Permalink
adds dash and slash as characters
Browse files Browse the repository at this point in the history
  • Loading branch information
Felienne committed Mar 2, 2021
1 parent 0afe8bc commit f730b4e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions coursedata/texts/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ HedyErrorMessages:
star: "a star"
single quotes: "a single quote"
double quotes: "double quotes"
slash: "a slash"
Auth:
create_account: "Create account"
create_account_explanation: "Having your own account allows you to save your programs."
Expand Down
1 change: 1 addition & 0 deletions coursedata/texts/es.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ HedyErrorMessages:
star: "un asterisco"
single quotes: "una comilla simple"
double quotes: "una comilla doble"
slash: "slash"
Auth:
create_account: "Crear cuenta"
create_account_explanation: "Con tu cuenta puedes salvar tus programas."
Expand Down
1 change: 1 addition & 0 deletions coursedata/texts/fr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ HedyErrorMessages:
star: "a star"
single quotes: "a single quote"
double quotes: "double quotes"
slash: "a slash"
Auth:
create_account: "Create account"
create_account_explanation: "Having your own account allows you to save your programs."
Expand Down
1 change: 1 addition & 0 deletions coursedata/texts/nl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ HedyErrorMessages:
star: "een sterretje"
single quotes: "een hoge komma"
double quotes: "twee hoge komma's"
slash: "een schuin streepje"
Auth:
create_account: "Maak een account"
create_account_explanation: "Met een account je kunt jouw programma's opslaan."
Expand Down
1 change: 1 addition & 0 deletions coursedata/texts/pt_br.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ HedyErrorMessages:
star: "um asterisco"
single quotes: "aspas simples"
double quotes: "aspas duplas"
slash: "a slash"
Auth:
create_account: "Create account"
create_account_explanation: "Having your own account allows you to save your programs."
Expand Down
4 changes: 4 additions & 0 deletions hedy.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,10 @@ def translate_characters(s):
return 'single quotes'
elif s == '"':
return 'double quotes'
elif s == '/':
return 'slash'
elif s == '-':
return 'dash'
elif s >= 'a' and s <= 'z' or s >= 'A' and s <= 'Z':
return s
else:
Expand Down

0 comments on commit f730b4e

Please sign in to comment.