Okay
  Public Ticket #2912146
Them Options Translations
Closed

Comments

  •  2
    gimaclinic started the conversation

    Hi,

    I'm using WPML and I can't translate Theme Options/Opening Hours. How am I to do to translate this Options Items to Spanish, Català and English?

    Thanks!

  •  1,715
    Barry replied

    Hi there,

    Thank you for your message.

    The settings from the theme customizer under Appearance -> Customize can be translated by using the WPML admin string translation settings. You can find this under WPML -> String Translations by clicking the "Translate texts in admin screens" link at the bottom of the page.

    In the article link below you can follow the steps to do this:

    Translate customizer settings with the WPML plugin

    Only at step 3 from above article make sure to look for these settings instead:

    qt_weekday_monday
    qt_weekday_tuesday
    qt_weekday_wednesday
    qt_weekday_thursday
    qt_weekday_friday
    qt_weekday_saturday
    qt_weekday_sunday

    Hope this helps.

    Best regards,
    Barry
    QreativeThemes.com  |  WordPress Themes

  •  2
    gimaclinic replied

    Hi Barry,

    I found them! Thanks

    I was followed your instructions because the article is a little confuse. When I was in “Translate texts in admin screens”, I used the search box with “qt_weekday_” and then checked all the options what I needed and clicked “Add to String Translation” button. Now I can see the weekdays to translate.

    [Physio-qt version: 3.0.1, WP version: 5.8.1, WPML version: 4.5.0]

    Best regards,

    Walter. 



  •  1,715
    Barry replied

    Hi Walter,

    You're welcome. I'm glad to hear that.

    We will take a closer look at the article. It's always good to hear feedback from our customers so we can keep working on improving thingssmile.png

    Let me know if there is anything else I can help with.

    Best regards,
    Barry
    QreativeThemes.com  |  WordPress Themes

  •  6
    icanfilmthat replied

    Hi Barry!

    Is there any way to translate the weekdays without the String Translations? 

    I Only have the Multilingual Blog version of the WPML that does not have that option.

    Thank you so much!

  •  1,715
    Barry replied

    Hi Walter,

    Sure, the weekdays can be translated under Appearance -> Customize -> Theme Options -> Opening Hours

    Best regards,
    Barry
    QreativeThemes.com  |  WordPress Themes

  •  6
    icanfilmthat replied

    Sorry, I didn't explain that I wanted the weekdays in English and Portuguese when I select the corresponding language. That is only accessible if you use String Translations?


  •  1,715
    Barry replied

    Hi there,

    Unfortunately yes. The only way to translate options from the theme customizer in different languages with WPML is by installing the string translations WPML add-on.

    There is some kind of workaround you can try but I'm not fully sure how it will work out. This workaround is by installing the WPML Widgets and add your opening hours with HTML so you can translate the weekdays manually.

    1. Install and activate the WPML Widgets plugin
    2. Open the "QT: Opening Hours" widget and at the bottom at the language selector choose "English"
    3. Add a "Custom HTML" widgets below the opening hour widget and add this code:
    <div class="widget widget-opening-hours">
        <h6 class="widget-title"><span class="normal"> Opening </span> Hours</h6>
        <div class="opening-hours">
            <ul>
                <li class="weekday">Monday<span class="right">07:00 - 17:00</span></li>
                <li class="weekday">Tuesday<span class="right">07:00 - 17:00</span></li>
                <li class="weekday today">Wednesday<span class="right">07:00 - 17:30</span></li>
                <li class="weekday">Thursday<span class="right">07:00 - 17:00</span></li>
                <li class="weekday">Friday<span class="right">07:00 - 17:00</span></li>
                <li class="weekday">Saturday<span class="right">09:00 - 15:00</span></li>
                <li class="weekday">Sunday<span class="right label">CLOSED</span></li>
            </ul>
        </div>
    </div>

         3. Replace the English days with Portuguese

         4.  At the bottom of the "Custom HTML" widget there should be a select field to choose on which language you want to display the widget, choose "Portuguese"

    Please note that the opening hours added under Appearance -> Customize -> Theme Options -> Opening Hours are not reflected in the custom HTML widget. If you make any changes to your opening hours you have to adjust it as well within the custom html widget.

    Best regards,
    Barry
    QreativeThemes.com  |  WordPress Themes

  •  6
    icanfilmthat replied

    Thank you so much! 

    This works for me!

    Thank you!

  •  1,715
    Barry replied

    Great! You're welcomesmile.png

    Best regards,
    Barry
    QreativeThemes.com  |  WordPress Themes