Add localization for protected doc UI strings
Added "DocumentProtected", "Password", and "Open" entries to de-DE, en-US, and fr-FR resource files. Updated Index.cshtml to use localized strings for the page title, password label, placeholder, and submit button, replacing hardcoded German text. This improves multilingual support for the protected document access page.
This commit is contained in:
@@ -339,4 +339,13 @@
|
||||
<data name="Date" xml:space="preserve">
|
||||
<value>Datum</value>
|
||||
</data>
|
||||
<data name="DocumentProtected" xml:space="preserve">
|
||||
<value>Dokument geschützt</value>
|
||||
</data>
|
||||
<data name="Password" xml:space="preserve">
|
||||
<value>Passwort</value>
|
||||
</data>
|
||||
<data name="Open" xml:space="preserve">
|
||||
<value>Öffnen</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -339,4 +339,13 @@
|
||||
<data name="Date" xml:space="preserve">
|
||||
<value>Date</value>
|
||||
</data>
|
||||
<data name="DocumentProtected" xml:space="preserve">
|
||||
<value>Document protected</value>
|
||||
</data>
|
||||
<data name="Password" xml:space="preserve">
|
||||
<value>Password</value>
|
||||
</data>
|
||||
<data name="Open" xml:space="preserve">
|
||||
<value>Open</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -339,4 +339,13 @@
|
||||
<data name="Date" xml:space="preserve">
|
||||
<value>Date</value>
|
||||
</data>
|
||||
<data name="DocumentProtected" xml:space="preserve">
|
||||
<value>Document protégé</value>
|
||||
</data>
|
||||
<data name="Password" xml:space="preserve">
|
||||
<value>Mot de passe</value>
|
||||
</data>
|
||||
<data name="Open" xml:space="preserve">
|
||||
<value>Ouvrir</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -1,5 +1,5 @@
|
||||
@{
|
||||
ViewData["Title"] = "Dokument geschützt";
|
||||
ViewData["Title"] = @_localizer["DocumentProtected"];
|
||||
}
|
||||
|
||||
<div class="page container p-5">
|
||||
@@ -23,12 +23,12 @@
|
||||
<section>
|
||||
<form id="form-access-code" class="form" method="post">
|
||||
<div class="input">
|
||||
<label class="visually-hidden" for="access_code">Passwort</label>
|
||||
<input type="password" class="form-control" name="password" placeholder="Passwort" required="required">
|
||||
<label class="visually-hidden" for="access_code">@_localizer["Password"]</label>
|
||||
<input type="password" class="form-control" name="password" placeholder="@_localizer["Password"]" required="required">
|
||||
</div>
|
||||
|
||||
<div class="button">
|
||||
<button type="submit" class="btn btn-primary">Öffnen</button>
|
||||
<button type="submit" class="btn btn-primary">@_localizer["Open"]</button>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user