ProjectLighthouse/ProjectLighthouse.Localization/StringLists/BaseLayoutStrings.cs
sudokoko 0ee8970c64
Implement read-only mode (#1001)
* Implement read-only mode

* Use localized string under default language for announce text

* Redirect to user page rather than returning blank 400

* Protect call to `ParseBase64Image`

* Add protections to SlotSettingsPage and nitpick format

* Display the latest announcement (if any) on the landing page

* Fix a kokoism

Accidentally tried to use markdown within the landing page... I'm rather smart aren't I

* Prevent possible XSS

* Separate truncated announcement text and link with "..."

* Apply suggestion from code review

* Add read-only check to /postComment in slot page controller

* Fix inconsistent tabbing
2024-03-30 02:51:12 +00:00

30 lines
No EOL
1.9 KiB
C#

namespace LBPUnion.ProjectLighthouse.Localization.StringLists;
public static class BaseLayoutStrings
{
public static readonly TranslatableString HeaderUsers = create("header_users");
public static readonly TranslatableString HeaderPhotos = create("header_photos");
public static readonly TranslatableString HeaderSlots = create("header_slots");
public static readonly TranslatableString HeaderAuthentication = create("header_authentication");
public static readonly TranslatableString HeaderLogin = create("header_login");
public static readonly TranslatableString HeaderLoginRegister = create("header_loginRegister");
public static readonly TranslatableString HeaderAdminPanel = create("header_adminPanel");
public static readonly TranslatableString HeaderModPanel = create("header_modPanel");
public static readonly TranslatableString HeaderLogout = create("header_logout");
public static readonly TranslatableString GeneratedBy = create("generated_by");
public static readonly TranslatableString GeneratedModified = create("generated_modified");
public static readonly TranslatableString JavaScriptWarnTitle = create("js_warn_title");
public static readonly TranslatableString JavaScriptWarn = create("js_warn");
public static readonly TranslatableString LicenseWarnTitle = create("license_warn_title");
public static readonly TranslatableString LicenseWarn1 = create("license_warn_1");
public static readonly TranslatableString LicenseWarn2 = create("license_warn_2");
public static readonly TranslatableString LicenseWarn3 = create("license_warn_3");
public static readonly TranslatableString ReadOnlyWarnTitle = create("read_only_warn_title");
public static readonly TranslatableString ReadOnlyWarn = create("read_only_warn");
private static TranslatableString create(string key) => new(TranslationAreas.BaseLayout, key);
}