all-in-one-event-calendar/lib/p28n/i18n.php
2017-11-09 17:36:04 +01:00

36 lines
No EOL
848 B
PHP

<?php
/**
* Internationalization layer.
*
* @author Time.ly Network, Inc.
* @since 2.0
* @package Ai1EC
* @subpackage Ai1EC.P28n
*/
class Ai1ec_I18n {
/**
* Translates string. Wrapper for WordPress `__()` function.
*
* @param string $term Message to translate.
*
* @return string Translated string representation.
*/
static public function __( $term ) {
return __( $term, AI1EC_PLUGIN_NAME );
}
/**
* Translates string in context. Wrapper for WordPress `_x()` function.
*
* @param string $term Message to translate.
* @param string $ctxt Translation context for message.
*
* @return string Translated string representation.
*/
static public function _x( $term, $ctxt ) {
return _x( $term, $ctxt, AI1EC_PLUGIN_NAME );
}
}