芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/avenida/vendor/gettext/gettext/src/GettextTranslator.php
setLanguage($language); } } /** * Define the current locale. * * @param string $language * @param int|null $category * * @return self */ public function setLanguage($language, $category = null) { if ($category === null) { $category = defined('LC_MESSAGES') ? LC_MESSAGES : LC_ALL; } setlocale($category, $language); putenv('LANGUAGE='.$language); return $this; } /** * Loads a gettext domain. * * @param string $domain * @param string $path * @param bool $default * * @return self */ public function loadDomain($domain, $path = null, $default = true) { bindtextdomain($domain, $path); bind_textdomain_codeset($domain, 'UTF-8'); if ($default) { textdomain($domain); } return $this; } /** * @see TranslatorInterface * * {@inheritdoc} */ public function gettext($original) { return gettext($original); } /** * @see TranslatorInterface * * {@inheritdoc} */ public function ngettext($original, $plural, $value) { return ngettext($original, $plural, $value); } /** * @see TranslatorInterface * * {@inheritdoc} */ public function dngettext($domain, $original, $plural, $value) { return dngettext($domain, $original, $plural, $value); } /** * @see TranslatorInterface * * {@inheritdoc} */ public function npgettext($context, $original, $plural, $value) { $message = $context."\x04".$original; $translation = ngettext($message, $plural, $value); return ($translation === $message) ? $original : $translation; } /** * @see TranslatorInterface * * {@inheritdoc} */ public function pgettext($context, $original) { $message = $context."\x04".$original; $translation = gettext($message); return ($translation === $message) ? $original : $translation; } /** * @see TranslatorInterface * * {@inheritdoc} */ public function dgettext($domain, $original) { return dgettext($domain, $original); } /** * @see TranslatorInterface * * {@inheritdoc} */ public function dpgettext($domain, $context, $original) { $message = $context."\x04".$original; $translation = dgettext($domain, $message); return ($translation === $message) ? $original : $translation; } /** * @see TranslatorInterface * * {@inheritdoc} */ public function dnpgettext($domain, $context, $original, $plural, $value) { $message = $context."\x04".$original; $translation = dngettext($domain, $message, $plural, $value); return ($translation === $message) ? $original : $translation; } }