Commit 0c1e5723 authored by Franco Fichtner's avatar Franco Fichtner

mvc: translate page title

Needs more fixing/unification with the proper way of doing it,
but for now let these strings trickle through the translation
machinery for maximum effect.
parent 706d2804
<?php <?php
/** /**
* Copyright (C) 2015 Deciso B.V. * Copyright (C) 2015 Deciso B.V.
* *
...@@ -26,6 +27,7 @@ ...@@ -26,6 +27,7 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
* *
*/ */
namespace OPNsense\CaptivePortal; namespace OPNsense\CaptivePortal;
/** /**
...@@ -36,7 +38,7 @@ class IndexController extends \OPNsense\Base\IndexController ...@@ -36,7 +38,7 @@ class IndexController extends \OPNsense\Base\IndexController
{ {
public function indexAction() public function indexAction()
{ {
$this->view->title = "Captive Portal"; $this->view->title = gettext('Captive Portal');
// link rule dialog // link rule dialog
$this->view->formDialogZone = $this->getForm("dialogZone"); $this->view->formDialogZone = $this->getForm("dialogZone");
// choose template // choose template
......
<?php <?php
/** /**
* Copyright (C) 2015 Deciso B.V. * Copyright (C) 2015 Deciso B.V.
* *
...@@ -26,6 +27,7 @@ ...@@ -26,6 +27,7 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
* *
*/ */
namespace OPNsense\CaptivePortal; namespace OPNsense\CaptivePortal;
/** /**
...@@ -36,7 +38,7 @@ class SessionController extends \OPNsense\Base\IndexController ...@@ -36,7 +38,7 @@ class SessionController extends \OPNsense\Base\IndexController
{ {
public function indexAction() public function indexAction()
{ {
$this->view->title = "Captive Portal / Sessions"; $this->view->title = gettext('Captive Portal Sessions');
// choose template // choose template
$this->view->pick('OPNsense/CaptivePortal/clients'); $this->view->pick('OPNsense/CaptivePortal/clients');
} }
......
<?php <?php
/** /**
* Copyright (C) 2015 Deciso B.V. * Copyright (C) 2015 Deciso B.V.
* *
...@@ -26,6 +27,7 @@ ...@@ -26,6 +27,7 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
* *
*/ */
namespace OPNsense\CaptivePortal; namespace OPNsense\CaptivePortal;
/** /**
...@@ -36,7 +38,7 @@ class VoucherController extends \OPNsense\Base\IndexController ...@@ -36,7 +38,7 @@ class VoucherController extends \OPNsense\Base\IndexController
{ {
public function indexAction() public function indexAction()
{ {
$this->view->title = "Captive Portal / Vouchers"; $this->view->title = gettext('Captive Portal Vouchers');
// choose template // choose template
$this->view->pick('OPNsense/CaptivePortal/vouchers'); $this->view->pick('OPNsense/CaptivePortal/vouchers');
} }
......
<?php <?php
/** /**
* Copyright (C) 2015 Deciso B.V. * Copyright (C) 2015 Deciso B.V.
* *
...@@ -26,6 +27,7 @@ ...@@ -26,6 +27,7 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
* *
*/ */
namespace OPNsense\Core; namespace OPNsense\Core;
/** /**
...@@ -39,7 +41,7 @@ class FirmwareController extends \OPNsense\Base\IndexController ...@@ -39,7 +41,7 @@ class FirmwareController extends \OPNsense\Base\IndexController
*/ */
public function indexAction() public function indexAction()
{ {
$this->view->title = "Firmware"; $this->view->title = gettext('Firmware');
$this->view->pick('OPNsense/Core/firmware'); $this->view->pick('OPNsense/Core/firmware');
return; return;
} }
......
<?php <?php
/** /**
* Copyright (C) 2015 Deciso B.V. * Copyright (C) 2015 Deciso B.V.
* *
...@@ -26,7 +27,8 @@ ...@@ -26,7 +27,8 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
* *
*/ */
namespace OPNsense\Core;
namespace OPNsense\Core;
/** /**
* Class IndexController Index controller for core package * Class IndexController Index controller for core package
......
<?php <?php
/** /**
* Copyright (C) 2015 Deciso B.V. * Copyright (C) 2015 Deciso B.V.
* *
...@@ -26,6 +27,7 @@ ...@@ -26,6 +27,7 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
* *
*/ */
namespace OPNsense\Cron; namespace OPNsense\Cron;
/** /**
...@@ -40,7 +42,7 @@ class IndexController extends \OPNsense\Base\IndexController ...@@ -40,7 +42,7 @@ class IndexController extends \OPNsense\Base\IndexController
*/ */
public function indexAction() public function indexAction()
{ {
$this->view->title = "Cron settings"; $this->view->title = gettext('Cron Settings');
// include dialog form definitions // include dialog form definitions
$this->view->formDialogEdit = $this->getForm("dialogEdit"); $this->view->formDialogEdit = $this->getForm("dialogEdit");
$this->view->pick('OPNsense/Cron/index'); $this->view->pick('OPNsense/Cron/index');
......
<?php <?php
/** /**
* Copyright (C) 2015 Deciso B.V. * Copyright (C) 2015 Deciso B.V.
* *
...@@ -26,6 +27,7 @@ ...@@ -26,6 +27,7 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
* *
*/ */
namespace OPNsense\Cron; namespace OPNsense\Cron;
/** /**
...@@ -41,7 +43,7 @@ class ItemController extends \OPNsense\Base\IndexController ...@@ -41,7 +43,7 @@ class ItemController extends \OPNsense\Base\IndexController
*/ */
public function openAction($uuid = null) public function openAction($uuid = null)
{ {
$this->view->title = "Cron settings"; $this->view->title = gettext('Cron Settings');
$this->view->selected_uuid = $uuid; $this->view->selected_uuid = $uuid;
// include dialog form definitions // include dialog form definitions
$this->view->formDialogEdit = $this->getForm("dialogEdit"); $this->view->formDialogEdit = $this->getForm("dialogEdit");
......
<?php <?php
/** /**
* Copyright (C) 2015 Deciso B.V. * Copyright (C) 2015 Deciso B.V.
* *
...@@ -26,6 +27,7 @@ ...@@ -26,6 +27,7 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
* *
*/ */
namespace OPNsense\Diagnostics; namespace OPNsense\Diagnostics;
use OPNsense\Base\IndexController; use OPNsense\Base\IndexController;
...@@ -38,7 +40,7 @@ class ActivityController extends IndexController ...@@ -38,7 +40,7 @@ class ActivityController extends IndexController
{ {
public function indexAction() public function indexAction()
{ {
$this->view->title = "System Activity"; $this->view->title = gettext('System Activity');
$this->view->pick('OPNsense/Diagnostics/systemactivity'); $this->view->pick('OPNsense/Diagnostics/systemactivity');
} }
} }
<?php <?php
/** /**
* Copyright (C) 2016 Deciso B.V. * Copyright (C) 2016 Deciso B.V.
* *
...@@ -26,6 +27,7 @@ ...@@ -26,6 +27,7 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
* *
*/ */
namespace OPNsense\Diagnostics; namespace OPNsense\Diagnostics;
use OPNsense\Base\IndexController; use OPNsense\Base\IndexController;
...@@ -41,7 +43,7 @@ class InterfaceController extends IndexController ...@@ -41,7 +43,7 @@ class InterfaceController extends IndexController
*/ */
public function arpAction() public function arpAction()
{ {
$this->view->title = "System ARP table"; $this->view->title = gettext('Interfaces ARP Table');
$this->view->pick('OPNsense/Diagnostics/arp'); $this->view->pick('OPNsense/Diagnostics/arp');
} }
...@@ -50,7 +52,7 @@ class InterfaceController extends IndexController ...@@ -50,7 +52,7 @@ class InterfaceController extends IndexController
*/ */
public function ndpAction() public function ndpAction()
{ {
$this->view->title = "System NDP table"; $this->view->title = gettext('Interfaces NDP Table');
$this->view->pick('OPNsense/Diagnostics/ndp'); $this->view->pick('OPNsense/Diagnostics/ndp');
} }
...@@ -59,7 +61,7 @@ class InterfaceController extends IndexController ...@@ -59,7 +61,7 @@ class InterfaceController extends IndexController
*/ */
public function routesAction() public function routesAction()
{ {
$this->view->title = "System Routing table"; $this->view->title = gettext('System Routing Table');
$this->view->pick('OPNsense/Diagnostics/routes'); $this->view->pick('OPNsense/Diagnostics/routes');
} }
} }
<?php <?php
/** /**
* Copyright (C) 2016 Deciso B.V. * Copyright (C) 2016 Deciso B.V.
* *
...@@ -26,6 +27,7 @@ ...@@ -26,6 +27,7 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
* *
*/ */
namespace OPNsense\Diagnostics; namespace OPNsense\Diagnostics;
use OPNsense\Base\IndexController; use OPNsense\Base\IndexController;
...@@ -38,7 +40,7 @@ class NetflowController extends IndexController ...@@ -38,7 +40,7 @@ class NetflowController extends IndexController
{ {
public function indexAction() public function indexAction()
{ {
$this->view->title = "Netflow"; $this->view->title = gettext('NetFlow');
$this->view->pick('OPNsense/Diagnostics/netflow'); $this->view->pick('OPNsense/Diagnostics/netflow');
$this->view->captureForm = $this->getForm("netflow_capture"); $this->view->captureForm = $this->getForm("netflow_capture");
} }
......
<?php <?php
/** /**
* Copyright (C) 2016 Deciso B.V. * Copyright (C) 2016 Deciso B.V.
* *
...@@ -26,6 +27,7 @@ ...@@ -26,6 +27,7 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
* *
*/ */
namespace OPNsense\Diagnostics; namespace OPNsense\Diagnostics;
use OPNsense\Base\IndexController; use OPNsense\Base\IndexController;
...@@ -38,7 +40,7 @@ class NetworkinsightController extends IndexController ...@@ -38,7 +40,7 @@ class NetworkinsightController extends IndexController
{ {
public function indexAction() public function indexAction()
{ {
$this->view->title = "Network Insight"; $this->view->title = gettext('Network Insight');
$this->view->pick('OPNsense/Diagnostics/networkinsight'); $this->view->pick('OPNsense/Diagnostics/networkinsight');
} }
} }
<?php <?php
/** /**
* Copyright (C) 2015 Deciso B.V. - J.Schellevis * Copyright (C) 2015 Deciso B.V. - J.Schellevis
* *
...@@ -26,6 +27,7 @@ ...@@ -26,6 +27,7 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
* *
*/ */
namespace OPNsense\Diagnostics; namespace OPNsense\Diagnostics;
use OPNsense\Base\IndexController; use OPNsense\Base\IndexController;
...@@ -38,7 +40,7 @@ class SystemhealthController extends IndexController ...@@ -38,7 +40,7 @@ class SystemhealthController extends IndexController
{ {
public function indexAction() public function indexAction()
{ {
$this->view->title = "System Health"; $this->view->title = gettext('System Health');
$this->view->pick('OPNsense/Diagnostics/systemhealth'); $this->view->pick('OPNsense/Diagnostics/systemhealth');
} }
} }
<?php <?php
/** /**
* Copyright (C) 2015 Deciso B.V. * Copyright (C) 2015 Deciso B.V.
* *
...@@ -26,6 +27,7 @@ ...@@ -26,6 +27,7 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
* *
*/ */
namespace OPNsense\IDS; namespace OPNsense\IDS;
/** /**
...@@ -40,7 +42,7 @@ class IndexController extends \OPNsense\Base\IndexController ...@@ -40,7 +42,7 @@ class IndexController extends \OPNsense\Base\IndexController
*/ */
public function indexAction() public function indexAction()
{ {
$this->view->title = "Intrusion Detection"; $this->view->title = gettext('Intrusion Detection');
// link rule dialog // link rule dialog
$this->view->formDialogRule = $this->getForm("dialogRule"); $this->view->formDialogRule = $this->getForm("dialogRule");
// link alert info dialog // link alert info dialog
......
<?php <?php
/** /**
* Copyright (C) 2015 Deciso B.V. * Copyright (C) 2015 Deciso B.V.
* *
...@@ -26,6 +27,7 @@ ...@@ -26,6 +27,7 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
* *
*/ */
namespace OPNsense\Proxy; namespace OPNsense\Proxy;
/** /**
...@@ -40,7 +42,7 @@ class IndexController extends \OPNsense\Base\IndexController ...@@ -40,7 +42,7 @@ class IndexController extends \OPNsense\Base\IndexController
*/ */
public function indexAction() public function indexAction()
{ {
$this->view->title = "Proxy Server"; $this->view->title = gettext('Proxy Server');
$this->view->mainForm = $this->getForm("main"); $this->view->mainForm = $this->getForm("main");
$this->view->formDialogEditBlacklist = $this->getForm("dialogEditBlacklist"); $this->view->formDialogEditBlacklist = $this->getForm("dialogEditBlacklist");
$this->view->pick('OPNsense/Proxy/index'); $this->view->pick('OPNsense/Proxy/index');
......
<?php <?php
/** /**
* Copyright (C) 2015 Deciso B.V. * Copyright (C) 2015 Deciso B.V.
* *
...@@ -26,6 +27,7 @@ ...@@ -26,6 +27,7 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
* *
*/ */
namespace OPNsense\TrafficShaper; namespace OPNsense\TrafficShaper;
/** /**
...@@ -40,7 +42,7 @@ class IndexController extends \OPNsense\Base\IndexController ...@@ -40,7 +42,7 @@ class IndexController extends \OPNsense\Base\IndexController
*/ */
public function indexAction() public function indexAction()
{ {
$this->view->title = "Traffic Shaper"; $this->view->title = gettext('Traffic Shaper');
// include dialog form definitions // include dialog form definitions
$this->view->formDialogPipe = $this->getForm("dialogPipe"); $this->view->formDialogPipe = $this->getForm("dialogPipe");
$this->view->formDialogQueue = $this->getForm("dialogQueue"); $this->view->formDialogQueue = $this->getForm("dialogQueue");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment