mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-03 17:38:22 +00:00
Add landing page strings
This commit is contained in:
parent
9c27c378f7
commit
197aab1ba3
5 changed files with 80 additions and 1 deletions
56
ProjectLighthouse.Localization/LandingPage.resx
Normal file
56
ProjectLighthouse.Localization/LandingPage.resx
Normal file
|
@ -0,0 +1,56 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<root>
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>1.3</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral,
|
||||
PublicKeyToken=b77a5c561934e089
|
||||
</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral,
|
||||
PublicKeyToken=b77a5c561934e089
|
||||
</value>
|
||||
</resheader>
|
||||
|
||||
<data name="welcome" xml:space="preserve">
|
||||
<value>Welcome to Project Lighthouse!</value>
|
||||
<comment>A greeting on the main page of the website.</comment>
|
||||
</data>
|
||||
|
||||
<data name="loggedInAs" xml:space="preserve">
|
||||
<value>You are currently logged in as {0}.</value>
|
||||
<comment>A greeting on the main page of the website.</comment>
|
||||
</data>
|
||||
|
||||
<data name="users_none" xml:space="preserve">
|
||||
<value>There are no users online. Why not hop on?</value>
|
||||
<comment>A greeting on the main page of the website.</comment>
|
||||
</data>
|
||||
|
||||
<data name="users_single" xml:space="preserve">
|
||||
<value>There is 1 user currently online:</value>
|
||||
<comment>A greeting on the main page of the website.</comment>
|
||||
</data>
|
||||
|
||||
<data name="users_multiple" xml:space="preserve">
|
||||
<value>There are currently {0} users online:</value>
|
||||
<comment>A greeting on the main page of the website.</comment>
|
||||
</data>
|
||||
|
||||
<data name="authAttemptsPending" xml:space="preserve">
|
||||
<value>You have {0} authentication attempts pending. Click here to view them.</value>
|
||||
<comment>A greeting on the main page of the website.</comment>
|
||||
</data>
|
||||
</root>
|
|
@ -8,4 +8,11 @@
|
|||
<OutputType>Exe</OutputType>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Update="LandingPage.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>LandingPage.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
namespace LBPUnion.ProjectLighthouse.Localization.StringLists;
|
||||
|
||||
public static class LandingPageStrings
|
||||
{
|
||||
public static readonly TranslatableString Welcome = create("welcome");
|
||||
public static readonly TranslatableString LoggedInAs = create("loggedInAs");
|
||||
|
||||
public static readonly TranslatableString UsersNone = create("users_none");
|
||||
public static readonly TranslatableString UsersSingle = create("users_single");
|
||||
public static readonly TranslatableString UsersMultiple = create("users_multiple");
|
||||
|
||||
public static readonly TranslatableString AuthAttemptsPending = create("authAttemptsPending");
|
||||
|
||||
private static TranslatableString create(string key) => new(TranslationAreas.BaseLayout, key);
|
||||
}
|
|
@ -3,4 +3,5 @@ namespace LBPUnion.ProjectLighthouse.Localization;
|
|||
public enum TranslationAreas
|
||||
{
|
||||
BaseLayout,
|
||||
LandingPage,
|
||||
}
|
|
@ -7,7 +7,7 @@
|
|||
Layout = "Layouts/BaseLayout";
|
||||
Model.ShowTitleInPage = false;
|
||||
}
|
||||
<h1>Welcome to <b>Project Lighthouse</b>!</h1>
|
||||
<h1>Welcome to Project Lighthouse!</h1>
|
||||
|
||||
@if (Model.User != null)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue