Skip to content

Commit

Permalink
Added traducction in spanish and english for patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
Sregio03 committed Nov 24, 2022
1 parent 700b8c6 commit dc51acb
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Metallics Arts 1.19.2-1.3.5
# Metallics Arts 1.19.2-1.3.6


## Index 📋
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}


version = '1.19.2-1.3.5'
version = '1.19.2-1.3.6'

group = 'net.rudahee.metallics_arts' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = 'metallics_arts'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,20 @@ public class ModLanguageProviderEN extends LanguageProvider {
put("a_" + metal.getNameLower() + "_2", "Allomantical " + metal.getNameLower() + " solid");
}
}};

private Map<String, String> patterns = new HashMap<>(){{

for (MetalsNBTData metal : MetalsNBTData.values()) {

put("item.metallics_arts.f_"+metal.getNameLower()+"_pattern", "Feruchemical " + metal.getNameLower() + " pattern");
put("item.metallics_arts.f_"+metal.getNameLower()+"_pattern.desc", "Feruchemical " + metal.getNameLower() + " pattern");
put("item.metallics_arts.a_"+metal.getNameLower()+"_pattern", "Allomantic " + metal.getNameLower() + " pattern");
put("item.metallics_arts.a_"+metal.getNameLower()+"_pattern.desc", "Allomantic " + metal.getNameLower() + " pattern");

}

}};

private Map<String, String> colors = new HashMap<>() {{
put("white", "blanco");
put("orange", "naranja");
Expand Down Expand Up @@ -372,6 +386,10 @@ protected void addTranslations() {
add(key, base.get(key));
}

for(String key: patterns.keySet()){
add(key, patterns.get(key));
}

for (String keySymbol : symbols.keySet()) {
for (String keyColor : colors.keySet()) {
add("block.minecraft.banner.metallics_arts." + keySymbol + "." + keyColor, symbols.get(keySymbol) + " " + keyColor);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,16 @@ public class ModLanguageProviderES extends LanguageProvider {
put("a_"+metal.getNameLower()+"_2", MetalSpanish.valueOf(metal.name()).getMetalName() + " alomantico solido");
}
}};

private Map<String, String> patterns = new HashMap<>() {{
for (MetalsNBTData metal: MetalsNBTData.values()) {
put("item.metallics_arts.f_"+metal.getNameLower()+"_pattern","Patrón ferruquimico de " + MetalSpanish.valueOf(metal.name()).getMetalName());
put("item.metallics_arts.f_"+metal.getNameLower()+"_pattern.desc", "Patrón ferruquimico de " + MetalSpanish.valueOf(metal.name()).getMetalName());
put("item.metallics_arts.a_"+metal.getNameLower()+"_pattern", "Patrón alomántico de " + MetalSpanish.valueOf(metal.name()).getMetalName());
put("item.metallics_arts.a_"+metal.getNameLower()+"_pattern.desc", "Patrón alomántico de " + MetalSpanish.valueOf(metal.name()).getMetalName());
}
}};

private Map<String, String> colors = new HashMap<>() {{
put("white", "blanco");
put("orange", "naranja");
Expand Down Expand Up @@ -369,6 +379,10 @@ protected void addTranslations() {
add(key, base.get(key));
}

for(String key: patterns.keySet()){
add(key, patterns.get(key));
}

for (String keySymbol : symbols.keySet()) {
for (String keyColor : colors.keySet()) {
add("block.minecraft.banner.metallics_arts." + keySymbol + "." + keyColor, symbols.get(keySymbol) + " " + colors.get(keyColor));
Expand Down

0 comments on commit dc51acb

Please sign in to comment.