Not logged in. · Lost password · Register
Forum: General Help and Support Features and Functionality RSS
Results of searching in multiple languages
Avatar
ejetoro #1
Member since Jun 2018 · 4 posts
Group memberships: Members
Show profile · Link to this post
Subject: Results of searching in multiple languages
Hello everyone.

I have the plugin translation.

I want to know if i can only search the wiki in the current language, if i search for something, right now, i get results for spanish, english, etc and the results are mixed... How can i avoid this?
Avatar
cziehr #2
Member since Jan 2011 · 567 posts · Location: 10119 Berlin
Group memberships: Members
Show profile · Link to this post
If you have organized your languages in different namespaces, you can restrict your search to the appropriate language-namespace.

To get an own searchfield for every language-namespace, you may use the plugin https://www.dokuwiki.org/plugin:searchform
Avatar
turnermm (Moderator) #3
Member since Oct 2009 · 4627 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
I split the thread since this is really a separate topic and might find more replies.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
ejetoro #4
Member since Jun 2018 · 4 posts
Group memberships: Members
Show profile · Link to this post
In reply to post #2
I will try. Thank you.
Avatar
ejetoro #5
Member since Jun 2018 · 4 posts
Group memberships: Members
Show profile · Link to this post
In reply to post #2
Subject: fails after first search
The plugin https://www.dokuwiki.org/plugin:searchform is all that i wanted, thank you again.

But now, when i search the first time i get the results ok, but once "on the search page", i lost the language filter... How can i do now?
Avatar
cziehr #6
Member since Jan 2011 · 567 posts · Location: 10119 Berlin
Group memberships: Members
Show profile · Link to this post
In the options of the search-page, you can restrict the search to a specific namespace. But this must be done by the user.
Avatar
andi (Administrator) #7
User title: splitbrain
Member since May 2006 · 3422 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
there is no plugin needed. in a multilingual wiki the first namespace is the language. use https://www.dokuwiki.org/config:search_nslimit to automatically limit searches to the first namespace and you have what you want.
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Avatar
ejetoro #8
Member since Jun 2018 · 4 posts
Group memberships: Members
Show profile · Link to this post
Thank you everybody for answering.

@cziehr, yes i have seen the @ in the search field when i look for something in a specified namespace, but the average user doesn't mind on that, the search page should keep the current language and persist searching on it.

@andi, i can limit the searches to my first namespace with search_nslimit (spanish).

English, french, german or chinese people have to search in spanish, then when reaching the final page (if they are able to do that), change the language to the desired one?
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-05-23, 03:08:08 (UTC +02:00)