X-Store Header Search Form Placeholder Translation (WPML)

This topic has 2 replies, 2 voices, and was last updated 1 years, 5 months ago ago by Tony Rodriguez

  • Avatar: Henrik Kriiger
    Henrik Kriiger
    Participant
    December 29, 2022 at 23:00

    Hi,

    I would like to translate the placeholder text in the header and ajax search form but WPML doesn’t seem to locate and find the correct string.

    The Code:

    I set the placeholder to “”Otsi tooteid…”” as it is in Estonian by default, but I also need it to change when the site is set to English and maybe some other language.

    Am I missing something or what plugin or theme files should I let WMPL scan to find the correct string?

    Best regards,
    Henrik

    1 Answer
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    December 30, 2022 at 05:21

    Hello, @Henrik Kriiger,

    Translation files include only strings that were used in PHP files and can’t be edited from the Theme Options or backend. Search placeholder text of the header builder element is custom text and it can be changed via Theme Options > Header builder > Search, it’s not included to translation files because it’s not hardcoded. If you create multilanguage site using WPML for example then all the strings from the admin module could be added to the translation using WPML settings http://prntscr.com/qxsbgb to translate them to other languages.

    1) Go to Theme Options > Header builder > edit search and translate the search placeholder text to your language.
    2) After that you need to translate these admin strings to other languages of your site. To do this go to WPML > String translator > scroll down and click translate admin strings > check the strings you need to translate and add them to string translator.
    3) Go back to string translator and translate strings to other languages.

    Regards 8Themes Team.

  • Viewing 2 results - 1 through 2 (of 2 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.