Skip to content

Commit

Permalink
Obsolete some static localization methods (#5460)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectroJr authored Sep 23, 2024
1 parent abb3f65 commit b84917e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Robust.Shared/Localization/Loc.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using JetBrains.Annotations;
using Robust.Shared.ContentPack;
using Robust.Shared.IoC;

namespace Robust.Shared.Localization
Expand Down Expand Up @@ -36,6 +34,7 @@ public static string GetString(string messageId)
return LocalizationManager.GetString(messageId);
}

[Obsolete("Use ILocalizationManager")]
public static bool TryGetString(string messageId, [NotNullWhen(true)] out string? message)
{
return LocalizationManager.TryGetString(messageId, out message);
Expand All @@ -49,6 +48,7 @@ public static string GetString(string messageId, params (string,object)[] args)
return LocalizationManager.GetString(messageId, args);
}

[Obsolete("Use ILocalizationManager")]
public static bool TryGetString(
string messageId,
[NotNullWhen(true)] out string? value,
Expand Down

0 comments on commit b84917e

Please sign in to comment.