mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-11-02 20:24:14 +01:00
This reverts commit 87a59675011a4cf284d8e44c4fb66042ad84c39f. At least 'modules/doc/run.php' issues a warning about "The use statement with non-compound name 'Zend_Controller_Router_Route' has no effect"
28 lines
514 B
PHP
28 lines
514 B
PHP
<?php
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
use \Icinga\Util\Translator;
|
|
|
|
if (extension_loaded('gettext')) {
|
|
function t($messageId)
|
|
{
|
|
return Translator::translate($messageId, Translator::DEFAULT_DOMAIN);
|
|
}
|
|
|
|
function mt($domain, $messageId)
|
|
{
|
|
return Translator::translate($messageId, $domain);
|
|
}
|
|
} else {
|
|
function t($messageId)
|
|
{
|
|
return $messageId;
|
|
}
|
|
|
|
function mt($domain, $messageId)
|
|
{
|
|
return $messageId;
|
|
}
|
|
}
|