Skip to content

Commit

Permalink
Merge pull request #32 from socrat3z/master
Browse files Browse the repository at this point in the history
Minor improvements to View Localization using files
  • Loading branch information
jgauffin committed Jan 11, 2013
2 parents e585fe3 + 2385ed7 commit ff2f0e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ protected ViewPromptCollection GetLanguage(CultureInfo culture)
if (prompts == null)
{
prompts = new ViewPromptCollection(culture);
_languages.Add(culture, prompts);
}
_languages.Add(culture, prompts);
}

return prompts;
Expand Down Expand Up @@ -350,4 +350,4 @@ public int GetHashCode(ViewPrompt obj)

#endregion
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ public static string GetViewPath(string viewPath, RouteData routeData)
var path = viewPath.TrimStart('~');
path = path.Remove(viewPath.LastIndexOf('.') - 1);
path = path.Replace("/Views", "");
path = path.ToLower();

return path;
}
Expand Down Expand Up @@ -168,4 +169,4 @@ public override int GetHashCode()
return (_id != null ? _id.GetHashCode() : 0);
}
}
}
}

0 comments on commit ff2f0e7

Please sign in to comment.