CC-1960: Internationalize Airtime / Support translations

- added gettext wrapper function to all strings in controllers
This commit is contained in:
denise 2012-11-15 12:55:45 -05:00
parent e5f67c8b05
commit 5adadc2e91
12 changed files with 91 additions and 89 deletions

View file

@ -33,9 +33,9 @@ class DashboardController extends Zend_Controller_Action
Application_Model_RabbitMq::SendMessageToPypo("disconnect_source", $data);
} else {
if ($source_connected) {
$this->view->error = "You don't have permission to disconnect source.";
$this->view->error = _("You don't have permission to disconnect source.");
} else {
$this->view->error = "There is no source connected to this input.";
$this->view->error = _("There is no source connected to this input.");
}
}
}
@ -79,12 +79,12 @@ class DashboardController extends Zend_Controller_Action
}
} else {
if ($source_connected) {
$this->view->error = "You don't have permission to switch source.";
$this->view->error = _("You don't have permission to switch source.");
} else {
if ($sourcename == 'scheduled_play') {
$this->view->error = "You don't have permission to disconnect source.";
$this->view->error = _("You don't have permission to disconnect source.");
} else {
$this->view->error = "There is no source connected to this input.";
$this->view->error = _("There is no source connected to this input.");
}
}
}