from ConfigTextWithSuggestions import ConfigTextWithSuggestions

from . import _

searchContext = Config()
searchContext.searchTerm = ConfigTextWithSuggestions("", False, threaded=True)
searchContext.orderBy = ConfigSelection([("relevance", _("Relevance")),
                                         ("viewCount", _("View Count")),
                                         ("published", _("Published")),
                                         ("rating", _("Rating"))], "relevance")
searchContext.time = ConfigSelection([("all_time", _("All Time")),
                                      ("this_month", _("This Month")),
                                      ("this_week", _("This Week")),
                                      ("today", _("Today"))], "all_time")
searchContext.racy = ConfigSelection([("include", _("Yes")),
                                      ("exclude", _("No"))], "exclude")
searchContext.categories = ConfigSelection(
    [(None, _("All")), ("Autos", _("Autos & Vehicles")), ("Music", _("Music")),
     ("Animals", _("Pets & Animals")), ("Sports", _("Sports")),
     ("Travel", _("Travel & Events")), ("Shortmov", _("Short Movies")),
     ("Games", _("Gaming")), ("Comedy", _("Comedy")),
     ("People", _("People & Blogs")), ("News", _("News & Politics")),
     ("Entertainment", _("Entertainment")), ("Education", _("Education")),
     ("Howto", _("Howto & Style")), ("Nonprofit", _("Nonprofits & Activism")),
     ("Tech", _("Science & Technology")),
     ("Movies_Anime_animation", _("Movies - Anime/Animation")),
     ("Movies", _("Movies")), ("Movies_Comedy", _("Moview - Comedy")),
     ("Movies_Documentary", _("Movies - Documentary")),
     ("Movies_Action_adventure", _("Movies - Action/Adventure")),
     ("Movies_Classics", _("Movies - Classics")),
     ("Movies_Foreign", _("Movies - Foreign")),
				[
				 ("relevance", _("Relevance")),
				 ("viewCount", _("View Count")),
				 ("published", _("Published")),
				 ("rating", _("Rating"))
				], "relevance")
searchContext.time = ConfigSelection(
				[
				 ("all_time", _("All Time")),
				 ("this_month", _("This Month")),
				 ("this_week", _("This Week")),
				 ("today", _("Today"))
				], "all_time")
searchContext.racy = ConfigSelection(
				[
				 ("include", _("Yes")),
				 ("exclude", _("No"))
				], "exclude")
searchContext.categories = ConfigSelection(
				[
				 (None, _("All")),
				 ("Autos", _("Autos & Vehicles")),
				 ("Music", _("Music")),
				 ("Animals", _("Pets & Animals")),
				 ("Sports", _("Sports")),
				 ("Travel", _("Travel & Events")),
				 ("Shortmov", _("Short Movies")),
				 ("Games", _("Gaming")),
				 ("Comedy", _("Comedy")),
				 ("People", _("People & Blogs")),
				 ("News", _("News & Politics")),