ProcessMaker-BE "Replace harcoded labels by a translation ID"

- Se ha reemplazado todas los labels harcoded por un ID de translation, para
  los sgtes Endpoints:
    - Calendar
    - Case Tracker
    - Category
    - DynaForms Resources
    - Group
    - Input Documents Resources
    - Process of a Project Resources
    - Process Variables
    - Project Properties - Step Resources
    - Trigger Wizard
    - Web Entry
    - Project Import
- Se ha creado el ID en el workspace OS
This commit is contained in:
Victor Saisa Lopez
2014-05-19 17:30:00 -04:00
parent c9f617b479
commit 9fef15f6ef
19 changed files with 245 additions and 295 deletions

View File

@@ -344,9 +344,7 @@ class Validator
{
try {
if (!is_array($data)) {
$msg = str_replace(array("{0}"), array($dataNameForException), "Invalid value for \"{0}\", this value must be an array.");
throw (new \Exception($msg));
throw new \Exception(\G::LoadTranslation("ID_INVALID_VALUE_THIS_MUST_BE_ARRAY", array($dataNameForException)));
}
} catch (\Exception $e) {
throw $e;
@@ -365,9 +363,7 @@ class Validator
{
try {
if (empty($data)) {
$msg = str_replace(array("{0}"), array($dataNameForException), "Invalid value for \"{0}\", it can not be empty.");
throw (new \Exception($msg));
throw new \Exception(\G::LoadTranslation("ID_INVALID_VALUE_CAN_NOT_BE_EMPTY", array($dataNameForException)));
}
} catch (\Exception $e) {
throw $e;