www.gusucode.com > Elgg PHP开源SNS系统 V1.12.5源码程序 > elgg-1.12.5/engine/classes/Elgg/I18n/NullTranslator.php

    <?php
namespace Elgg\I18n;


/**
 * WARNING: API IN FLUX. DO NOT USE DIRECTLY.
 *
 * A translator that does nothing except return the key that was requested.
 * 
 * This translator is useful during development if you want to be able to
 * easily tell what the available keys are for changing the wording of UI elements.
 * 
 * @since 1.10.0
 *
 * @access private
 */
final class NullTranslator extends Translator {
	/** @inheritDoc */
	public function translate($key, $args = array(), $lang = '') {
		return $key;
	}
}