Skip to content
Permalink
Browse files

All files switched to english

  • Loading branch information...
Vitexus committed Oct 22, 2017
1 parent 38de4c6 commit 762eaa89b9348d01bbe61f505a735c342dc016d1
Showing with 3,347 additions and 2,387 deletions.
  1. BIN locale/cs_CZ/LC_MESSAGES/icinga-editor.mo
  2. +1,274 −821 locale/cs_CZ/LC_MESSAGES/icinga-editor.po
  3. BIN locale/en_US/LC_MESSAGES/icinga-editor.mo
  4. +1,015 −702 locale/en_US/LC_MESSAGES/icinga-editor.po
  5. BIN locale/nb_NO/LC_MESSAGES/icinga-editor.mo
  6. +785 −587 locale/nb_NO/LC_MESSAGES/icinga-editor.po
  7. +1 −1 src/apply.php
  8. +2 −4 src/classes/DbFixer.php
  9. +1 −1 src/classes/NSCPConfigBatGenerator.php
  10. +2 −2 src/classes/SensorTool.php
  11. +3 −3 src/classes/UI/CfgEditor.php
  12. +1 −1 src/classes/UI/GroupMembersEditor.php
  13. +3 −4 src/classes/UI/HostSelector.php
  14. +1 −1 src/classes/UI/ParentSelector.php
  15. +2 −2 src/classes/UI/SensorConfirmForm.php
  16. +1 −1 src/classes/UI/ServiceConfigurator.php
  17. +2 −4 src/classes/UI/ServiceWizardForm.php
  18. +2 −2 src/classes/UI/UsedServiceSelector.php
  19. +2 −5 src/classes/UI/UserSelect.php
  20. +1 −1 src/classes/UI/YesNoSwitch.php
  21. +5 −7 src/classes/engine/Configurator.php
  22. +47 −33 src/classes/engine/Contact.php
  23. +1 −2 src/classes/engine/Host.php
  24. +16 −11 src/classes/engine/Hostgroup.php
  25. +13 −14 src/classes/engine/Importer.php
  26. +2 −2 src/classes/engine/Service.php
  27. +1 −1 src/command.php
  28. +2 −2 src/contact.php
  29. +2 −2 src/host.php
  30. +6 −2 src/hostgroup.php
  31. +2 −5 src/hostgroups.php
  32. +7 −9 src/importcommand.php
  33. +2 −2 src/importer.php
  34. +7 −9 src/modules/CheckDriveSize.inc.php
  35. +4 −6 src/modules/CheckMem.inc.php
  36. +2 −2 src/modules/DriveLetter.inc.php
  37. +5 −7 src/modules/check_smart.inc.php
  38. +1 −3 src/modules/ping.inc.php
  39. +1 −1 src/modules/web_content.inc.php
  40. +15 −17 src/nagstamon.php
  41. +5 −7 src/newcontact.php
  42. +1 −1 src/overview.php
  43. +3 −5 src/preferences.php
  44. +1 −1 src/regenall.php
  45. +2 −2 src/script.php
  46. +4 −5 src/search.php
  47. +2 −2 src/service.php
  48. +6 −8 src/servicegroup.php
  49. +3 −5 src/servicegroups.php
  50. +4 −6 src/services.php
  51. +2 −1 src/servicetweak.php
  52. +3 −3 src/stemplate.php
  53. +3 −5 src/stemplates.php
  54. +1 −2 src/timeperiod.php
  55. +1 −1 src/userinfo.php
  56. +3 −4 src/watchroute.php
  57. +56 −40 src/wizard-active-host.php
  58. +8 −10 src/wizard-active-service.php
Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

@@ -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();
@@ -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)
*/
@@ -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']);
}
}
@@ -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) {
@@ -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'));
@@ -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%'])));
@@ -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,
[
@@ -5,7 +5,6 @@
/**
* Choose hosts checked by an service
*
* @package IcingaEditor
* @author Vitex <vitex@hippy.cz>
* @copyright 2012-2016 Vitex@hippy.cz (G)
*/
@@ -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'))
]
)
);
@@ -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'))
]
);
@@ -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)));
}
@@ -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');
@@ -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;
@@ -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'),
@@ -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'));
@@ -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']]
)
);
@@ -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)
*/
@@ -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'];
@@ -1,6 +1,6 @@
<?php
/**
* Ano/Ne switch
* Yes/No switch
*
* @package Dotazník
* @subpackage WebUI
@@ -2,8 +2,6 @@
/**
* Správce konfigurace
*
* @package IcingaEditor
* @subpackage WebUI
* @author Vitex <vitex@hippy.cz>
* @copyright 2012 Vitex@hippy.cz (G)
*/
@@ -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 {
@@ -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++;
@@ -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>';
}
}
}
@@ -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')));

0 comments on commit 762eaa8

Please sign in to comment.
You can’t perform that action at this time.