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 define theme translation file?

It all depends a bit if your current theme already supports localization. Does your theme’s function file contain something like this? load_theme_textdomain( ‘twentytwelve’, get_template_directory() . ‘/languages’ ); If not, add it in there. And change twentytwelve to your theme-directory-name. After that create a directory called languages in the root of your theme a drop your … Read more

Theme Translation?

Translation files must be named {locale}.po (e.g. en_US.po in order to be recognized. Rename your language translation file accordingly. See more in the Codex: i18n for developers.

mo / po translation files does not seem to work

Check the wp-config.php file and see if your language is defined : define(‘WPLANG’, ‘your_language’); You could add this if you’re still stuck: add_action(‘after_setup_theme’,’wpse_110727_translate_theme’); function wpse_110727_translate_theme() { load_theme_textdomain( ‘textdomain’, get_template_directory() . ‘/languages’ ); $locale = get_locale(); $locale_file = get_template_directory() . “/languages/$locale.php”; if ( is_readable( $locale_file ) ) require_once( $locale_file ); } Just put the translation files … Read more

How can I change the prev / next buttons text to Dutch?

If you’re simply using one language on your site: Find the utility.php file in your themes folder with location lib/functions/utility.php Next find the lines 227 and 231 and change the __( ‘Previous Post’, ‘contango’ ) and __( ‘Next Post’, ‘contango’ ) to your desired values. For example: previous_post_link( ‘%link’, __( ‘vorige post’, ‘contango’ ) . … Read more