[Resolved] Activate or implement Filters for Search translation

Home Forums Support [Resolved] Activate or implement Filters for Search translation

Home Forums Support Activate or implement Filters for Search translation

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #39307
    Nick

    Hey Guys,
    hi Tom,

    i’m quite sure that’s a newbie-question ๐Ÿ™‚ … but how could i implement the filters? I mean this set:
    http://www.generatepress.com/knowledgebase/filter-list/

    I’d like to change the “Search for” (“Suche nach”) and “Search” (“Suchen”) button into my language (german).

    Greetings,
    Nick

    #39354
    Tom
    Lead Developer
    Lead Developer

    Hi Nick,

    Those words should already be translated into German if you have that set as your language.

    Are they not translating for you?

    #39394
    Nick

    Hey Tom,

    nope, sorry, that won’t work for my site. My wordpress language is german. Is there any clue in generatepress to modify the language?

    Greetings, Nick

    #39401
    Tom
    Lead Developer
    Lead Developer

    Your WordPress is in German and the Search text isn’t translating? Something weird happening there.

    Anyways, using filters works like this:

    First, create a new plugin using Pluginception: https://wordpress.org/plugins/pluginception/

    In that file, add this:

    add_filter('generate_search_placeholder','generate_custom_search_placeholder');
    function generate_custom_search_placeholder() 
    {
          return 'Suche..';
    }

    That should do it.

    #39769
    Nick

    Nice, thanks for the code. You could close the thread! ๐Ÿ™‚

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.