- Adding localizers to admin menu providers.

- A few missing localized strings and french translations were added. Need native french speakers to fully translate Orchard in french.

--HG--
branch : dev
This commit is contained in:
Suha Can
2010-06-03 15:47:35 -07:00
parent 5084d2b4dd
commit 43f1031054
17 changed files with 584 additions and 50 deletions

View File

@@ -1,13 +1,15 @@
using Orchard.Security;
using Orchard.Localization;
using Orchard.Security;
using Orchard.UI.Navigation;
namespace Orchard.Core.Dashboard {
public class AdminMenu : INavigationProvider {
public Localizer T { get; set; }
public string MenuName { get { return "admin"; } }
public void GetNavigation(NavigationBuilder builder) {
builder.Add("Orchard", "0",
menu => menu.Add("Dashboard", "0", item => item.Action("Index", "Admin", new { area = "Dashboard" }).Permission(StandardPermissions.AccessAdminPanel)));
builder.Add(T("Orchard"), "0",
menu => menu.Add(T("Dashboard"), "0", item => item.Action("Index", "Admin", new { area = "Dashboard" }).Permission(StandardPermissions.AccessAdminPanel)));
}
}
}