php - How to implement search on a gettext driven multi language site? -


I'm setting up a multi-language using gettext. Since compiled all the text in other languages How do I attack the site's search function in Mo files? Any help or direction direction will be appreciated. Note, I have not engineered the search first ...

As I understand, you provide search Want to know which information Is stored in MO files; Key-value pairs of text files.

The problem will be to map a KV pair specifically to a particular URI. If you can do this, you can run a script that parsed .mo files, and store any kind of data in the store with the corresponding URI (or other resource identifier), such as Apache Solar or a MySQL detabase FULLTEXT-indexed column).

Another option is to use the crawler for error and index for all pages on your site. Here's a list of open-source crawlers:

All the best.


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -