mirror of
https://github.com/10h30/WooCommerce-Payment-Methods.git
synced 2026-06-05 15:07:59 +09:00
Update l10n function
This commit is contained in:
@@ -165,13 +165,8 @@ class vendocrat_WC_Payment_Methods {
|
|||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 2014-09-08
|
* @since 2014-09-08
|
||||||
* @version 2014-09-08
|
* @version 2014-10-23
|
||||||
**************************************************/
|
**************************************************/
|
||||||
/*
|
|
||||||
static function load_plugin_textdomain() {
|
|
||||||
load_plugin_textdomain( 'payment-methods', false, basename( $this->plugin_dir ) .'/languages/' );
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
public function load_plugin_textdomain() {
|
public function load_plugin_textdomain() {
|
||||||
$locale = apply_filters( 'plugin_locale', get_locale(), 'woocommerce-payment-methods' );
|
$locale = apply_filters( 'plugin_locale', get_locale(), 'woocommerce-payment-methods' );
|
||||||
$dir = trailingslashit( WP_LANG_DIR );
|
$dir = trailingslashit( WP_LANG_DIR );
|
||||||
|
|||||||
Reference in New Issue
Block a user