Okay
  Public Ticket #1331922
translate words that cannot be translated with WPML
Closed

Comments

  •  3
    allexarh started the conversation

    Hi,

    I am stuck trying to translate 2 words that do not appear in the WPML String translation.

    It's about the words "Menu" and "Close" from the Custom Hamburger Menu, and they appear only on mobile.

    I scanned the theme with WPML and translated every "menu" and "close" found but nothing changes.

    What can I do?

    Alex

  •  1,559
    Laborator replied

    Hi Alex,

    Since your login credentials don't seem to  be working I will try to explain a way you can translate these, you will need to install the WPML Shortcodes plugin and activate it, then go to theme options where the Menu and Close are typed, replace them with the following shortcode: 

    [wpml_if lang='en']Close[/wpml_if][wpml_if lang='ro']Close (romanian)[/wpml_if]

    as you can see there is the same code twice but the first one is for english and the second one for romanian, if you don't know how to do this please enter again your working credentials.

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  •   allexarh replied privately
  • [deleted] replied

    Hi Alex,

    I have managed to fix this issue, check it here.

    The problem was with wpml-config.xml file, which was only addressing "theme_mods_kalium" and not "theme_mods_kalium-child" as in your case. So I have created the same file in your child theme with the same content but different variable ID (theme_mods_kalium-child) and it worked:


    (view large version)

    To translate theme strings, just use default WPML String Translation tool, it will work in that way.

  •  3
    allexarh replied

    Thank you, Arlind, it works indeed.