Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter etmanko

    (@etmanko)

    why you closed it? It was resolved? or it will be handled by your support?

    Thanks

    Thread Starter etmanko

    (@etmanko)

    Thread Starter etmanko

    (@etmanko)

    Mike,

    super this is sufficient for me. I hope translation will not be overriden again. I translated 5 strings with ‘say what’

    Many thanks for your time and support.

    Thread Starter etmanko

    (@etmanko)

    Sorry, what is ‘say what’?

    Thread Starter etmanko

    (@etmanko)

    There is not missing string. In our country i need to change translation becouse some string are translatted incorrectly.
    for example backordered is translated as returned in my language in its tricky in checkout. In total i founded that 4 strings are not correcnt and not aligned with our law, therefore i did translation using Loco and save it. This works some hours but from unexpected reason was my translated file overriden with original woocommerce file translation where i have again incorrect translated strings.

    I don’t know why filter not working but this make me sad as i did translation as last step in woocommerce configuration and as i am very beginer it take for me long time.

    Any help how setup woocommerce to not override translated translation with original translation?

    Thread Starter etmanko

    (@etmanko)

    Hello,

    i put your code into function.php and on the page is locale: sk_SK so it should be correct.

    Thread Starter etmanko

    (@etmanko)

    ouch i see the script that locale are dynamically selected.
    i changed my code to: $mofile = WP_LANG_DIR . ‘/wp-content/languages/wc-‘ . get_locale() . ‘.mo’;

    file on ftp renamed to wc-sk_SK.mo but still same english language on page 🙁 i really don’t understand. if i change url for static ‘/wp-content/languages/wc-sk_SK.mo’; still english language was used

    Thread Starter etmanko

    (@etmanko)

    I changed it to:
    /*
    * Replace ‘textdomain’ with your plugin’s textdomain. e.g. ‘woocommerce’.
    * File to be named, for example, yourtranslationfile-en_GB.mo
    * File to be placed, for example, wp-content/lanaguages/textdomain/yourtranslationfile-en_GB.mo
    */
    function load_custom_plugin_translation_file( $mofile, $domain ) {
    if ( ‘woocommerce’ === $domain ) {
    $mofile = WP_LANG_DIR . ‘/wp-content/languages/sk_SK’ . get_locale() . ‘.mo’;
    }
    return $mofile;
    }

    but still english translation.

    in wp-content/languages/ i have file sk_SK.mo and sk_SK.po

    Thread Starter etmanko

    (@etmanko)

    Hi Mike,

    i replaced if ( ‘textdomain’ === $domain ) {
    to if ( ‘woocommerce’ === $domain ) {
    and $mofile = WP_LANG_DIR . ‘/textdomain/yourtranslationfile-‘
    to $mofile = WP_LANG_DIR . ‘/wp-content/languages/SK.po’ . get_locale() . ‘.mo’;

    my translated language was saved in file SK.po and this will not working, translation was original in english.

    Many thanks

    Hi Bas,

    same issue for me. Have you any update on this, please?

    Many thanks

Viewing 10 replies - 1 through 10 (of 10 total)