Skip to content

Commit

Permalink
All files switched to english
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Oct 22, 2017
1 parent 38de4c6 commit 762eaa8
Show file tree
Hide file tree
Showing 58 changed files with 3,347 additions and 2,387 deletions.
Binary file modified locale/cs_CZ/LC_MESSAGES/icinga-editor.mo
Binary file not shown.
2,095 changes: 1,274 additions & 821 deletions locale/cs_CZ/LC_MESSAGES/icinga-editor.po

Large diffs are not rendered by default.

Binary file modified locale/en_US/LC_MESSAGES/icinga-editor.mo
Binary file not shown.
1,717 changes: 1,015 additions & 702 deletions locale/en_US/LC_MESSAGES/icinga-editor.po

Large diffs are not rendered by default.

Binary file modified locale/nb_NO/LC_MESSAGES/icinga-editor.mo
Binary file not shown.
1,372 changes: 785 additions & 587 deletions locale/nb_NO/LC_MESSAGES/icinga-editor.po

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/apply.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@

if (strstr($line, 'has no services associated with it!')) {
preg_match("/\'(.*)\'/", $line, $keywords);
$host = & $generator->Classes['host'];
$host = & $generator->parseClasses['host'];
$host->setmyKeyColumn($host->nameColumn);
$host->loadFromSQL($keywords[1]);
$host->resetObjectIdentity();
Expand Down
6 changes: 2 additions & 4 deletions src/classes/DbFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
namespace Icinga\Editor;

/**
* Opravář databáze
* Databse fixer
*
* @package IcingaEditor
* @subpackage Engine
* @author Vitex <vitex@hippy.cz>
* @copyright 2015 Vitex@hippy.cz (G)
*/
Expand Down Expand Up @@ -79,7 +77,7 @@ public function cleanUnusedServices()
foreach ($services as $service) {
$servicesDeleted[] = current($service);
}
$this->addItemSmart(_('Smazané nepoužívané služby').': '.implode(' , ',
$this->addItemSmart(_('Delete unused services').': '.implode(' , ',
$servicesDeleted), ['class' => 'list-group-item']);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/classes/NSCPConfigBatGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ public function cfgEnding()
}
switch ($this->platform) {
case 'windows':
$this->nscConfArray[] = "\n".'echo ^<h1^>'._('Konfigurace hosta').' '.$this->host->getName().'^</h1^> >> %ICIEDIT_HTML%';
$this->nscConfArray[] = "\n".'echo ^<h1^>'._('Host Configuration').' '.$this->host->getName().'^</h1^> >> %ICIEDIT_HTML%';
$this->nscConfArray[] = "\n".'echo ^<br^>^<a data-role="editor" href="'.Engine\Configurator::getBaseURL().'host.php?host_id='.$this->host->getId().'"^>'._('Host Configuration').'^</a^> >> %ICIEDIT_HTML%';
$this->nscConfArray[] = "\n".'echo ^<br^>^<a data-role="bat" href="'.Engine\Configurator::getBaseURL().'nscpcfggen.php?host_id='.$this->host->getId().'"^>'._('Refresh sensor installation').' '.$this->host->getName().'_nscp.bat'.'^</a^> >> %ICIEDIT_HTML%';
if ($this->host->getDataValue('host_is_server') == 0) {
Expand Down
4 changes: 2 additions & 2 deletions src/classes/SensorTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public function __construct($host)
['style' => "background-image:url('img/nscpp.png'); width: 212px; height: 60px; ",
'title' => 'Download']));
$windowsActiveTab->addItem(new \Ease\TWB\LinkButton('host.php?action=populate&host_id='.$host->getID(),
_('Oskenovat a sledovat služby'), null,
['onClick' => "$('#preload').css('visibility', 'visible');"]));
_('Scan & Wartch services'), null,
['onClick' => "$('#preload').css('visibility', 'visible');"]));
$windowsActiveTab->addItem(new \Ease\TWB\LinkButton('nscpcfggen.php?host_id='.$host->getId(),
$host->getName().'_nscp.bat '.\Ease\TWB\Part::GlyphIcon('download'),
'success'));
Expand Down
6 changes: 3 additions & 3 deletions src/classes/UI/CfgEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,11 +355,11 @@ public function insertWidget($fieldBlock, $fieldName, $value)

$addNewItem = $fieldBlock->addItem(new \Ease\Html\InputSearchTag($fieldName.'-remote',
$this->objectEdited->getDataValue($fieldName.'-remote'),
['class' => 'search-input', 'title' => _('vzdálený test')]));
['class' => 'search-input', 'title' => _('Remote Test')]));
$addNewItem->setDataSource('jsoncommand.php?maxRows=10');

$fieldBlock->addItem(new \Ease\TWB\FormGroup(_('Parametry'),
new \Ease\Html\InputTextTag($fieldName.'-params',
$fieldBlock->addItem(new \Ease\TWB\FormGroup(_('Parameters'),
new \Ease\Html\InputTextTag($fieldName.'-params',
$this->objectEdited->getDataValue($fieldName.'-params')
, ['style' => 'width: 100%'])));

Expand Down
2 changes: 1 addition & 1 deletion src/classes/UI/GroupMembersEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function __construct($fieldName, $fieldCaption, $dataSource, $members)
$memberName[$nameColumn], 'inverse', 'xs',
[
new \Ease\Html\ATag($reftable.'.php?'.$reftable.'_id='.$memberID,
\Ease\TWB\Part::GlyphIcon('wrench').' '._('Editace')),
\Ease\TWB\Part::GlyphIcon('wrench').' '._('Editor')),
new \Ease\Html\ATag(null,
\Ease\TWB\Part::GlyphIcon('plus-sign').' '.$addText,
[
Expand Down
7 changes: 3 additions & 4 deletions src/classes/UI/HostSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
/**
* Choose hosts checked by an service
*
* @package IcingaEditor
* @author Vitex <vitex@hippy.cz>
* @copyright 2012-2016 Vitex@hippy.cz (G)
*/
Expand Down Expand Up @@ -88,9 +87,9 @@ public function __construct($service)
[
new \Ease\Html\ATag(
'?delhost='.$hostInfo[$host->nameColumn].'&amp;host_id='.$hostID.'&amp;'.$service->getmyKeyColumn().'='.$service->getMyKey().'&amp;'.$service->nameColumn.'='.$service->getName(),
\Ease\TWB\Part::GlyphIcon('remove').' '._('Přestat sledovat'))
, new \Ease\Html\ATag('host.php?host_id='.$hostID.'&amp;service_id='.$service->getId(),
\Ease\TWB\Part::GlyphIcon('wrench').' '._('Editace'))
\Ease\TWB\Part::GlyphIcon('remove').' '._('Stop watching'))
, new \Ease\Html\ATag('host.php?host_id='.$hostID.'&amp;service_id='.$service->getId(),
\Ease\TWB\Part::GlyphIcon('wrench').' '._('Editor'))
]
)
);
Expand Down
2 changes: 1 addition & 1 deletion src/classes/UI/ParentSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function &parentButton($parentInfo, $op, $host)
new \Ease\Html\ATag('?'.$operation.'=parents&amp;name='.$parentInfo[$host->nameColumn].'&amp;member='.$parentID.'&amp;'.$host->myKeyColumn.'='.$host->getId(),
\Ease\TWB\Part::GlyphIcon($op).' '.$opCaption),
new \Ease\Html\ATag('host.php?host_id='.$parentID,
\Ease\TWB\Part::GlyphIcon('wrench').' '._('Editace'))
\Ease\TWB\Part::GlyphIcon('wrench').' '._('Editor'))
]
);

Expand Down
4 changes: 2 additions & 2 deletions src/classes/UI/SensorConfirmForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ class SensorConfirmForm extends \Ease\TWB\Form

/**
* Formulář pro potvrzení nasazení senzoru
* @param IEHost $host
* @param \Icinga\Editor\Engine\Host $host
*/
public function __construct($host)
{
parent::__construct('sensor');
$this->addItem(new \Ease\Html\InputHiddenTag('operation', 'confirm'));
$this->addItem(new \Ease\Html\InputHiddenTag($host->getmyKeyColumn(),
$host->getId()));
$this->addItem(new \Ease\TWB\SubmitButton(_('Senzor je nasazen')));
$this->addItem(new \Ease\TWB\SubmitButton(_('Sensor deployed')));
$status = $host->getSensorStatus();
$this->addItem(new Switcher('confirm', ($status == 2)));
}
Expand Down
2 changes: 1 addition & 1 deletion src/classes/UI/ServiceConfigurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function afterAdd()
$this->tweaker->service->setDataValue('user_id',
\Ease\Shared::user()->getID());
$this->tweaker->service->setDataValue($this->tweaker->service->nameColumn,
_('Klon').' '.$this->tweaker->service->getName());
_('Clone').' '.$this->tweaker->service->getName());
if ($this->tweaker->service->saveToSQL()) {
$this->tweaker->service->addStatusMessage(_('Service was saved as clone'),
'success');
Expand Down
6 changes: 2 additions & 4 deletions src/classes/UI/ServiceWizardForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@
/**
* Formulář průvodce založením nové služby
*
* @package IcingaEditor
* @subpackage WebUI
* @author Vitex <vitex@hippy.cz>
* @copyright 2015 Vitex@hippy.cz (G)
*/
class ServiceWizardForm extends \Ease\TWB\Form
{
/**
* Objekt služby
* @var IEService
* @var \Icinga\Editor\Engine\Service
*/
public $service = null;

Expand Down Expand Up @@ -45,7 +43,7 @@ function finalize()
$this->addInput(new TWBSwitch('register',
$this->service->getDataValue('user_id'), 1,
['onText' => _('Service'), 'offText' => _('Preset')]),
_('Typ konfigurace'));
_('Configuration type'));

$this->addInput(new \Ease\Html\InputTextTag('name',
$this->service->getDataValue('name')), _('Name'), _('Name'),
Expand Down
4 changes: 2 additions & 2 deletions src/classes/UI/UsedServiceSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function __construct($host)

if (intval($serviceInfo['parent_id'])) {
$unchMenu[] = new \Ease\Html\ATag('servicetweak.php?service_id='.$serviceID,
\Ease\TWB\Part::GlyphIcon('wrench').' '._('Editace'));
\Ease\TWB\Part::GlyphIcon('wrench').' '._('Editor'));
}
$unchMenu [] = new \Ease\Html\ATag('?addservice='.$serviceInfo[$service->nameColumn].'&amp;service_id='.$serviceID.'&amp;'.$host->getmyKeyColumn().'='.$host->getMyKey().'&amp;'.$host->nameColumn.'='.$host->getName(),
\Ease\TWB\Part::GlyphIcon('plus').' '._('Začít sledovat'));
Expand Down Expand Up @@ -132,7 +132,7 @@ public function __construct($host)
'?delservice='.$serviceInfo[$service->nameColumn].'&amp;service_id='.$serviceID.'&amp;'.$host->getmyKeyColumn().'='.$host->getMyKey().'&amp;'.$host->nameColumn.'='.$host->getName(),
\Ease\TWB\Part::GlyphIcon('remove').' '._('Stop watching'))
, new \Ease\Html\ATag('servicetweak.php?service_id='.$serviceID.'&amp;host_id='.$host->getId(),
\Ease\TWB\Part::GlyphIcon('wrench').' '._('Editace'))
\Ease\TWB\Part::GlyphIcon('wrench').' '._('Editor'))
], ['title' => $serviceInfo['service_description']]
)
);
Expand Down
7 changes: 2 additions & 5 deletions src/classes/UI/UserSelect.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
namespace Icinga\Editor\UI;

/**
* Volba služeb patřičných k hostu
* Select one of Users
*
* @todo dodělat
* @package IcingaEditor
* @subpackage WebUI
* @author Vitex <vitex@hippy.cz>
* @copyright 2012 Vitex@hippy.cz (G)
*/
Expand All @@ -17,7 +14,7 @@ class UserSelect extends \Ease\Html\Select
public function loadItems()
{
$user = new \Icinga\Editor\User();
$ui = ['null' => _('Systémový uživatel')];
$ui = ['null' => _('System user')];
foreach ($user->getAllFromSQL(\Ease\Shared::user()->getMyTable(),
['id', 'login'], null, 'login', 'id') as $userInfo) {
$ui[$userInfo['id']] = $userInfo['login'];
Expand Down
2 changes: 1 addition & 1 deletion src/classes/UI/YesNoSwitch.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Ano/Ne switch
* Yes/No switch
*
* @package Dotazník
* @subpackage WebUI
Expand Down
12 changes: 5 additions & 7 deletions src/classes/engine/Configurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
/**
* Správce konfigurace
*
* @package IcingaEditor
* @subpackage WebUI
* @author Vitex <vitex@hippy.cz>
* @copyright 2012 Vitex@hippy.cz (G)
*/
Expand Down Expand Up @@ -1232,10 +1230,10 @@ public function importArray($cfgArray, $commonValues = null)

if (is_null($import)) {
if ($this->isTemplate()) {
$this->addStatusMessage($this->keyword.' <strong>'.$buffer['name'].'</strong>'._(' was not imported'),
$this->addStatusMessage($this->keyword.' <strong>'.$buffer['name'].'</strong> '._('was not imported'),
'error');
} else {
$this->addStatusMessage($this->keyword.' <strong>'.$buffer[$this->nameColumn].'</strong>'._(' was not imported'),
$this->addStatusMessage($this->keyword.' <strong>'.$buffer[$this->nameColumn].'</strong> '._('was not imported'),
'error');
}
} else {
Expand All @@ -1254,7 +1252,7 @@ public function importArray($cfgArray, $commonValues = null)
$this->getmyKeyColumn().'='.
$this->getMyKey()]);
}
$this->addStatusMessage($this->keyword.' <strong>'.$buffer[$this->nameColumn].'</strong>'._(' was imported'),
$this->addStatusMessage($this->keyword.' <strong>'.$buffer[$this->nameColumn].'</strong> '._('was imported'),
'success');
}
$success++;
Expand Down Expand Up @@ -1658,7 +1656,7 @@ public function htmlizeData($data)
if (is_array($templateValue)) {
$templateValue = implode(',', $templateValue);
}
$data[$rowId][$templateKey] = '<span class="inherited" title="'._('Předloha').': '.$usedCache[$use]['name'].'">'.$templateValue.'</span>';
$data[$rowId][$templateKey] = '<span class="inherited" title="'._('Template').': '.$usedCache[$use]['name'].'">'.$templateValue.'</span>';
}
}
}
Expand Down Expand Up @@ -1838,7 +1836,7 @@ public function &transferForm()
$this->getId()));
$exportForm->addInput(new \Ease\Html\InputTextTag('destination',
\Ease\Shared::user()->getSettingValue('exporturl')),
_('Cíl exportu'));
_('Export Target'));

$exportForm->addItem(new \Ease\Html\H4Tag(_('Recursive import')));

Expand Down
Loading

0 comments on commit 762eaa8

Please sign in to comment.