mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-04 09:58:22 +00:00
Add notice about usernames in register form
This commit is contained in:
parent
fdf1988a34
commit
98a444499e
5 changed files with 40 additions and 0 deletions
|
@ -24,6 +24,10 @@
|
||||||
<Generator>ResXFileCodeGenerator</Generator>
|
<Generator>ResXFileCodeGenerator</Generator>
|
||||||
<LastGenOutput>Status.Designer.cs</LastGenOutput>
|
<LastGenOutput>Status.Designer.cs</LastGenOutput>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Update="Register.resx">
|
||||||
|
<Generator>ResXFileCodeGenerator</Generator>
|
||||||
|
<LastGenOutput>Register.Designer.cs</LastGenOutput>
|
||||||
|
</EmbeddedResource>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
24
ProjectLighthouse.Localization/Register.resx
Normal file
24
ProjectLighthouse.Localization/Register.resx
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
<?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="username_notice" xml:space="preserve">
|
||||||
|
<value>Caution: Your username MUST match your PSN/RPCN username in order to be able to sign in from in-game.</value>
|
||||||
|
</data>
|
||||||
|
</root>
|
|
@ -0,0 +1,8 @@
|
||||||
|
namespace LBPUnion.ProjectLighthouse.Localization.StringLists;
|
||||||
|
|
||||||
|
public static class RegisterStrings
|
||||||
|
{
|
||||||
|
public static readonly TranslatableString UsernameNotice = create("username_notice");
|
||||||
|
|
||||||
|
private static TranslatableString create(string key) => new(TranslationAreas.Register, key);
|
||||||
|
}
|
|
@ -7,4 +7,5 @@ public enum TranslationAreas
|
||||||
General,
|
General,
|
||||||
LoggedOut,
|
LoggedOut,
|
||||||
Status,
|
Status,
|
||||||
|
Register,
|
||||||
}
|
}
|
|
@ -1,5 +1,6 @@
|
||||||
@page "/register"
|
@page "/register"
|
||||||
@using LBPUnion.ProjectLighthouse.Configuration
|
@using LBPUnion.ProjectLighthouse.Configuration
|
||||||
|
@using LBPUnion.ProjectLighthouse.Localization.StringLists
|
||||||
@model LBPUnion.ProjectLighthouse.Servers.Website.Pages.RegisterForm
|
@model LBPUnion.ProjectLighthouse.Servers.Website.Pages.RegisterForm
|
||||||
|
|
||||||
@{
|
@{
|
||||||
|
@ -32,6 +33,8 @@
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
<p><b>@Model.Translate(RegisterStrings.UsernameNotice)</b></p>
|
||||||
|
|
||||||
<form class="ui form" onsubmit="return onSubmit(this)" method="post">
|
<form class="ui form" onsubmit="return onSubmit(this)" method="post">
|
||||||
@Html.AntiForgeryToken()
|
@Html.AntiForgeryToken()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue