mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-04-30 16:28:22 +00:00
Translate login and logout pages
This commit is contained in:
parent
1e9f672d6c
commit
443b285253
9 changed files with 132 additions and 13 deletions
|
@ -26,9 +26,19 @@ public static class LocalizationManager
|
|||
// e.g. BaseLayout.resx as opposed to BaseLayout.lang-da-DK.resx.
|
||||
if (language != DefaultLang) resourceBasename += $".lang-{language}";
|
||||
|
||||
ResourceManager resourceManager = new(resourceBasename, Assembly.GetExecutingAssembly());
|
||||
string? localizedString = null;
|
||||
try
|
||||
{
|
||||
ResourceManager resourceManager = new(resourceBasename,
|
||||
Assembly.GetExecutingAssembly());
|
||||
|
||||
string? localizedString = resourceManager.GetString(key);
|
||||
localizedString = resourceManager.GetString(key);
|
||||
}
|
||||
catch
|
||||
{
|
||||
// ignored
|
||||
}
|
||||
|
||||
if (localizedString == null)
|
||||
{
|
||||
#if DEBUG
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue