Elgg  Version master
NullTranslator.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\I18n;
4 
14 final class NullTranslator extends Translator {
15 
19  public function translate($message_key, $args = [], $language = ''): string {
20  return $message_key;
21  }
22 }
$args
Some servers don&#39;t allow PHP to check the rewrite, so try via AJAX.
A translator that does nothing except return the key that was requested.
$language
Definition: useradd.php:17
translate($message_key, $args=[], $language= '')