From: Marcin Haba Date: Sun, 30 Nov 2014 23:06:51 +0000 (+0100) Subject: baculum: Tweak update language files X-Git-Tag: Release-7.2.0~101 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=754184bdfc5a1fc38bee05915edd3342988f966a;p=bacula%2Fbacula baculum: Tweak update language files --- diff --git a/gui/baculum/protected/Lang/en/messages.mo b/gui/baculum/protected/Lang/en/messages.mo index 5355f22bca..c3a9b2785a 100755 Binary files a/gui/baculum/protected/Lang/en/messages.mo and b/gui/baculum/protected/Lang/en/messages.mo differ diff --git a/gui/baculum/protected/Lang/en/messages.po b/gui/baculum/protected/Lang/en/messages.po index 5408b7c0a2..1ebb8283d9 100755 --- a/gui/baculum/protected/Lang/en/messages.po +++ b/gui/baculum/protected/Lang/en/messages.po @@ -1,6 +1,6 @@ msgid "" msgstr "" -"PO-Revision-Date: 2014-11-30 20:04:21\n" +"PO-Revision-Date: 2014-11-30 22:43:34\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "Last-Translator: Marcin Haba \n" @@ -715,19 +715,6 @@ msgstr "Enable logging" msgid "clear bvfs cache" msgstr "clear bvfs cache" -msgid "Output for selected job is not available yet or you do not have enabled logging job logs to catalog database.\n" -"\n" -"For watching job log there is need to add to the job Messages resource next directive:\n" -"\n" -"console = all, !skipped, !saved\n" -"" -msgstr "Output for selected job is not available yet or you do not have enabled logging job logs to catalog database.\n" -"\n" -"For watching job log there is need to add to the job Messages resource next directive:\n" -"\n" -"console = all, !skipped, !saved\n" -"" - msgid "Bconsole admin config file path:" msgstr "Bconsole admin config file path:" @@ -899,3 +886,12 @@ msgstr "Enter" msgid "Clear" msgstr "Clear" +msgid "select action" +msgstr "select action" + +msgid "Delete" +msgstr "Delete" + +msgid "Output for selected job is not available yet or you do not have enabled logging job logs to catalog database. For watching job log there is need to add to the job Messages resource next directive: console = all, !skipped, !saved" +msgstr "Output for selected job is not available yet or you do not have enabled logging job logs to catalog database.\n\nFor watching job log there is need to add to the job Messages resource next directive:\n\nconsole = all, !skipped, !saved" + diff --git a/gui/baculum/protected/Lang/pl/messages.mo b/gui/baculum/protected/Lang/pl/messages.mo index 0a50396900..db61661d10 100755 Binary files a/gui/baculum/protected/Lang/pl/messages.mo and b/gui/baculum/protected/Lang/pl/messages.mo differ diff --git a/gui/baculum/protected/Lang/pl/messages.po b/gui/baculum/protected/Lang/pl/messages.po index be977d1d55..fdf3dbac8e 100644 --- a/gui/baculum/protected/Lang/pl/messages.po +++ b/gui/baculum/protected/Lang/pl/messages.po @@ -1,6 +1,6 @@ msgid "" msgstr "" -"PO-Revision-Date: 2014-11-30 20:04:11\n" +"PO-Revision-Date: 2014-11-30 22:45:33\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "Last-Translator: Marcin Haba \n" @@ -650,7 +650,7 @@ msgid "View mode:" msgstr "Widok:" msgid "Action:" -msgstr "Akacja:" +msgstr "Akcja:" msgid "unmark all and close" msgstr "Odznacz elementy i zamknij" @@ -817,3 +817,12 @@ msgstr "Wykonaj" msgid "Clear" msgstr "Wyczyść" +msgid "select action" +msgstr "wybierz akcję" + +msgid "Delete" +msgstr "Usuń" + +msgid "Output for selected job is not available yet or you do not have enabled logging job logs to catalog database. For watching job log there is need to add to the job Messages resource next directive: console = all, !skipped, !saved" +msgstr "Listing dla wybranego zadania nie jest jeszcze dostępny lub nie masz włączonego logowania statusów zadań do bazy katalogowej.\n\nW celu oglądania listingów ze statusami zadań potrzeba włączyć w zasobie Messages następującą dyrektywę:\n\nconsole = all, !skipped, !saved." + diff --git a/gui/baculum/protected/Portlets/JobConfiguration.php b/gui/baculum/protected/Portlets/JobConfiguration.php index 34a1a071ab..e08869d227 100644 --- a/gui/baculum/protected/Portlets/JobConfiguration.php +++ b/gui/baculum/protected/Portlets/JobConfiguration.php @@ -30,7 +30,7 @@ class JobConfiguration extends Portlets { $this->JobName->Text = $jobdata->job; $this->JobID->Text = $jobdata->jobid; $joblog = $this->Application->getModule('api')->get(array('joblog', $jobdata->jobid))->output; - $this->Estimation->Text = is_array($joblog) ? implode(PHP_EOL, $joblog) : Prado::localize("Output for selected job is not available yet or you do not have enabled logging job logs to catalog database." . PHP_EOL . PHP_EOL . "For watching job log there is need to add to the job Messages resource next directive:" . PHP_EOL . PHP_EOL . "console = all, !skipped, !saved" . PHP_EOL); + $this->Estimation->Text = is_array($joblog) ? implode(PHP_EOL, $joblog) : Prado::localize("Output for selected job is not available yet or you do not have enabled logging job logs to catalog database. For watching job log there is need to add to the job Messages resource next directive: console = all, !skipped, !saved"); $this->Level->dataSource = $this->Application->getModule('misc')->getJobLevels(); $this->Level->SelectedValue = $jobdata->level; @@ -81,7 +81,7 @@ class JobConfiguration extends Portlets { public function status($sender, $param) { $joblog = $this->Application->getModule('api')->get(array('joblog', $this->JobID->Text))->output; - $this->Estimation->Text = is_array($joblog) ? implode(PHP_EOL, $joblog) : Prado::localize("Output for selected job is not available yet or you do not have enabled logging job logs to catalog database." . PHP_EOL . PHP_EOL . "For watching job log there is need to add to the job Messages resource next directive:" . PHP_EOL . PHP_EOL . "console = all, !skipped, !saved" . PHP_EOL); + $this->Estimation->Text = is_array($joblog) ? implode(PHP_EOL, $joblog) : Prado::localize("Output for selected job is not available yet or you do not have enabled logging job logs to catalog database. For watching job log there is need to add to the job Messages resource next directive: console = all, !skipped, !saved"); } public function delete($sender, $param) { diff --git a/gui/baculum/protected/Portlets/SlideWindow.php b/gui/baculum/protected/Portlets/SlideWindow.php index 17ee34e7e8..4882df7fd7 100644 --- a/gui/baculum/protected/Portlets/SlideWindow.php +++ b/gui/baculum/protected/Portlets/SlideWindow.php @@ -78,7 +78,11 @@ class SlideWindow extends Portlets { $this->Simple->Checked = ($_SESSION['view' . $this->getParent()->ID] == self::NORMAL_VIEW); $this->Details->Checked = ($_SESSION['view' . $this->getParent()->ID] == self::DETAIL_VIEW); $actions = array_key_exists($this->getParent()->ID, $this->actions) ? $this->actions[$this->getParent()->ID] : array(); - $this->Actions->dataSource = $actions; + $actionsLang = array(); + foreach($actions as $key => $val) { + $actionsLang[$key] = Prado::localize($val); + } + $this->Actions->dataSource = $actionsLang; $this->Actions->dataBind(); } }