How can I translate the texts selected in the image?

This topic has 4 replies, 3 voices, and was last updated 7 months, 3 weeks ago ago by Rose Tyler

  • Avatar: smalameri
    smalameri
    Participant
    March 31, 2024 at 09:56

    How can I translate the texts selected in the image?

    Please, contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    3 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    March 31, 2024 at 10:30

    Dear @smalameri,

    We hope this message finds you well.

    We would like to inform you that the text translation for your website can be accomplished using the Loco Translate plugin. You can access the plugin and initiate the translation process via the following link: [Loco Translate Plugin](https://***oalarabhotel.com/wp-admin/admin.php?path=languages%2Fthemes%2Fxstore-ar.po&bundle=xstore&domain=xstore&page=loco-theme&action=file-edit).

    Should you encounter any difficulties with the plugin, you have the alternative option of inserting the code snippet provided below into the functions.php file located within your child theme directory:

    
    function n2t_text_strings( $translated_text, $text, $domain ) {
        switch ( $translated_text ) {
            case 'Wishlist' :
                $translated_text = 'القائمة المفضلة';
                break;
            case 'Compare' :
                $translated_text = 'مقارنة الغرف';
                break;
        }
        return $translated_text;
    }
    add_filter( 'gettext', 'n2t_text_strings', 20, 3 );
    

    Furthermore, to update the “My Account” page title, please proceed to the following link and make the necessary edits: [Edit My Account Page](https://***oalarabhotel.com/wp-admin/post.php?post=18&action=edit).

    We trust that these instructions will be of assistance to you. Should you require any further support, please do not hesitate to reach out.

    Best Regards,
    The 8Theme Team

    Avatar: smalameri
    smalameri
    Participant
    March 31, 2024 at 11:02

    I did not understand. Please send me the steps to insert this code

    Files is visible for topic creator and
    support staff only.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 31, 2024 at 14:51

    Dear @smalameri,

    1/ You do not need to use the custom code because the translation works fine, please go to Loco Translate > Plugins > XStore > edit translation.

    2/ This text can be changed via Theme options > WooComerce – https://prnt.sc/ZEYzaxyNGd1a

    Best Regards,
    The 8Theme Team

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.