Elgg  Version master
TranslatorInterface.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\I18n;
4 
12 
33  public function translate($key, array $args = [], Locale $locale = null);
34 }
$args
Some servers don&#39;t allow PHP to check the rewrite, so try via AJAX.
Can "translate" language keys into various human-readable, localized strings.
Language class to ensure only valid languages are used.
Definition: Locale.php:13
if($container instanceof ElggGroup &&$container->guid!=elgg_get_page_owner_guid()) $key
Definition: summary.php:44
translate($key, array $args=[], Locale $locale=null)
Given a message key, returns a best-effort translated string.