I’m using a Sphinx search engine to perform my searches in a Rails project, through Thinking Sphinx gem. My site is in spanish, so I need to have text obtained from Sphinx translated too.
I’m using page_entries_info helper to retrieve the search results stats, getting messages such as
Displaying services 1 - 10 of 412 in total
That message is what I’d like to have translated into spanish. No success googling or searching the docs for a configuration item.
Any idea?
This is just a helper from Will Paginate, not Thinking Sphinx. If you want to customise it, I suggest just writing your own helper method (I don’t know spanish, but here’s a quick English rewrite you can perhaps adapt):
Of course, it doesn’t handle different objects, so it may need to get more complicated (if you look at Will Paginate, I’ve really just stolen the last 10 lines of that method and simplified it – you could just take the code from there and translate it instead for a more extensive implementation).