Files
kulakpos_web/vendor/thecodingmachine/safe/generated/8.4/gettext.php

27 lines
556 B
PHP
Raw Normal View History

2026-03-30 14:54:57 +07:00
<?php
namespace Safe;
use Safe\Exceptions\GettextException;
/**
2026-04-18 20:32:18 +07:00
* @param string $domain
* @param null|string $directory
* @return string
2026-03-30 14:54:57 +07:00
* @throws GettextException
*
*/
function bindtextdomain(string $domain, ?string $directory = null): string
{
error_clear_last();
if ($directory !== null) {
$safeResult = \bindtextdomain($domain, $directory);
} else {
$safeResult = \bindtextdomain($domain);
}
if ($safeResult === false) {
throw GettextException::createFromPhpError();
}
return $safeResult;
}