Skip to content

Commit acc2fd4

Browse files
author
Paul Varache
authored
Merge pull request #397 from KanoComputing/error-i18n
i18n error messages
2 parents 1cf37c3 + 3f35a42 commit acc2fd4

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

locales/en/directive.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,8 @@
2222
"download_teachers_guide": "Download teacher's guide",
2323
"guide": "Guide",
2424
"recipients_email_address": "Recipient\\'s email address",
25-
"your_message": "Your message"
25+
"your_message": "Your message",
26+
"error": "{{ error.type | upperfirst }} Error",
27+
"error_line": "on line {{ error.row + 1 || 0 }}",
28+
"error_text": "{{ error.text || 0 }}"
2629
}

locales/es-AR/directive.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,8 @@
2020
"reset": "Reiniciar",
2121
"click_plus_to_add_a_shape_2": "para agregar una figura",
2222
"autocomplete": "Autocompletar",
23-
"guide": "Guía"
23+
"guide": "Guía",
24+
"error": "Error de Sintaxis",
25+
"error_line": "en la línea {{ error.row + 1 || 0 }}",
26+
"error_text": ""
2427
}

locales/ja/directive.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,8 @@
2222
"download_teachers_guide": "教師用のガイドをダウンロード",
2323
"guide": "ガイド",
2424
"recipients_email_address": "宛先のメールアドレス",
25-
"your_message": "メッセージ"
25+
"your_message": "メッセージ",
26+
"error": "{{ error.type | upperfirst }} Error",
27+
"error_line": "on line {{ error.row + 1 || 0 }}",
28+
"error_text": "{{ error.text || 0 }}"
2629
}

views/directive/display.jade

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
.error-display(ng-if='error', ng-class='"error-" + error.type')
1313

1414
h3
15-
| {{ error.type | upperfirst }} Error
16-
span(ng-if='error.row !== null') on line {{ error.row + 1 || 0 }}
15+
| ${{ directive.error }}$
16+
span(ng-if='error.row !== null') ${{ directive.error_line }}$
1717

18-
p {{ error.text || 0 }}
18+
p ${{ directive.error_text }}$
1919

2020
.actions
2121

0 commit comments

Comments
 (0)