$abspath
$abspath :
Optional. The absolute path is used to remove (unwanted?) directory names that are previous to the current base directory; e.g. `/var/www/site/cms/path/file.php` becomes `cms/path/file.php`.
NimrodLogger class.
Minimal working code example:
require 'class.nimrod.logger.php'; // Inside your translation function just use: NimrodLogger::logGettext( $translated_text, $text, $domain );
logGettextWithContext(string $translated_text, string $text, string $context, string $domain)
Log gettext message with context.
string | $translated_text | The translated message. |
string | $text | The gettext msgid. |
string | $context | The gettext msgctxt. |
string | $domain | The gettext domain. |