Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor improvements to View Localization using files #32

Merged
merged 2 commits into from
Jan 11, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
}
}
}
}