Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter piersert

    (@piersert)

    You should know if your plugin is WPML compatible, otherwise you should add a temporary snapcode in your core for the other languages

    Thread Starter piersert

    (@piersert)

    Hi,

    If it is helpful, we created a staging copy of our webshop where you can test everything

    Please let me know if you could find anything with WPML….Bizzare because German is translated

    Kind regards

    Plugin Author FAKTOR VIER

    (@faktorvier)

    Hi @piersert

    Sorry for the late answer. We just created our own test environment with WPML, WooCommerce Multilingual and the Storefront theme. We tried the following code:

    add_filter('F4/WCSF/get_salutation_options', function($options, $settings) {
    	if(ICL_LANGUAGE_CODE === 'fr') {
    		$options['mr'] = 'MR FR';
    		$options['mrs'] = 'MRS FR';
    	}
    
    	return $options;
    }, 10, 2);

    On our installation it works perfectly. The reason why only German and English are translated, is that our plugin is already completely translated in this two languages. That means, that none of your if conditions from your code above matches so the hook doesnt do anything, so the default translations will be show (english or german).

    Since our condition are the same as yours, there are only two possibilities:

    1. the hook does not work in the email (is the hook defined inside a specific file? or specific condition that does not work in emails? can you tell me more about the definition of this hook?)

    2. somehow the ICL_LANGUAGE_CODE constant does not contain the correct language

    I dont think testing on your staging environment will help us, because I think is more like a code error or a wrong WPML configuration.

    Thread Starter piersert

    (@piersert)

    Hi,

    Following your email of 5 months ago, is now the radio option available?

    Kind regards
    Pier Serta

    Plugin Author FAKTOR VIER

    (@faktorvier)

    Hi @piersert

    No, the radio option is (still) not available, but we will check soon if we can easily add this option. We’ll let you know if we can implement this feature soon.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Multilingual’ is closed to new replies.