Skip to content

Commit

Permalink
internal: finish moving to generated en_us language files
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTJP committed May 13, 2023
1 parent d2e6c98 commit 43b14bb
Show file tree
Hide file tree
Showing 5 changed files with 154 additions and 162 deletions.
160 changes: 0 additions & 160 deletions src/core/resources/assets/projectred-core/lang/en_us.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
"block.projectred-expansion.fire_starter": "Fire Starter",
"block.projectred-expansion.project_bench": "Project Bench",
"item.projectred-expansion.battery": "Battery",
"item.projectred-expansion.electric_screwdriver": "Electric Screwdriver",
"item.projectred-expansion.empty_battery": "Empty Battery",
"item.projectred-expansion.recipe_plan": "Recipe Plan",
"itemGroup.projectred-expansion": "Project Red: Expansion",
"projectred-expansion.tooltip.charge_level": "Stored power",
"projectred-expansion.tooltip.plan_result": "Result"
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ public String getName() {

@Override
protected void addTranslations() {

// Creative tab
add("itemGroup." + MOD_ID, "Project Red: Expansion");

add(PROJECT_BENCH_BLOCK, "Project Bench");
add(BATTERY_BOX_BLOCK, "Battery Box");
add(AUTO_CRAFTER_BLOCK, "Auto Crafter");
Expand All @@ -30,7 +34,9 @@ protected void addTranslations() {
add(RECIPE_PLAN_ITEM, "Recipe Plan");
add(EMPTY_BATTERY_ITEM, "Empty Battery");
add(BATTERY_ITEM, "Battery");
add(ELECTRIC_SCREWDRIVER_ITEM, "Electric Screwdriver");

// Strings
add(UL_STORED_POWER_TOOLTIP, "Stored power");
add(UL_PLAN_RESULT, "Result");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,63 @@
"block.projectred-exploration.silver_ore": "Silver Ore",
"block.projectred-exploration.tin_block": "Tin Block",
"block.projectred-exploration.tin_block_wall": "Tin Wall",
"block.projectred-exploration.tin_ore": "Tin Ore"
"block.projectred-exploration.tin_ore": "Tin Ore",
"item.projectred-exploration.athame": "Athame",
"item.projectred-exploration.black_backpack": "Black Backpack",
"item.projectred-exploration.blue_backpack": "Blue Backpack",
"item.projectred-exploration.brown_backpack": "Brown Backpack",
"item.projectred-exploration.cyan_backpack": "Cyan Backpack",
"item.projectred-exploration.diamond_sickle": "Diamond Sickle",
"item.projectred-exploration.gold_saw": "Gold Saw",
"item.projectred-exploration.gold_sickle": "Gold Sickle",
"item.projectred-exploration.gray_backpack": "Gray Backpack",
"item.projectred-exploration.green_backpack": "Green Backpack",
"item.projectred-exploration.iron_sickle": "Iron Sickle",
"item.projectred-exploration.light_blue_backpack": "Light Blue Backpack",
"item.projectred-exploration.light_gray_backpack": "Light Gray Backpack",
"item.projectred-exploration.lime_backpack": "Lime Backpack",
"item.projectred-exploration.magenta_backpack": "Magenta Backpack",
"item.projectred-exploration.orange_backpack": "Orange Backpack",
"item.projectred-exploration.peridot_axe": "Peridot Axe",
"item.projectred-exploration.peridot_boots": "Peridot Boots",
"item.projectred-exploration.peridot_chestplate": "Peridot Chestplate",
"item.projectred-exploration.peridot_helmet": "Peridot Helmet",
"item.projectred-exploration.peridot_hoe": "Peridot Hoe",
"item.projectred-exploration.peridot_leggings": "Peridot Leggings",
"item.projectred-exploration.peridot_pickaxe": "Peridot Pickaxe",
"item.projectred-exploration.peridot_saw": "Peridot Saw",
"item.projectred-exploration.peridot_shovel": "Peridot Shovel",
"item.projectred-exploration.peridot_sickle": "Peridot Sickle",
"item.projectred-exploration.peridot_sword": "Peridot Sword",
"item.projectred-exploration.pink_backpack": "Pink Backpack",
"item.projectred-exploration.purple_backpack": "Purple Backpack",
"item.projectred-exploration.red_backpack": "Red Backpack",
"item.projectred-exploration.ruby_axe": "Ruby Axe",
"item.projectred-exploration.ruby_boots": "Ruby Boots",
"item.projectred-exploration.ruby_chestplate": "Ruby Chestplate",
"item.projectred-exploration.ruby_helmet": "Ruby Helmet",
"item.projectred-exploration.ruby_hoe": "Ruby Hoe",
"item.projectred-exploration.ruby_leggings": "Ruby Leggings",
"item.projectred-exploration.ruby_pickaxe": "Ruby Pickaxe",
"item.projectred-exploration.ruby_saw": "Ruby Saw",
"item.projectred-exploration.ruby_shovel": "Ruby Shovel",
"item.projectred-exploration.ruby_sickle": "Ruby Sickle",
"item.projectred-exploration.ruby_sword": "Ruby Sword",
"item.projectred-exploration.sapphire_axe": "Sapphire Axe",
"item.projectred-exploration.sapphire_boots": "Sapphire Boots",
"item.projectred-exploration.sapphire_chestplate": "Sapphire Chestplate",
"item.projectred-exploration.sapphire_helmet": "Sapphire Helmet",
"item.projectred-exploration.sapphire_hoe": "Sapphire Hoe",
"item.projectred-exploration.sapphire_leggings": "Sapphire Leggings",
"item.projectred-exploration.sapphire_pickaxe": "Sapphire Pickaxe",
"item.projectred-exploration.sapphire_saw": "Sapphire Saw",
"item.projectred-exploration.sapphire_shovel": "Sapphire Shovel",
"item.projectred-exploration.sapphire_sickle": "Sapphire Sickle",
"item.projectred-exploration.sapphire_sword": "Sapphire Sword",
"item.projectred-exploration.stone_sickle": "Stone Sickle",
"item.projectred-exploration.white_backpack": "White Backpack",
"item.projectred-exploration.wood_sickle": "Wood Sickle",
"item.projectred-exploration.wool_gin": "Wool Gin",
"item.projectred-exploration.yellow_backpack": "Yellow Backpack",
"itemGroup.projectred-exploration": "Project Red: Exploration"
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@ public ExplorationLanguageProvider(DataGenerator gen) {

@Override
public String getName() {
return "ProjectRed-Exploration Language Provider";
return "ProjectRed-Exploration Language Provider: en_us";
}

@Override
protected void addTranslations() {

// Creative tab
add("itemGroup." + MOD_ID, "Project Red: Exploration");

// Ores
add(RUBY_ORE_BLOCK, "Ruby Ore");
add(SAPPHIRE_ORE_BLOCK, "Sapphire Ore");
Expand Down Expand Up @@ -56,5 +59,88 @@ protected void addTranslations() {
add(TIN_BLOCK_WALL, "Tin Wall");
add(SILVER_BLOCK_WALL, "Silver Wall");
add(ELECTROTINE_BLOCK_WALL, "Electrotine Wall");

// Items
add(WOOL_GIN, "Wool Gin");
add(ATHAME, "Athame");

// Axes
add(RUBY_AXE, "Ruby Axe");
add(SAPPHIRE_AXE, "Sapphire Axe");
add(PERIDOT_AXE, "Peridot Axe");

// Pickaxes
add(RUBY_PICKAXE, "Ruby Pickaxe");
add(SAPPHIRE_PICKAXE, "Sapphire Pickaxe");
add(PERIDOT_PICKAXE, "Peridot Pickaxe");

// Shovels
add(RUBY_SHOVEL, "Ruby Shovel");
add(SAPPHIRE_SHOVEL, "Sapphire Shovel");
add(PERIDOT_SHOVEL, "Peridot Shovel");

// Hoes
add(RUBY_HOE, "Ruby Hoe");
add(SAPPHIRE_HOE, "Sapphire Hoe");
add(PERIDOT_HOE, "Peridot Hoe");

// Swords
add(RUBY_SWORD, "Ruby Sword");
add(SAPPHIRE_SWORD, "Sapphire Sword");
add(PERIDOT_SWORD, "Peridot Sword");

// Helmets
add(RUBY_HELMET, "Ruby Helmet");
add(SAPPHIRE_HELMET, "Sapphire Helmet");
add(PERIDOT_HELMET, "Peridot Helmet");

// Chestplates
add(RUBY_CHESTPLATE, "Ruby Chestplate");
add(SAPPHIRE_CHESTPLATE, "Sapphire Chestplate");
add(PERIDOT_CHESTPLATE, "Peridot Chestplate");

// Leggings
add(RUBY_LEGGINGS, "Ruby Leggings");
add(SAPPHIRE_LEGGINGS, "Sapphire Leggings");
add(PERIDOT_LEGGINGS, "Peridot Leggings");

// Boots
add(RUBY_BOOTS, "Ruby Boots");
add(SAPPHIRE_BOOTS, "Sapphire Boots");
add(PERIDOT_BOOTS, "Peridot Boots");

// Saws
add(GOLD_SAW, "Gold Saw");
add(RUBY_SAW, "Ruby Saw");
add(SAPPHIRE_SAW, "Sapphire Saw");
add(PERIDOT_SAW, "Peridot Saw");

// Sickles
add(WOOD_SICKLE, "Wood Sickle");
add(STONE_SICKLE, "Stone Sickle");
add(IRON_SICKLE, "Iron Sickle");
add(GOLD_SICKLE, "Gold Sickle");
add(DIAMOND_SICKLE, "Diamond Sickle");
add(RUBY_SICKLE, "Ruby Sickle");
add(SAPPHIRE_SICKLE, "Sapphire Sickle");
add(PERIDOT_SICKLE, "Peridot Sickle");

// Backpacks
add(WHITE_BACKPACK, "White Backpack");
add(ORANGE_BACKPACK, "Orange Backpack");
add(MAGENTA_BACKPACK, "Magenta Backpack");
add(LIGHT_BLUE_BACKPACK, "Light Blue Backpack");
add(YELLOW_BACKPACK, "Yellow Backpack");
add(LIME_BACKPACK, "Lime Backpack");
add(PINK_BACKPACK, "Pink Backpack");
add(GRAY_BACKPACK, "Gray Backpack");
add(LIGHT_GRAY_BACKPACK, "Light Gray Backpack");
add(CYAN_BACKPACK, "Cyan Backpack");
add(PURPLE_BACKPACK, "Purple Backpack");
add(BLUE_BACKPACK, "Blue Backpack");
add(BROWN_BACKPACK, "Brown Backpack");
add(GREEN_BACKPACK, "Green Backpack");
add(RED_BACKPACK, "Red Backpack");
add(BLACK_BACKPACK, "Black Backpack");
}
}

0 comments on commit 43b14bb

Please sign in to comment.