33namespace Icinga \Editor \UI ;
44
55/**
6- * Volba contactů sledovaných danou službou
6+ * Select contacts for service
77 *
88 * @package IcingaEditor
9- * @subpackage WebUI
109 * @author Vitex <vitex@hippy.cz>
11- * @copyright 2012 Vitex@hippy.cz (G)
10+ * @copyright 2012-2016 Vitex@hippy.cz (G)
1211 */
1312class ContactSelector extends \Ease \Container
1413{
@@ -24,11 +23,11 @@ public function __construct($holder)
2423 $ contactsAssigned = [];
2524 parent ::__construct ();
2625 $ fieldName = $ holder ->getmyKeyColumn ();
27- $ initialContent = new \Ease \TWB \Panel (_ ('Cíle notifikací ' ));
26+ $ initialContent = new \Ease \TWB \Panel (_ ('Contacts ' ));
2827 $ initialContent ->setTagCss (['width ' => '100% ' ]);
2928
3029 if (is_null ($ holder ->getMyKey ())) {
31- $ initialContent ->addItem (_ ('Nejprve je potřeba uložit záznam ' ));
30+ $ initialContent ->addItem (_ ('Please saver record first ' ));
3231 } else {
3332 $ serviceName = $ holder ->getName ();
3433 $ contact = new \Icinga \Editor \Engine \Contact ();
@@ -63,9 +62,9 @@ public function __construct($holder)
6362 $ contactInfo [$ contact ->nameColumn ], 'inverse ' , 'xs ' ,
6463 [
6564 new \Ease \Html \ATag ('contacttweak.php?contact_id= ' .$ contactInfo ['parent_id ' ].'&service_id= ' .$ holder ->getId (),
66- \Ease \TWB \Part::GlyphIcon ('wrench ' ).' ' ._ ('Editace ' )),
65+ \Ease \TWB \Part::GlyphIcon ('wrench ' ).' ' ._ ('Edit ' )),
6766 new \Ease \Html \ATag ('?addcontact= ' .$ contactInfo [$ contact ->nameColumn ].'&contact_id= ' .$ contactID .'& ' .$ holder ->getmyKeyColumn ().'= ' .$ holder ->getMyKey ().'& ' .$ holder ->nameColumn .'= ' .$ holder ->getName (),
68- \Ease \TWB \Part::GlyphIcon ('plus ' ).' ' ._ ('Začít obesílat ' ))
67+ \Ease \TWB \Part::GlyphIcon ('plus ' ).' ' ._ ('Start notifing ' ))
6968 ]));
7069 }
7170 }
@@ -80,9 +79,9 @@ public function __construct($holder)
8079 [
8180 new \Ease \Html \ATag (
8281 '?delcontact= ' .$ contactInfo [$ contact ->nameColumn ].'&contact_id= ' .$ contactID .'& ' .$ holder ->getmyKeyColumn ().'= ' .$ holder ->getMyKey ().'& ' .$ holder ->nameColumn .'= ' .$ holder ->getName (),
83- \Ease \TWB \Part::GlyphIcon ('remove ' ).' ' ._ ('Přestat obesílat ' ))
82+ \Ease \TWB \Part::GlyphIcon ('remove ' ).' ' ._ ('Stop notifing ' ))
8483 , new \Ease \Html \ATag ('contacttweak.php?contact_id= ' .$ contactInfo ['parent_id ' ].'&service_id= ' .$ holder ->getId (),
85- \Ease \TWB \Part::GlyphIcon ('wrench ' ).' ' ._ ('Editace ' ))
84+ \Ease \TWB \Part::GlyphIcon ('wrench ' ).' ' ._ ('Edit ' ))
8685 ]
8786 )
8887 );
0 commit comments