Tag Info

New answers tagged

0

OMFG that is the most stupid code I saw in core for some time. Don't follow the comments there, if you want to use a different flavor of open sans just write a plugin that deregister the style and add the one you want to be used instead function replace_open_sans() { wp_deregister_style('open-sans'); wp_register_style('open-sans', ...


0

Found answer here: http://stackoverflow.com/a/19718745/3691686 wampmanager -> PHP -> PHP Extensions -> php_zip


2

You are making wrong assumption here. define('WPLANG', ''); doesn't mean "original locale of the string" or anything like that, it is taken literally as "no locale specified". And when it's nothing WP proceeds to assume default locale, which is en_US. This is why as soon as you add English translations of string they are displayed for this case. So to test ...


0

The load_theme_textdomain() function uses load_textdomain() internally. And that function offers a nice filter for debugging purposes (aside from altering the language: $plugin_override = apply_filters( 'override_load_textdomain', false, $domain, $mofile ); Start debugging with a quick custom plugin and check if your file exists: <?php /** Plugin ...


0

I itself found the answer.. below code is working add_filter( 'gettext', 'wps_translate_words_array' ); add_filter( 'ngettext', 'wps_translate_words_array' ); function wps_translate_words_array( $translated ) { $words = array( // 'word to translate' = > 'translation' 'Posts' => 'Article', ...


2

You are exploding the text with explode( ' ', $ctxttext ). Therefore you are translating word by word, not strings. That is why it's working with single word string, and not with multiple words. When you call First Name you are translating First and Name. Cheers


0

Another possible fix is to add: $is_ajax = true; at line 11 in an override version of review-order.php, which should be copied from: wp-contents/plugins/woocommerce/template/checkout/ to: wp-contents/themes/{YOUR_THEME}/woocommerce/checkout/



Top 50 recent answers are included