• Resolved undergl

    (@undergl)


    Hi,
    I have a problem with some strings, my woo-commerce web use and WooCommerce-booking plugin, this plugin all texts translate well with the exception of two who only shows the translation.
    If I select English language the stings show in spanish and if I select Spanish is also shows spanish.
    That is, only displays text in Spanish but I choose English. As I say just do it with two strings.

    This is the php code for the string:
    // Validate date and time
    if ( empty( $data[‘date’] ) ) {
    return new WP_Error( ‘Error’, __( ‘Date is required – please choose one above’, ‘woocommerce-bookings’ ) );
    }

    I don’t know it can be wrong

    https://www.ads-software.com/plugins/qtranslate-x/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Gunu

    (@grafcom)

    @undergl,

    See under FAQ for a possible solution

    – Is it possible to translate theme custom fields?

    and this:

    – How do I translate custom configuration fields, which are not handled by language switch buttons?

    Thread Starter undergl

    (@undergl)

    Ok, thanks for your reply but this is not the problem.

    in any case I tried what you suggest in FAQ. Change the line:

    return new WP_Error( ‘Error’, __( ‘<!–:en–>English Text<!–:–><!–:es–>Spanish text<!–:–>’, ‘woocommerce-bookings’ ) );

    and add the class to custom field section in the plugin

    The translation is performed but always displays text in Spanish even if another language is selected.

    Plugin Author Gunu

    (@grafcom)

    Do you also use this plugin?

    return new WP_Error( ‘Error’, __( ‘<!–:en–>English Text<!–:–><!–:es–>Spanish text<!–:–>’, ‘woocommerce-bookings’ ) );

    Is it not a normal field for text?

    Plugin Author Gunu

    (@grafcom)

    @undergl,

    is this solved?

    Thread Starter undergl

    (@undergl)

    not resolved, there are texts that are not translated and in the settings to send emails in wocommerce the flags to change language for woocommerce-bookings plugins does not appear.

    qtraslate-x is not supported for this plugin really?

    Plugin Author Gunu

    (@grafcom)

    @undergl,

    have you tried this – FAQ – Can I enable Language Switching Buttons on my plugin custom page?

    Plugin Author Gunu

    (@grafcom)

    Also try the latest Beta version of qTranslate X

    Download it here

    I also saw that additional steps are necessary to make bookings for WPML multilingual.

    Thread Starter undergl

    (@undergl)

    OK thank you very much, I’ll try both options

    Thread Starter undergl

    (@undergl)

    Can you send me an email for you have a look into the website? i don’t know what is happening. When AJAX call the language is changed always to spanish

    I press F5, then down quickly the page an show the text in English but when loading then changed to Spanish

    thank you very much

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Some text only show in translated version’ is closed to new replies.