WPML + Theme option text area and text field

This topic has 11 replies, 3 voices, and was last updated 9 years, 9 months ago ago by Eva Kemp

  • Avatar: ataxel
    ataxel
    Participant
    July 18, 2014 at 16:47

    Hi there,
    I’m in the fine tuning of the translated (2 languages) version of my site, using WPML.
    While on theme option, I really don’t have a clue how to translate those fields:

    Shop panel

    • “NEW” Icon Image
    • “SALE” Icon Image
    • Product Page Banner
    • Text for empty cart
    • Text for empty category

    Single product page panel

    • Custom Tab Title
    • Return

    Can you show me the recipe for doing it please 😉
    Regards

    10 Answers
    Avatar: ataxel
    ataxel
    Participant
    July 18, 2014 at 17:51

    More of translation tweaking needed :

    As i send an order, i’ve been redirect to order page.
    This one is all mixed up in both language.

    • Product name is in native languge
    • Date is not translated
    • Payement method name and description still in english instead of Fr
    • Expedition type is also missing its translation

    As for the order history, same needs apply!

    Order page

    Avatar: Eva
    Eva Kemp
    Support staff
    July 18, 2014 at 19:52

    Hello,

    1. “Sale” and “New” icons are images and to translate them you need edit them with some image editor. They are located in wp-content/themes/legenda/images/label-sale.png and wp-content/themes/legenda/images/label-new.png directory.

    2. Do you want to translate “Product Page Banner” text in Theme Options?

    3. Text for empty cart and empty category can be translated in Theme Options > Shop. At the bottom you’ll find the needed sections.

    4. You can translate Custom Tab Title and “Return” in Theme Options > Single Product Page.

    Please provide us with the link to Order page in Private Content to have clear meaning what you need to translate in there.
    Thank you.

    Regards,
    Eva Kemp.

    Avatar: ataxel
    ataxel
    Participant
    July 18, 2014 at 20:08

    Yes indeed, you are right but my needs are different.
    I have a miltilingual site. So the theme options text field or area could’nt be translate this way. Even though I change the settings in English or French language, it’s been pass to the theme option whatever language.

    As for the link for the page, just go and by a product ( pay with cheque ) then turn the page in french and you’ll see the english words.

    http://www.blueloulou.com/legenda

    Avatar: Eva
    Eva Kemp
    Support staff
    July 18, 2014 at 20:22

    We’re unable to access the site, please provide with the permissions.
    To translate “Product Page Banner” edit the file wp-content/themes/legenda/framework/theme-options.php (line 829). “Text for empty cart”, “Text for empty category”, “Return” and “Custom Tab Title” you’ll also find in this file.

    We recommend you to make any changes in a child theme not to lose modifications after the theme upgrade.

    Regards,
    Eva Kemp.

    Avatar: ataxel
    ataxel
    Participant
    July 18, 2014 at 20:38

    Unfortunatly for me and you,
    the site has been changing i.p. and I did not know about it.
    I’ll get back to you as soon as its online.

    Thank you.

    By the way, i want the content of the field to be translatables, not the label!

    Regards

    LP (*

    Avatar: Eva
    Eva Kemp
    Support staff
    July 18, 2014 at 20:43

    Could you please show a screenshot of what exactly you want to translate to avoid misunderstanding?
    Thank you.

    Regards,
    Eva Kemp.

    Avatar: ataxel
    ataxel
    Participant
    July 19, 2014 at 14:47

    It’s not just about translation, but keep multiple languages of those fields. When I’ll get it for thoseo one, i’ll can make the other one. Thank you again for your great support.
    Here you go :

    Translation of fields

    LP (*

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    July 22, 2014 at 14:53

    Hello, @ataxel,
    If you want to translate some Theme Options go to WPML > String translation > scroll down and press on “Translate texts in admin screens” link.
    You’ll see list of fields, choose the fields you’d like to translate “empty_cart_content” & “empty_category_content” and press “Export selected strings as PHP code to be added to the theme code” button. Include the following PHP in theme-functions.php. After that go back to String Translation section and translate necessary content http://wpml.org/documentation/getting-started-guide/string-translation/

    Regards,
    Olga Barlow

    Avatar: ataxel
    ataxel
    Participant
    July 22, 2014 at 16:01

    Wow! That is exactly what i needed.
    Sorry if I did not find it on my own…

    Fantastic, i’m happy.
    Thank you again!

    Avatar: Eva
    Eva Kemp
    Support staff
    July 22, 2014 at 16:04

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

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

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

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