Skip to content

Commit ad401d0

Browse files
committed
feat(i18n): register item translations + de/fr/es items.yml
1 parent 55fb0d5 commit ad401d0

5 files changed

Lines changed: 143 additions & 1 deletion

File tree

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ dependencies {
3333
implementation("com.github.Slimefun5:SlimefunMetrics:master-SNAPSHOT")
3434
compileOnly("org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT")
3535
compileOnly("com.google.code.findbugs:jsr305:3.0.2")
36-
githubCompileOnly("Slimefun5:Slimefun5:gh-v5.2.3.1")
36+
githubCompileOnly("Slimefun5:Slimefun5:gh-v5.2.3.2")
3737
compileOnly("com.gmail.nossr50.mcMMO:mcMMO:2.1.149") {
3838
exclude(group = "org.jetbrains", module = "annotations")
3939
exclude(group = "com.sk89q.worldguard")

src/main/java/io/ncbpfluffybear/fluffymachines/FluffyMachines.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import io.github.thebusybiscuit.slimefun5.api.SlimefunAddon;
44
import io.github.thebusybiscuit.slimefun5.api.player.PlayerProfile;
5+
import io.github.thebusybiscuit.slimefun5.implementation.Slimefun;
56
import io.github.thebusybiscuit.slimefun5.libraries.dough.collections.Pair;
67
import io.github.thebusybiscuit.slimefun5.libraries.dough.config.Config;
78
import io.ncbpfluffybear.fluffymachines.listeners.KeyedCrafterListener;
@@ -100,6 +101,9 @@ public void onEnable() {
100101
FluffyItemSetup.setup(this);
101102
FluffyItemSetup.setupBarrels(this);
102103

104+
// Contribute this addon's per-language item translations (languages/<lang>/items.yml).
105+
Slimefun.getItemTranslationService().registerTranslations(this);
106+
103107
// Register Events Class
104108
getServer().getPluginManager().registerEvents(new Events(), this);
105109
getServer().getPluginManager().registerEvents(new KeyedCrafterListener(), this);
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# German item translations for FluffyMachines. Keyed by Slimefun item id.
2+
# name = display name, lore = list of lines, '&' colour codes. Missing items fall back to English.
3+
4+
AUTO_CRAFTING_TABLE:
5+
name: "&6Automatischer Werktisch"
6+
lore:
7+
- "&7Stellt automatisch &fVanilla-&7Rezepte her"
8+
9+
AUTO_ANCIENT_ALTAR:
10+
name: "&5Automatischer Alter Altar"
11+
lore:
12+
- "&7Stellt automatisch &5Alter-Altar-&7Rezepte her"
13+
14+
AUTO_TABLE_SAW:
15+
name: "&6Automatische Tischsäge"
16+
lore:
17+
- "&7Stellt automatisch &6Tischsägen-&7Rezepte her"
18+
19+
GENERATOR_CORE:
20+
name: "&7Generatorkern"
21+
lore:
22+
- "&7Multiblock-Komponente von Generatoren"
23+
24+
FOUNDRY:
25+
name: "&cGießerei"
26+
lore:
27+
- "&eSchmilzt und lagert Staub und Barren"
28+
- "&7Lagert 138.240 Staub (40 Doppeltruhen)"
29+
30+
SCYTHE:
31+
name: "&eSense"
32+
lore:
33+
- "&7Erntet 5 Feldfrüchte auf einmal"
34+
35+
UPGRADED_LUMBER_AXE:
36+
name: "&6&lVerbesserte Holzfälleraxt"
37+
lore:
38+
- "&7Fällt einen ganzen Baum auf einmal"
39+
- "&72 Blöcke Reichweite und funktioniert auch bei diagonalen Blöcken"
40+
41+
WARP_PAD:
42+
name: "&6Warp-Plattform"
43+
lore:
44+
- "&eGehe in die Hocke &7auf diesem Block, um zur"
45+
- "&7verknüpften Ziel-Plattform zu teleportieren"
46+
- "&7Nutze einen Warp-Plattform-Konfigurator, um Plattformen zu verknüpfen"
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Spanish item translations for FluffyMachines. Keyed by Slimefun item id.
2+
# name = display name, lore = list of lines, '&' colour codes. Missing items fall back to English.
3+
4+
AUTO_CRAFTING_TABLE:
5+
name: "&6Mesa de Fabricacion Automatica"
6+
lore:
7+
- "&7Fabrica automaticamente recetas &fvanilla"
8+
9+
AUTO_ANCIENT_ALTAR:
10+
name: "&5Altar Antiguo Automatico"
11+
lore:
12+
- "&7Fabrica automaticamente recetas del &5Altar Antiguo"
13+
14+
AUTO_TABLE_SAW:
15+
name: "&6Sierra de Mesa Automatica"
16+
lore:
17+
- "&7Fabrica automaticamente recetas de la &6Sierra de Mesa"
18+
19+
GENERATOR_CORE:
20+
name: "&7Nucleo de Generador"
21+
lore:
22+
- "&7Componente multibloque de los generadores"
23+
24+
FOUNDRY:
25+
name: "&cFundicion"
26+
lore:
27+
- "&eDerrite y almacena polvos y lingotes"
28+
- "&7Almacena 138.240 de polvo (40 cofres dobles)"
29+
30+
SCYTHE:
31+
name: "&eGuadana"
32+
lore:
33+
- "&7Cosecha 5 cultivos a la vez"
34+
35+
UPGRADED_LUMBER_AXE:
36+
name: "&6&lHacha de Lenador Mejorada"
37+
lore:
38+
- "&7Tala un arbol entero de una vez"
39+
- "&7Alcance de 2 bloques y funciona tambien en diagonal"
40+
41+
WARP_PAD:
42+
name: "&6Plataforma de Teletransporte"
43+
lore:
44+
- "&eAgachate &7sobre este bloque para teletransportarte"
45+
- "&7a la plataforma de destino vinculada"
46+
- "&7Usa un Configurador de Plataforma para vincularlas"
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# French item translations for FluffyMachines. Keyed by Slimefun item id.
2+
# name = display name, lore = list of lines, '&' colour codes. Missing items fall back to English.
3+
4+
AUTO_CRAFTING_TABLE:
5+
name: "&6Table de Fabrication Automatique"
6+
lore:
7+
- "&7Fabrique automatiquement les recettes &fvanilla"
8+
9+
AUTO_ANCIENT_ALTAR:
10+
name: "&5Autel Ancien Automatique"
11+
lore:
12+
- "&7Fabrique automatiquement les recettes de l'&5Autel Ancien"
13+
14+
AUTO_TABLE_SAW:
15+
name: "&6Scie sur Table Automatique"
16+
lore:
17+
- "&7Fabrique automatiquement les recettes de la &6Scie sur Table"
18+
19+
GENERATOR_CORE:
20+
name: "&7Noyau de Generateur"
21+
lore:
22+
- "&7Composant multibloc des generateurs"
23+
24+
FOUNDRY:
25+
name: "&cFonderie"
26+
lore:
27+
- "&eFait fondre et stocke poussieres et lingots"
28+
- "&7Stocke 138 240 poussieres (40 doubles coffres)"
29+
30+
SCYTHE:
31+
name: "&eFaux"
32+
lore:
33+
- "&7Recolte 5 cultures a la fois"
34+
35+
UPGRADED_LUMBER_AXE:
36+
name: "&6&lHache de Bucheron Amelioree"
37+
lore:
38+
- "&7Abat un arbre entier d'un seul coup"
39+
- "&7Portee de 2 blocs et fonctionne aussi en diagonale"
40+
41+
WARP_PAD:
42+
name: "&6Plateforme de Teleportation"
43+
lore:
44+
- "&eAccroupissez-vous &7sur ce bloc pour vous teleporter"
45+
- "&7vers la plateforme de destination liee"
46+
- "&7Utilisez un Configurateur de Plateforme pour les lier"

0 commit comments

Comments
 (0)