• Resolved Arjannez

    (@arjannez)


    I’ve made a dutch translation for the Optimizer theme, but it doesn’t seem to work in the search-box. The standard-text in the searchbox says ‘Searching…’ instead of ‘Zoeken…’ and the button still says ‘Search’ instead of ‘Zoeken’. Where can I change it? Changing it in the .po languagefiles doesn’t seem to work.
    With the standard 2017 theme buttons are in dutch.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author OptimizerWP

    (@layerthemes)

    Hi,

    Can you please follow this method to translate the search button: https://optimizerwp.com/documentation/how-to-translate-theme-using-loco/

    Thanks

    Thread Starter Arjannez

    (@arjannez)

    Hi,
    I’d rather not use to many plugins, but I tried it using Loco Translate – but still no luck
    screen in loco translate
    This is what’s in Loco Translate.
    And the result (after cleaning browsercache):
    result: searchscreen
    Still english in searchbox and button.

    Why doesn’t it work?
    Hope you can help.

    Arjanne

    Doesn’t work for me too unfortunately

    Theme Author OptimizerWP

    (@layerthemes)

    Looks like a bug. Please open the core.php file inside the /lib/functions folder and replace this:

    esc_attr( 'Search …', 'optimizer' )

    with this:
    esc_attr_e( 'Search …', 'optimizer' )

    and this:
    esc_attr( 'Search', 'optimizer' )

    with this:
    esc_attr_e( 'Search', 'optimizer' )

    This bug will be fixed in the next version. You can use this plugin to edit the file: https://www.ads-software.com/plugins/solid-code-theme-editor/

    Thanks

    Thread Starter Arjannez

    (@arjannez)

    Thanks for the reply. Unfortunatly making esc_attr esc_attr_e didn’t work for me, the searchform was all messed up.
    What did work was replacing the words ‘Search’ with the dutch ‘Zoek’ in those lines.

    <input placeholder=”‘ . esc_attr( ‘Zoek …’, ‘optimizer’ ) . ‘” type=”text” value=”‘ . get_search_query() . ‘” name=”s” id=”s” />
    <input type=”submit” id=”searchsubmit” value=”‘. esc_attr( ‘Zoek’, ‘optimizer’ ) .'” />

    Hope it will work correct in the next version.
    Thanks.

    Arjanne

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change language of searchbutton’ is closed to new replies.