Created
February 18, 2013 17:30
-
-
Save miya0001/4979054 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* 以下のソースを自作プラグインまたはテーマのfunctions.phpに貼り付けすれば日本語ファイルが適用されます。 | |
*/ | |
add_filter("load_textdomain_mofile", "my_load_textdomain_mofile", 10, 2); | |
function my_load_textdomain_mofile($mo, $domain){ | |
if ($domain === 'image_widget') { | |
return str_replace('image_widget-ja.mo', 'image-widget-ja.mo', $mo); | |
} | |
return $mo; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment