Viewing 15 replies - 1 through 15 (of 17 total)
  • In all widgets is translating fields title and text(if it exist).
    If You want to translate some another fields add this fields in config.

    Thread Starter Kristiyan Mitev

    (@komapeb)

    I guess the plugin should do it but it doesn’t work. Whenever I switch the lang (on the widgets page) and input new values, only the last ones are accepted, so I’m left with only one language choice. I can’t provide a link, because it’s still a local project, but hopefully tomorrow I will upload some screenshots.

    On a side note: any future plans for inline translating? Like in qtraslate-x?

    Also, thanks for the fast reply! I think you did a great job developing this plugin!

    What You mean about “inline translating”?

    Everyone value You need enter in different languages.

    Thread Starter Kristiyan Mitev

    (@komapeb)

    Okay, so… I’m using Bulgarian and English. When I input the values for the title (say for a search widget) in both English and Bulgarian, when I save the widget i get only the last input for both of the languages. This is the same for all widgets. Here are some screenshots.

    en: https://imgur.com/u1QsQRP
    bg: https://imgur.com/bQEliy2

    About inline translation I mean something like in qtranslate-x. Here’s a quote from their page – https://ww.wp.xz.cn/plugins/qtranslate-x/

    In-line syntax ‘[:en]English Text[:de]Deutsch[:]‘ or ‘<!–:en–>English Text<!–:–><!–:de–>Deutsch<!–:–>‘ for theme-custom fields gets them translated – See FAQ for more information.
    Language tag encoding allows strings like this ‘[:en]English Text[:]<html-language-neutral-code>[:de]Deutsch[:]<another-html-language-neutral-code>‘, with language-neutral text embedded.

    Switch to English. Add english title.
    Switch to Bulgarian. Add bulgarian title.

    For translating, use ‘wpm_translate_string’ or other. All functions described in description to the plugin. Read please before adding new question.

    Thread Starter Kristiyan Mitev

    (@komapeb)

    Okay, thank you for your time.

    Hi @valexar,
    Hey! Sorry to bug you here but…
    I am having the same issue with the widgets:
    wp-admin/widgets.php?edit_lang=fr
    wp-admin/widgets.php?edit_lang=en

    Problem is:
    If I edit a widget title it will be kept for both languages.
    Of course I am using the Language Switcher:
    wp-admin/widgets.php?edit_lang=fr
    wp-admin/widgets.php?edit_lang=en

    P.S. I also noticed this same behavior in my Ultimatum Theme (Theming Framework), when editing Widgets’ titles

    @komapeb
    You don’t have this problem with the default WordPress theme: Twenty Seventeen

    Kind Regards,

    • This reply was modified 8 years, 6 months ago by Anticosti. Reason: notifications
    Thread Starter Kristiyan Mitev

    (@komapeb)

    My issue is with the theme Square by hashthemes ( https://hashthemes.com/wordpress-theme/square/ ) but I don’t think it’s a theme related problem.
    I solved the problem (kinda) by using the inline syntax ( [:en]english text[:lang_code]other language text ) but it’s not ideal because every time i need to make changes to the widget i have to type the same code over and over. It can get quite annoying.
    So… I thought I didn’t read the documentation and there wasn’t an issue but now it’s clear that’s not the case and I’m marking this thread as not resolved again.

    @komapeb fixed in new version. Please update. Thank You for your question.

    @valexar
    I can confirm. It is now fixed for me with 2.1.3 update.
    Thank you so much. You’r the Best!

    Thread Starter Kristiyan Mitev

    (@komapeb)

    It’s still not working for me. I am using Custom HTML widget. Although the title of the widget translates properly after the plugin update, the HTML contents stay the same for both languages when i try to save the widget. Just to be clear I am using the latest versions of WP and your plugin.
    Thank you very much for looking into this!

    @komapeb thank You for your question. It will be fixed in next version.

    Thread Starter Kristiyan Mitev

    (@komapeb)

    Thank you, dude. You rock!

    @komapeb as solution, create in root of your theme the file wpm-config.json
    and add the code:

    
    {
      "widgets": {
        "custom_html": {
          "content": {}
        }
      }
    }
    
Viewing 15 replies - 1 through 15 (of 17 total)

The topic ‘Widget translation’ is closed to new replies.