Skip to content

Commit

Permalink
Updated translation modifier method
Browse files Browse the repository at this point in the history
  • Loading branch information
B3none committed Feb 17, 2024
1 parent f38ceba commit f25c44b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Modules/Translator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ public IEnumerable<LocalizedString> GetAllStrings(bool includeParentCultures)

private string Translate(string key, params object[] arguments)
{
var isCenter = key.StartsWith("center.");
key = key.Replace("center.", "");
var centerModifier = "center.";
var isCenter = key.StartsWith(centerModifier);
key = key.Substring(centerModifier.Length);

var localizedString = _stringLocalizerImplementation[key, arguments];

Expand Down
2 changes: 1 addition & 1 deletion RetakesPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace RetakesPlugin;
[MinimumApiVersion(154)]
public class RetakesPlugin : BasePlugin
{
private const string Version = "1.3.27";
private const string Version = "1.3.28";

#region Plugin info
public override string ModuleName => "Retakes Plugin";
Expand Down

0 comments on commit f25c44b

Please sign in to comment.