• Hi, I tried to use your plugin after localized but it doesn’t work because you’ve defined your text-domain as ‘woocommerce-product-faqs’ in woocommerce-faqs.php file

     * Text Domain:       woocommerce-product-faqs
     * Domain Path:       /languages

    but you are using ‘woocommerce-faqs’ text-domain in all files eg. __( 'Please enter a question!', 'woocommerce-faqs' )
    while plugin’s directory is “/woocommerce-product-faqs”.
    After I’ve changed all ‘woocommerce-faqs’ with ‘woocommerce-product-faqs’ localization is working as expected.
    So you should change them all. Regards..

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Josh Levinson

    (@joshlevinson)

    Thanks for the tip! I’ve had other reports of translation not working; I’ll get that updated asap!

    Thread Starter AlpDmr

    (@alpdmr)

    I am glad if I can help, but there is another problem about FAQ form ??
    In faq-form.php (I’ve not controlled other files), you are using esc_attr_x( 'Submit', 'woocommerce-product-faqs' ) structure but as you can see here for esc_attr_x;
    Usage
    esc_attr_x( $text, $context, $domain )
    Parameters

    $text : (string) (required) Text to translate.
    $context : (string) (required) Context information for the translators.
    $domain :  (string) (optional) Domain to retrieve the translated text.

    In your code wordpress gets first argument (‘Submit’) as a text, second argument (‘woocommerce-product-faqs’) as a context and there is no domain for translation so looks for WordPress global texdomain (default) but cannot find (probably) then outputs as is.
    Regards..

    @joshlevinson please fix the translation issues! Its one of the things keeping me and my users from full using the plugin!

    I’ll submit Portuguese translation, as soon as this is fixed!

    Also there seems to be some formatting issues lately, please check that too ??

    Thanks

    • This reply was modified 7 years, 8 months ago by Filipe Costa.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Localization Functioning is not working because of a mistake’ is closed to new replies.