opensearchdescription - Add Open Search Description with multiple URLs based on language -


the website want add opensearchdescription has language parameter in url path define vistors language. means search url different every language, e.g. http://www.example.org/en/search , http://www.example.org/fr/search

the below snippet allow add search url, specific language (e.g. english).

<opensearchdescription xmlns="http://a9.com/-/spec/opensearch/1.1/">   <script/>   <shortname>example site</shortname>   <description>search example site</description>   <inputencoding>utf-8</inputencoding>   <image width="16" height="16" type="image/x-icon">http://www.example.org/favicon.ico</image>   <url type="application/x-suggestions+json" method="get" template="http://suggestqueries.google.com/complete/search?output=firefox&amp;q={searchterms}" />   <url type="text/html" method="get" template="http://www.example.org/en/search?search_query={searchterms}" /> </opensearchdescription> 

the osd documentation not clear me adding multi language support. this?

...   <url type="text/html" method="get" template="http://www.example.org/{language}/search?search_query={searchterms}" />   <language>en</language>   <language>fr</language> ... 


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -