internal static string GetSortByString(SortBy currentSortBy)
{
string strLine = string.Empty;
switch (currentSortBy.Field)
{
case SortingFields.Title:
strLine = Translation.Title;
break;
case SortingFields.ReleaseDate:
strLine = Translation.ReleaseDate;
break;
case SortingFields.Score:
strLine = Translation.Score;
break;
case SortingFields.Votes:
strLine = Translation.Votes;
break;
case SortingFields.Popularity:
strLine = Translation.Popularity;
break;
case SortingFields.Runtime:
strLine = Translation.Runtime;
break;
case SortingFields.PeopleWatching:
strLine = Translation.Watchers;
break;
case SortingFields.WatchListInserted:
strLine = Translation.Inserted;
break;
case SortingFields.Anticipated:
strLine = Translation.Anticipated;
break;
default:
strLine = Translation.Title;
break;
}
return string.Format(Translation.SortBy, strLine);
}