Add upstream plugins

Signed-off-by: Adrian Nöthlich <git@promasu.tech>
This commit is contained in:
2019-10-25 22:42:20 +02:00
parent 5d3c2ec184
commit 290736650a
1186 changed files with 302577 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
<?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 );
}
}