Skip to content

Commit 9894dbd

Browse files
committed
Use localized string under default language for announce text
1 parent 3da6bc2 commit 9894dbd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ProjectLighthouse.Servers.GameServer/Controllers/MessageController.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using LBPUnion.ProjectLighthouse.Database;
44
using LBPUnion.ProjectLighthouse.Extensions;
55
using LBPUnion.ProjectLighthouse.Helpers;
6+
using LBPUnion.ProjectLighthouse.Localization;
67
using LBPUnion.ProjectLighthouse.Logging;
78
using LBPUnion.ProjectLighthouse.Serialization;
89
using LBPUnion.ProjectLighthouse.Types.Entities.Notifications;
@@ -61,9 +62,10 @@ public async Task<IActionResult> Announce()
6162

6263
if (ServerConfiguration.Instance.UserGeneratedContentLimits.ReadOnlyMode)
6364
{
64-
announceText.Insert(0, "This instance is currently in read-only mode. Level and photo uploads, comments, " +
65-
"reviews, and certain profile changes will be restricted until read-only mode is " +
66-
"disabled.");
65+
announceText.Insert(0,
66+
LocalizationManager.GetLocalizedString(TranslationAreas.BaseLayout,
67+
LocalizationManager.DefaultLang,
68+
"read_only_warn"));
6769
}
6870

6971
#if DEBUG

0 commit comments

Comments
 (0)