mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-21 12:54:26 +02:00
parent
c815a2b486
commit
bbadb0b75c
@ -3,6 +3,23 @@
|
|||||||
|
|
||||||
use Icinga\Util\Translator;
|
use Icinga\Util\Translator;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No-op translate
|
||||||
|
*
|
||||||
|
* Supposed to be used for marking a string as available for translation without actually translating it immediately.
|
||||||
|
* The returned string is the one given in the input. This does only work with the standard gettext macros t() and mt().
|
||||||
|
*
|
||||||
|
* @param string $messageId
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
function N_($messageId)
|
||||||
|
{
|
||||||
|
return $messageId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (extension_loaded('gettext')) {
|
if (extension_loaded('gettext')) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -290,6 +290,7 @@ class GettextTranslationHelper
|
|||||||
'--keyword=t:1,2c',
|
'--keyword=t:1,2c',
|
||||||
'--keyword=tp:1,2',
|
'--keyword=tp:1,2',
|
||||||
'--keyword=tp:1,2,4c',
|
'--keyword=tp:1,2,4c',
|
||||||
|
'--keyword=N_',
|
||||||
'--sort-output',
|
'--sort-output',
|
||||||
'--force-po',
|
'--force-po',
|
||||||
'--omit-header',
|
'--omit-header',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user