Implement translation (1)

This commit is contained in:
HaHaWTH 2023-09-23 18:12:52 +08:00
parent 35aba2207b
commit 4bcc992b7f
2 changed files with 3 additions and 1 deletions

View File

@ -4,7 +4,8 @@ package fr.xephi.authme.message;
* Keys for translatable messages managed by {@link Messages}.
*/
public enum MessageKey {
/** Successfully verified! */
GUI_CAPTCHA_SUCCESS("3rdpartyfeature.gui_captcha.success"),
/** In order to use this command you must be authenticated! */
DENIED_COMMAND("error.denied_command"),

View File

@ -18,6 +18,7 @@ final class OldMessageKeysMigrater {
@VisibleForTesting
static final Map<MessageKey, String> KEYS_TO_OLD_PATH = ImmutableMap.<MessageKey, String>builder()
.put(MessageKey.GUI_CAPTCHA_SUCCESS, "gui_captcha_verified")
.put(MessageKey.LOGIN_SUCCESS, "login")
.put(MessageKey.ERROR, "error")
.put(MessageKey.DENIED_COMMAND, "denied_command")