• Resolved Rahim

    (@rahimvaziri)


    Hi Woocommerce,

    In the Woocommerce you use , to separate the words, like the values of the variable products in the cart. However in my language we have our own , which is ،

    Right now, I don’t have any option to translate this.

    Hope you put this string as well.

    Regards.
    Rahim

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Praveen a11n

    (@spraveenitpro)

    Automattic Happiness Engineer

    Hi There,

    You can try this snippet, you can add it to your functions.php located within your theme, please feel free to modify the snippet. I also recommend to test this on a staging/dev site:

    function my_text_strings( $translated_text, $text, $domain ) {
        switch ( $translated_text ) {
            case ',' :
                $translated_text = __( '،', 'woocommerce' );
                break;
        }
        return $translated_text;
    }
    add_filter( 'gettext', 'my_text_strings', 20, 3 );
    Thread Starter Rahim

    (@rahimvaziri)

    Hi @spraveenitpro,

    Thank you so much for the reply.

    Unfortunately this code didn’t make any changes.

    Have you ever tested this code on your end?

    Regards.
    Rahim

    Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Hey there!

    I would recommend contributing your translation to WooCommerce core following this guide here: https://docs.woocommerce.com/document/woocommerce-localization/#section-2

    That will enable all users in your language to use this.

    Hopefully that helps! Have a great one!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Translation Issue’ is closed to new replies.