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

23 lines
441 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 string $directory
* @return string
2026-03-30 14:54:57 +07:00
* @throws GettextException
*
*/
function bindtextdomain(string $domain, string $directory): string
{
error_clear_last();
$safeResult = \bindtextdomain($domain, $directory);
if ($safeResult === false) {
throw GettextException::createFromPhpError();
}
return $safeResult;
}