mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Fix localization of login menu items.
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<form class="form-inline" asp-area="Identity" asp-page="/Account/Logout" asp-route-returnUrl="/" method="post">
|
||||
<button type="submit" class="nav-link btn btn-link text-dark">@L["Logout"]</button>
|
||||
<button type="submit" class="nav-link btn btn-link text-dark">@L["Log out"]</button>
|
||||
</form>
|
||||
</li>
|
||||
}
|
||||
@@ -24,7 +24,7 @@
|
||||
<a class="nav-link text-dark" asp-area="Identity" asp-page="/Account/Register">@L["Register"]</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="Identity" asp-page="/Account/Login">@L["Login"]</a>
|
||||
<a class="nav-link text-dark" asp-area="Identity" asp-page="/Account/Login">@L["Log in"]</a>
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
@@ -126,17 +126,17 @@
|
||||
<value>¡Hola {0}!</value>
|
||||
<comment>Salutes logged-in user</comment>
|
||||
</data>
|
||||
<data name="Logout" xml:space="preserve">
|
||||
<data name="Log out" xml:space="preserve">
|
||||
<value>Cerrar sesión</value>
|
||||
<comment>Logout</comment>
|
||||
<comment>Log out</comment>
|
||||
</data>
|
||||
<data name="Register" xml:space="preserve">
|
||||
<value>Registrarse</value>
|
||||
<comment>Register</comment>
|
||||
</data>
|
||||
<data name="Login" xml:space="preserve">
|
||||
<data name="Log in" xml:space="preserve">
|
||||
<value>Iniciar sesión</value>
|
||||
<comment>Login</comment>
|
||||
<comment>Log in</comment>
|
||||
</data>
|
||||
<data name="About" xml:space="preserve">
|
||||
<value>Acerca de</value>
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
<AuthorizeView>
|
||||
@inject StringLocalizer<NavMenu> L
|
||||
|
||||
<AuthorizeView>
|
||||
<Authorized>
|
||||
<a href="Identity/Account/Manage">Hello, @context.User.Identity.Name!</a>
|
||||
<a href="Identity/Account/Manage">@string.Format(L["Hello {0}!"], @context.User.Identity.Name)</a>
|
||||
<form method="post" action="Identity/Account/LogOut">
|
||||
<button type="submit" class="nav-link btn btn-link">Log out</button>
|
||||
<button type="submit" class="nav-link btn btn-link">@L["Log out"]</button>
|
||||
</form>
|
||||
</Authorized>
|
||||
<NotAuthorized>
|
||||
<a href="Identity/Account/Register">Register</a>
|
||||
<a href="Identity/Account/Login">Log in</a>
|
||||
<a href="Identity/Account/Register">@L["Register"]</a>
|
||||
<a href="Identity/Account/Login">@L["Log in"]</a>
|
||||
</NotAuthorized>
|
||||
</AuthorizeView>
|
||||
Reference in New Issue
Block a user