mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-20 08:12:27 +00:00
Fix BaseLayout not using translations
This commit is contained in:
parent
71ff91f4fc
commit
d1bec61b90
2 changed files with 5 additions and 2 deletions
|
@ -11,6 +11,8 @@ public static class LocalizationManager
|
||||||
|
|
||||||
public static string GetLocalizedString(TranslationAreas translationArea, string language, string key)
|
public static string GetLocalizedString(TranslationAreas translationArea, string language, string key)
|
||||||
{
|
{
|
||||||
|
// return $"{translationArea.ToString()}.{language}.{key}";
|
||||||
|
|
||||||
// ASP.NET requires specific names for certain languages (like ja for japanese as opposed to the standard ja-JP)
|
// ASP.NET requires specific names for certain languages (like ja for japanese as opposed to the standard ja-JP)
|
||||||
// We map that value back here.
|
// We map that value back here.
|
||||||
language = mapLanguageBack(language);
|
language = mapLanguageBack(language);
|
||||||
|
|
|
@ -133,6 +133,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</noscript>
|
</noscript>
|
||||||
|
@* ReSharper disable once CSharpWarnings::CS0162 *@
|
||||||
@if (!ServerStatics.IsDebug && VersionHelper.IsDirty)
|
@if (!ServerStatics.IsDebug && VersionHelper.IsDirty)
|
||||||
{
|
{
|
||||||
<div class="ui bottom attached red message large">
|
<div class="ui bottom attached red message large">
|
||||||
|
@ -161,10 +162,10 @@
|
||||||
<div class="ui black attached inverted segment">
|
<div class="ui black attached inverted segment">
|
||||||
<div class="ui container">
|
<div class="ui container">
|
||||||
|
|
||||||
<p>Page generated by @VersionHelper.FullVersion.</p>
|
<p>@Model.Translate(BaseLayoutStrings.GeneratedModified, VersionHelper.FullVersion)</p>
|
||||||
@if (VersionHelper.IsDirty)
|
@if (VersionHelper.IsDirty)
|
||||||
{
|
{
|
||||||
<p>This page was generated using a modified version of Project Lighthouse. Please make sure you are properly disclosing the source code to any users who may be using this instance.</p>
|
<p>@Model.Translate(BaseLayoutStrings.GeneratedModified)</p>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue