Dashboard
PHP:
8.2.30
OS:
Linux
User:
dh_nv8b2m
/
/
usr
/
local
/
wp
/
vendor
/
gettext
/
gettext
/
src
📤 Upload
📝 New File
📁 New Folder
Close
Editing: BaseTranslator.php
<?php namespace Gettext; abstract class BaseTranslator implements TranslatorInterface { /** @var TranslatorInterface */ public static $current; /** * @see TranslatorInterface */ public function noop($original) { return $original; } /** * @see TranslatorInterface */ public function register() { $previous = static::$current; static::$current = $this; static::includeFunctions(); return $previous; } /** * Include the gettext functions */ public static function includeFunctions() { include_once __DIR__.'/translator_functions.php'; } }
Save
Cancel