WordPress Translation to french, at -> à not working

No matter what languages your site are in, when using WPML you should never install a localised WordPress version, instead you should just install the default one (i.e. US English). Also make sure that you didn’t change the LANG definition in your wp-config.php file, so that should read: define (‘WPLANG’, ”); Then you need to … Read more

WPML icl_register_string() throws fatal error but works [closed]

You should always use the wpml functions as following: (the HowTo linked by you actually suggests this 🙂 if( function_exists(‘icl_register_string’) ) { icl_register_string( ‘Match Previous Order’ , ‘match_order’, ‘Do you want these items to match a previous order from Direct Linen? If yes, use “Additional Notes” to explain.’ ); } This will ensure that you … Read more

How to display WP Query filters?

There’s a global variable called $wp_filter (you can see examples of it all through the source of /wp-includes/plugin.php. This probably isn’t the WordPress Way to do it, but you could try something like this: global $wp_filter; var_dump( $wp_filter ); …but note the caveat on http://codex.wordpress.org/Global_Variables — “Accessing other globals besides the ones listed below is … Read more

Borrowing of Previously Translated Strings by Child Plugin

Technically, this is possible. Just make sure to use your strings after the parent plugin has loaded its language file. In terms of maintainability, this is not optimal. Your create a very strond dependency here: each time the parent plugin changes a string (adding a dot, removing a white space), you have to change your … Read more

WPML language tags (Qtranslate feature) [closed]

Use WordPress i18n functions. Normally good plugins are translation-ready, and you should create your translation files for that plugins (if not already present). Explain how to is too much for this answer, start looking at Codex page linked above, search Google and also have a look here. If a plugin is not translation-ready use another … Read more

Translate arguments of a user added custom code [closed]

Because you are hardcoding the link, you will need to use icl_link_to_element() function and wrap any text you want to translate inside a gettext function: <?php icl_link_to_element( ‘ID_of_your_news_page’, ‘page’, ‘<h4>’ . __(‘News’) . ‘</h4>’ ); ?> This way you will get the correct version of the link based on the current language with the text … Read more

Changing the header image using WPML

You can use site_url() or get_site_url(). Depending on your install and setup, you could as well use network_site_url() – which is what I would prefer as it falls back to site_url() internally if it is no multisite setup. The site_url( $path, $scheme ); function also takes two arguments: The $path can be used to append … Read more

After disabling WPML multi currency, the currency is still handled by the WPML

First at all, I just use WPML one time and I really don’t liked it. It comes to me, that you maybe leave some po/mo files in the wp-content/languages/woocommerce-multilingual/ or wpml one. I found on a thread saying Visit WPML > Theme and plugin localization > select ‘Translate using .mo files’ > select Automatically load … Read more