From ee45f10aebd89444c955883c17f2b3afd5b36cf3 Mon Sep 17 00:00:00 2001 From: Naomi Aro Date: Mon, 23 Sep 2013 14:42:35 +0200 Subject: [PATCH] CC-5334 : Localize Ryerson History Feature --- .../controllers/LocaleController.php | 11 ++++-- .../playouthistorytemplate/index.phtml | 17 ++++---- .../template-contents.phtml | 39 ++++++++++--------- .../js/airtime/playouthistory/template.js | 2 +- 4 files changed, 37 insertions(+), 32 deletions(-) diff --git a/airtime_mvc/application/controllers/LocaleController.php b/airtime_mvc/application/controllers/LocaleController.php index 91b9b6055..8b030c9a2 100644 --- a/airtime_mvc/application/controllers/LocaleController.php +++ b/airtime_mvc/application/controllers/LocaleController.php @@ -391,13 +391,18 @@ class LocaleController extends Zend_Controller_Action "File: %f, size: %s, max file size: %m" => _("File: %f, size: %s, max file size: %m"), "Upload URL might be wrong or doesn't exist" => _("Upload URL might be wrong or doesn't exist"), "Error: File too large: " => _("Error: File too large: "), - "Error: Invalid file extension: " => _("Error: Invalid file extension: ") - + "Error: Invalid file extension: " => _("Error: Invalid file extension: "), + //history translations + "Set Default" => _("Set Default"), + "Create Entry" => _("Create Entry"), + "Edit History Record" => _("Edit History Record"), + "No Show" => _("No Show") + ); $this->view->layout()->disableLayout(); $this->_helper->viewRenderer->setNoRender(true); header("Content-type: text/javascript"); echo "var general_dict=".json_encode($translations); - + } } diff --git a/airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml b/airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml index 043ee2150..582ced917 100644 --- a/airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml +++ b/airtime_mvc/application/views/scripts/playouthistorytemplate/index.phtml @@ -1,15 +1,12 @@
-

Log Sheet Templates

+

    template_list) == 0): ?> -
  • No Log Sheet Templates
  • +
  • template_list as $id=>$name): ?> - template_list) == 0): ?> -
  • No Log Sheet Templates
  • - configured)): ?>
  • "> @@ -25,7 +22,7 @@ "> - Set Default +
  • @@ -35,10 +32,10 @@


-

File Summary Templates

+

    template_file) == 0): ?> -
  • No File Summary Templates
  • +
  • template_file as $id=>$name): ?> configured)): ?> @@ -56,12 +53,12 @@ "> - Set Default +
- +
\ No newline at end of file diff --git a/airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml b/airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml index 0209e5e06..9f3cc7344 100644 --- a/airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml +++ b/airtime_mvc/application/views/scripts/playouthistorytemplate/template-contents.phtml @@ -1,26 +1,26 @@ template_type == Application_Service_HistoryService::TEMPLATE_TYPE_FILE): ?> -

Creating File Summary Template

+

-

Creating Log Sheet Template

+

- - +
-

Add more elements:

- +

:

+ - + template_type !== Application_Service_HistoryService::TEMPLATE_TYPE_FILE): ?>
- + "> - +
template_id, $this->configured)): ?> - + - +
\ No newline at end of file diff --git a/airtime_mvc/public/js/airtime/playouthistory/template.js b/airtime_mvc/public/js/airtime/playouthistory/template.js index 892a9c402..7784e6410 100644 --- a/airtime_mvc/public/js/airtime/playouthistory/template.js +++ b/airtime_mvc/public/js/airtime/playouthistory/template.js @@ -23,7 +23,7 @@ var AIRTIME = (function(AIRTIME) { "
  • " + "<%= name %>" + "" + - "Set Default" + + "" + $.i18n._('Set Default') + "" + "
  • "; var template = (configured) === true ? itemConfigured : item;