-
-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fixes language casing and adds localization reset command (#1703)
- Loading branch information
1 parent
1147a80
commit b5342a8
Showing
3 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace Server.Commands; | ||
|
||
public static class ResetLocalization | ||
{ | ||
public static void Configure() | ||
{ | ||
CommandSystem.Register("ResetLocalization", AccessLevel.Developer, ResetLocalization_OnCommand); | ||
} | ||
|
||
[Usage("ResetLocalization [<command>]")] | ||
[Aliases("ResetLoc")] | ||
[Description( | ||
"Clears the localization table. Cliloc will be reloaded the next time they are used for that language." | ||
)] | ||
private static void ResetLocalization_OnCommand(CommandEventArgs e) | ||
{ | ||
Localization.Clear(); | ||
e.Mobile.SendMessage("Localization table cleared."); | ||
} | ||
} |
Binary file not shown.