Search in Language Messages

I always believed website search must include static contents, i used to do this by creating a table for all the links and contents of my website, put the name of pages they are used in and check that table on search operation so the user can access menus via search. But now in Yii or any other framework we have all the messages passing a method like Yii::t, So i was thinking it would be great, if there was a component which could search among the messages and return the link to pages which contain this messages. I’m sorry if i put this idea in a wrong topic i don’t know if we are suppose to write ideas about framework but i really need this feature, and think it’s pretty useful for anybody who wants to create a more user friendly website.

thank you

That functionality would be better as a Yii extension than to go in the core.