2016-08-19 03:02:49 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
function tne()
|
|
|
|
{
|
2016-08-25 03:17:58 +02:00
|
|
|
return call_user_func_array('\Miniflux\Translator\translate_no_escaping', func_get_args());
|
2016-08-19 03:02:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
function t()
|
|
|
|
{
|
2016-08-25 03:17:58 +02:00
|
|
|
return call_user_func_array('\Miniflux\Translator\translate', func_get_args());
|
2016-08-19 03:02:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
function c()
|
|
|
|
{
|
2016-08-25 03:17:58 +02:00
|
|
|
return call_user_func_array('\Miniflux\Translator\currency', func_get_args());
|
2016-08-19 03:02:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
function n()
|
|
|
|
{
|
2016-08-25 03:17:58 +02:00
|
|
|
return call_user_func_array('\Miniflux\Translator\number', func_get_args());
|
2016-08-19 03:02:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
function dt()
|
|
|
|
{
|
2016-08-25 03:17:58 +02:00
|
|
|
return call_user_func_array('\Miniflux\Translator\datetime', func_get_args());
|
2016-08-19 03:02:49 +02:00
|
|
|
}
|
2016-12-26 15:44:53 +01:00
|
|
|
|
|
|
|
function get_cli_option($option, array $options)
|
|
|
|
{
|
|
|
|
$value = null;
|
|
|
|
|
|
|
|
if (! empty($options[$option]) && ctype_digit($options[$option])) {
|
|
|
|
$value = (int) $options[$option];
|
|
|
|
}
|
|
|
|
|
|
|
|
return $value;
|
|
|
|
}
|