feat(i18n/favorite): translate item
This commit is contained in:
parent
c6f37579a0
commit
d8f183146b
6 changed files with 32 additions and 5 deletions
|
@ -47,7 +47,7 @@ public class FavoriteAddItem {
|
|||
);
|
||||
|
||||
final ItemBuilder builder = new ItemBuilder(banner);
|
||||
return playerLanguage.translateItem(builder, LanguageKey.GUI.Home.FAVORITES);
|
||||
return playerLanguage.translateItem(builder, LanguageKey.GUI.Favorites.ADD);
|
||||
}, click -> {
|
||||
final ClickType clickType = click.getClickType();
|
||||
if (clickType.isLeftClick() || clickType.isRightClick()) {
|
||||
|
|
|
@ -42,7 +42,7 @@ public class FavoriteRemoveItem {
|
|||
);
|
||||
|
||||
final ItemBuilder builder = new ItemBuilder(banner);
|
||||
return playerLanguage.translateItem(builder, LanguageKey.GUI.Home.FAVORITES);
|
||||
return playerLanguage.translateItem(builder, LanguageKey.GUI.Favorites.REMOVE);
|
||||
}, click -> {
|
||||
final ClickType clickType = click.getClickType();
|
||||
if (clickType.isLeftClick() || clickType.isRightClick()) {
|
||||
|
|
|
@ -9,7 +9,7 @@ public enum Language implements Serializable {
|
|||
FRENCH("fr", "Français"),
|
||||
CUSTOM("cm", "Server Custom");
|
||||
|
||||
public static final Version VERSION = new Version(1, 3, 1);
|
||||
public static final Version VERSION = new Version(1, 4, 0);
|
||||
|
||||
private final String code;
|
||||
private transient final String name;
|
||||
|
|
|
@ -142,5 +142,12 @@ public class LanguageKey {
|
|||
public static final String ENTRY = CACHE_KEY + "entry";
|
||||
}
|
||||
}
|
||||
|
||||
public static class Favorites {
|
||||
private static final String FAVORITES_KEY = GUI_KEY + "favorites.";
|
||||
|
||||
public static final String ADD = FAVORITES_KEY + "add";
|
||||
public static final String REMOVE = FAVORITES_KEY + "remove";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Nicko ${version} - Language File:
|
||||
|
||||
# Specifies the configuration version, don't change.
|
||||
version: "1.3.1"
|
||||
version: "1.4.0"
|
||||
|
||||
prefix: "<b><gradient:#01a97c:#8ffd54>NICKO</gradient></b>"
|
||||
whoosh: "<b><gradient:#01a97c:#8ffd54>WHOOSH!</gradient></b>"
|
||||
|
@ -149,6 +149,26 @@ gui:
|
|||
lore:
|
||||
- "{0} Disabled"
|
||||
- "{1} Enabled"
|
||||
cycling_choices:
|
||||
lore:
|
||||
- "<gray><i>Cycle through the values</i></gray>"
|
||||
- "<gray><i>by left or right clicking.</i></gray>"
|
||||
language:
|
||||
name: "Language"
|
||||
random_skin:
|
||||
name: "Random skin on login"
|
||||
favorites:
|
||||
add:
|
||||
name: "Add a favorite"
|
||||
lore:
|
||||
- "<grey>Add a new favorite appearance to the list.</grey>"
|
||||
- "<grey>Hold <gold><b>SHIFT</b></gold> to add your current disguise!</grey>"
|
||||
remove:
|
||||
name: "Toggle deletion mode"
|
||||
lore:
|
||||
- "<grey>Clicking on any disguise as this mode is</grey>"
|
||||
- "<grey>active will remove it from your favorites.</grey>"
|
||||
|
||||
cycling_choices:
|
||||
lore:
|
||||
- "<gray><i>Cycle through the values</i></gray>"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Nicko ${version} - Fichier de langue:
|
||||
|
||||
# Précise la version de la configuration, ne pas changer.
|
||||
version: "1.3.1"
|
||||
version: "1.4.0"
|
||||
|
||||
prefix: "<b><gradient:#01a97c:#8ffd54>NICKO</gradient></b>"
|
||||
whoosh: "<b><gradient:#01a97c:#8ffd54>WHOOSH!</gradient></b>"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue