From caeb941cb29d7ed510dc92a68b95b8efd03406ca Mon Sep 17 00:00:00 2001 From: Paula Quispe Date: Thu, 30 Mar 2017 15:56:35 -0400 Subject: [PATCH] Add a translation label --- .../engine/content/translations/english/processmaker.en.po | 6 ++++++ workflow/engine/data/mysql/insert.sql | 1 + workflow/engine/methods/cases/open.php | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/workflow/engine/content/translations/english/processmaker.en.po b/workflow/engine/content/translations/english/processmaker.en.po index 592a61be5..ca4e7e85a 100644 --- a/workflow/engine/content/translations/english/processmaker.en.po +++ b/workflow/engine/content/translations/english/processmaker.en.po @@ -2107,6 +2107,12 @@ msgstr "in" msgid "This case does not exist" msgstr "This case does not exist" +# TRANSLATION +# LABEL/ID_APPLICATION_OR_INDEX_MISSING +#: LABEL/ID_APPLICATION_OR_INDEX_MISSING +msgid "Application ID or Delegation Index is missing!. The System can not open the case." +msgstr "Application ID or Delegation Index is missing!. The System can not open the case." + # TRANSLATION # LABEL/ID_PLEASE_SELECT_UPGRADE_FILE #: LABEL/ID_PLEASE_SELECT_UPGRADE_FILE diff --git a/workflow/engine/data/mysql/insert.sql b/workflow/engine/data/mysql/insert.sql index 39c9117d5..a410b8526 100644 --- a/workflow/engine/data/mysql/insert.sql +++ b/workflow/engine/data/mysql/insert.sql @@ -1792,6 +1792,7 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE ( 'LABEL','ID_CASE_IS_CURRENTLY_WITH_ANOTHER_USER','en','The case is currently opened by another user','2014-01-15') , ( 'LABEL','ID_IN','en','in','2014-01-15') , ( 'LABEL','ID_CASE_DOES_NOT_EXISTS','en','This case does not exist','2014-01-15') , +( 'LABEL','ID_APPLICATION_OR_INDEX_MISSING','en','Application ID or Delegation Index is missing!. The System can not open the case.','2017-03-30') , ( 'LABEL','ID_PLEASE_SELECT_UPGRADE_FILE','en','Please select the upgrade file','2014-01-15') , ( 'LABEL','ID_PLEASE_SELECT_MAX_X_FIELDS','en','Please select 80 fields at most','2014-01-15') , ( 'LABEL','ID_UPGRADE_READY','en','System upgraded from revision','2014-01-15') , diff --git a/workflow/engine/methods/cases/open.php b/workflow/engine/methods/cases/open.php index c54668250..fe6ea043c 100644 --- a/workflow/engine/methods/cases/open.php +++ b/workflow/engine/methods/cases/open.php @@ -36,7 +36,7 @@ if(isset( $_GET['gmail']) && $_GET['gmail'] == 1){ //Check if we have the information for open the case if (!isset($_GET['APP_UID']) && !isset($_GET['APP_NUMBER']) && !isset($_GET['DEL_INDEX'])) { - throw new Exception("Application ID or Delegation Index is missing!. The System can't open the case."); + throw new Exception(G::LoadTranslation('ID_APPLICATION_OR_INDEX_MISSING')); } //Get the APP_UID related to APP_NUMBER if (!isset($_GET['APP_UID']) && isset($_GET['APP_NUMBER'])) {