From b54ecbe1066dc900a5b1132373c7c005d1d26acf Mon Sep 17 00:00:00 2001 From: Brandon Jackson Date: Thu, 23 Feb 2017 16:31:06 +0000 Subject: [PATCH] i18n error messages * note: detailed syntax error messages removed in es_AR! --- locales/en/directive.json | 5 ++++- locales/es-AR/directive.json | 5 ++++- locales/ja/directive.json | 5 ++++- views/directive/display.jade | 6 +++--- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/locales/en/directive.json b/locales/en/directive.json index 175681e02..9b1352f7c 100644 --- a/locales/en/directive.json +++ b/locales/en/directive.json @@ -22,5 +22,8 @@ "download_teachers_guide": "Download teacher's guide", "guide": "Guide", "recipients_email_address": "Recipient\\'s email address", - "your_message": "Your message" + "your_message": "Your message", + "error": "{{ error.type | upperfirst }} Error", + "error_line": "on line {{ error.row + 1 || 0 }}", + "error_text": "{{ error.text || 0 }}" } diff --git a/locales/es-AR/directive.json b/locales/es-AR/directive.json index 33d7318fc..5a8d31db0 100644 --- a/locales/es-AR/directive.json +++ b/locales/es-AR/directive.json @@ -20,5 +20,8 @@ "reset": "Reiniciar", "click_plus_to_add_a_shape_2": "para agregar una figura", "autocomplete": "Autocompletar", - "guide": "Guía" + "guide": "Guía", + "error": "Error de Sintaxis", + "error_line": "en la línea {{ error.row + 1 || 0 }}", + "error_text": "" } \ No newline at end of file diff --git a/locales/ja/directive.json b/locales/ja/directive.json index 7e1f153f6..0f4193cf9 100644 --- a/locales/ja/directive.json +++ b/locales/ja/directive.json @@ -22,5 +22,8 @@ "download_teachers_guide": "教師用のガイドをダウンロード", "guide": "ガイド", "recipients_email_address": "宛先のメールアドレス", - "your_message": "メッセージ" + "your_message": "メッセージ", + "error": "{{ error.type | upperfirst }} Error", + "error_line": "on line {{ error.row + 1 || 0 }}", + "error_text": "{{ error.text || 0 }}" } diff --git a/views/directive/display.jade b/views/directive/display.jade index a9f037539..afa2ae8cc 100644 --- a/views/directive/display.jade +++ b/views/directive/display.jade @@ -12,10 +12,10 @@ .error-display(ng-if='error', ng-class='"error-" + error.type') h3 - | {{ error.type | upperfirst }} Error - span(ng-if='error.row !== null') on line {{ error.row + 1 || 0 }} + | ${{ directive.error }}$ + span(ng-if='error.row !== null') ${{ directive.error_line }}$ - p {{ error.text || 0 }} + p ${{ directive.error_text }}$ .actions