更新 Modrinth 翻译 (#2929)

* update

* update

* update

* update

* update

* update
This commit is contained in:
Glavo
2024-03-15 12:24:43 +08:00
committed by GitHub
parent 4a16fa13ee
commit 806ca3f64a
5 changed files with 69 additions and 3 deletions

View File

@@ -67,9 +67,9 @@ public class ResourcePackDownloadListPage extends DownloadListPage {
@Override @Override
protected String getLocalizedCategory(String category) { protected String getLocalizedCategory(String category) {
if ("mods.modrinth".equals(downloadSource.get())) { if ("mods.modrinth".equals(downloadSource.get())) {
return i18n("modrinth.category." + category); return i18n("modrinth.category." + category, category);
} else { } else {
return i18n("curse.category." + category); return i18n("curse.category." + category, category);
} }
} }

View File

@@ -60,11 +60,15 @@ public final class I18n {
} }
public static String i18n(String key) { public static String i18n(String key) {
return i18n(key, key);
}
public static String i18n(String key, String defaultValue) {
try { try {
return getResourceBundle().getString(key); return getResourceBundle().getString(key);
} catch (MissingResourceException e) { } catch (MissingResourceException e) {
LOG.log(Level.SEVERE, "Cannot find key " + key + " in resource bundle", e); LOG.log(Level.SEVERE, "Cannot find key " + key + " in resource bundle", e);
return key; return defaultValue;
} }
} }

View File

@@ -827,26 +827,39 @@ Keep in mind that you are not allowed to add mods and resource packs that are ex
modpack.wizard.step.initialization.server=Click here for more tutorials for making a server modpack that can be automatically updated. modpack.wizard.step.initialization.server=Click here for more tutorials for making a server modpack that can be automatically updated.
modrinth.category.adventure=Adventure modrinth.category.adventure=Adventure
modrinth.category.audio=Audio
modrinth.category.blocks=Blocks
modrinth.category.bukkit=Bukkit modrinth.category.bukkit=Bukkit
modrinth.category.bungeecord=BungeeCord modrinth.category.bungeecord=BungeeCord
modrinth.category.challenging=Challenging modrinth.category.challenging=Challenging
modrinth.category.core-shaders=Core Shaders
modrinth.category.combat=Combat modrinth.category.combat=Combat
modrinth.category.cursed=Cursed modrinth.category.cursed=Cursed
modrinth.category.decoration=Decoration modrinth.category.decoration=Decoration
modrinth.category.economy=Economy modrinth.category.economy=Economy
modrinth.category.entities=Entities
modrinth.category.environment=Environment
modrinth.category.equipment=Equipment modrinth.category.equipment=Equipment
modrinth.category.fabric=Fabric modrinth.category.fabric=Fabric
modrinth.category.fonts=Fonts
modrinth.category.food=Food modrinth.category.food=Food
modrinth.category.forge=Forge modrinth.category.forge=Forge
modrinth.category.game-mechanics=Game Mechanics modrinth.category.game-mechanics=Game Mechanics
modrinth.category.gui=GUI
modrinth.category.items=Items
modrinth.category.kitchen-sink=Kitchen-Sink modrinth.category.kitchen-sink=Kitchen-Sink
modrinth.category.library=Library modrinth.category.library=Library
modrinth.category.lightweight=Lightweight modrinth.category.lightweight=Lightweight
modrinth.category.liteloader=LiteLoader
modrinth.category.locale=Locale
modrinth.category.magic=Magic modrinth.category.magic=Magic
modrinth.category.management=Management modrinth.category.management=Management
modrinth.category.minecraft=Minecraft
modrinth.category.minigame=Minigame modrinth.category.minigame=Minigame
modrinth.category.misc=Misc modrinth.category.misc=Misc
modrinth.category.mobs=Mobs modrinth.category.mobs=Mobs
modrinth.category.modded=Modded
modrinth.category.models=Models
modrinth.category.modloader=Modloader modrinth.category.modloader=Modloader
modrinth.category.multiplayer=Multiplayer modrinth.category.multiplayer=Multiplayer
modrinth.category.neoforge=NeoForge modrinth.category.neoforge=NeoForge
@@ -855,19 +868,32 @@ modrinth.category.paper=Paper
modrinth.category.purpur=Purpur modrinth.category.purpur=Purpur
modrinth.category.quests=Quests modrinth.category.quests=Quests
modrinth.category.quilt=Quilt modrinth.category.quilt=Quilt
modrinth.category.realistic=Realistic
modrinth.category.rift=Rift modrinth.category.rift=Rift
modrinth.category.simplistic=Simplistic
modrinth.category.social=Social modrinth.category.social=Social
modrinth.category.spigot=Spigot modrinth.category.spigot=Spigot
modrinth.category.sponge=Sponge modrinth.category.sponge=Sponge
modrinth.category.storage=Storage modrinth.category.storage=Storage
modrinth.category.technology=Technology modrinth.category.technology=Technology
modrinth.category.themed=Themed
modrinth.category.transportation=Transportation modrinth.category.transportation=Transportation
modrinth.category.tweaks=Tweaks
modrinth.category.utility=Utility modrinth.category.utility=Utility
modrinth.category.vanilla-like=Vanilla-like
modrinth.category.velocity=Velocity modrinth.category.velocity=Velocity
modrinth.category.waterfall=Waterfall modrinth.category.waterfall=Waterfall
modrinth.category.worldgen=Worldgen modrinth.category.worldgen=Worldgen
modrinth.category.datapack=Datapack modrinth.category.datapack=Datapack
modrinth.category.folia=Folia modrinth.category.folia=Folia
modrinth.category.8x-=8x-
modrinth.category.16x=16x
modrinth.category.32x=32x
modrinth.category.48x=48x
modrinth.category.64x=64x
modrinth.category.128x=128x
modrinth.category.256x=256x
modrinth.category.512x+=512x+
mods=Mods mods=Mods
mods.add=Add Mods mods.add=Add Mods

View File

@@ -703,26 +703,39 @@ modpack.wizard.step.initialization.warning=在製作模組包前,請您確認
modpack.wizard.step.initialization.server=點選此處查看有關伺服器自動更新模組包的製作教學 modpack.wizard.step.initialization.server=點選此處查看有關伺服器自動更新模組包的製作教學
modrinth.category.adventure=冒險 modrinth.category.adventure=冒險
modrinth.category.audio=聲音
modrinth.category.blocks=方塊
modrinth.category.bukkit=Bukkit modrinth.category.bukkit=Bukkit
modrinth.category.bungeecord=BungeeCord modrinth.category.bungeecord=BungeeCord
modrinth.category.challenging=高難度 modrinth.category.challenging=高難度
modrinth.category.core-shaders=覈心著色器
modrinth.category.combat=戰鬥 modrinth.category.combat=戰鬥
modrinth.category.cursed=Cursed modrinth.category.cursed=Cursed
modrinth.category.decoration=裝飾 modrinth.category.decoration=裝飾
modrinth.category.economy=經濟 modrinth.category.economy=經濟
modrinth.category.entities=實體
modrinth.category.environment=環境
modrinth.category.equipment=裝備 modrinth.category.equipment=裝備
modrinth.category.fabric=Fabric modrinth.category.fabric=Fabric
modrinth.category.fonts=字體
modrinth.category.food=食物 modrinth.category.food=食物
modrinth.category.forge=Forge modrinth.category.forge=Forge
modrinth.category.game-mechanics=遊戲機制 modrinth.category.game-mechanics=遊戲機制
modrinth.category.gui=GUI
modrinth.category.items=物品
modrinth.category.kitchen-sink=大雜燴 modrinth.category.kitchen-sink=大雜燴
modrinth.category.library=支持庫 modrinth.category.library=支持庫
modrinth.category.lightweight=輕量 modrinth.category.lightweight=輕量
modrinth.category.liteloader=LiteLoader
modrinth.category.locale=在地化
modrinth.category.magic=魔法 modrinth.category.magic=魔法
modrinth.category.management=管理 modrinth.category.management=管理
modrinth.category.minecraft=Minecraft
modrinth.category.minigame=小遊戲 modrinth.category.minigame=小遊戲
modrinth.category.misc=其他 modrinth.category.misc=其他
modrinth.category.mobs=生物 modrinth.category.mobs=生物
modrinth.category.modded=Modded
modrinth.category.models=模型
modrinth.category.modloader=Modloader modrinth.category.modloader=Modloader
modrinth.category.multiplayer=多人 modrinth.category.multiplayer=多人
modrinth.category.neoforge=NeoForge modrinth.category.neoforge=NeoForge
@@ -731,14 +744,19 @@ modrinth.category.paper=Paper
modrinth.category.purpur=Purpur modrinth.category.purpur=Purpur
modrinth.category.quests=任務 modrinth.category.quests=任務
modrinth.category.quilt=Quilt modrinth.category.quilt=Quilt
modrinth.category.realistic=寫實
modrinth.category.rift=Rift modrinth.category.rift=Rift
modrinth.category.simplistic=簡單
modrinth.category.social=社交 modrinth.category.social=社交
modrinth.category.spigot=Spigot modrinth.category.spigot=Spigot
modrinth.category.sponge=Sponge modrinth.category.sponge=Sponge
modrinth.category.storage=儲存 modrinth.category.storage=儲存
modrinth.category.technology=科技 modrinth.category.technology=科技
modrinth.category.themed=主題
modrinth.category.transportation=運輸 modrinth.category.transportation=運輸
modrinth.category.tweaks=優化
modrinth.category.utility=實用 modrinth.category.utility=實用
modrinth.category.vanilla-like=類原生
modrinth.category.velocity=Velocity modrinth.category.velocity=Velocity
modrinth.category.waterfall=Waterfall modrinth.category.waterfall=Waterfall
modrinth.category.worldgen=世界生成 modrinth.category.worldgen=世界生成

View File

@@ -702,26 +702,39 @@ modpack.wizard.step.initialization.warning=在制作整合包前,请您确认
modpack.wizard.step.initialization.server=点击此处查看有关服务器自动更新整合包的制作教程 modpack.wizard.step.initialization.server=点击此处查看有关服务器自动更新整合包的制作教程
modrinth.category.adventure=冒险 modrinth.category.adventure=冒险
modrinth.category.audio=声音
modrinth.category.blocks=方块
modrinth.category.bukkit=Bukkit modrinth.category.bukkit=Bukkit
modrinth.category.bungeecord=BungeeCord modrinth.category.bungeecord=BungeeCord
modrinth.category.challenging=高难度 modrinth.category.challenging=高难度
modrinth.category.core-shaders=核心着色器
modrinth.category.combat=战斗 modrinth.category.combat=战斗
modrinth.category.cursed=Cursed modrinth.category.cursed=Cursed
modrinth.category.decoration=装饰 modrinth.category.decoration=装饰
modrinth.category.economy=经济 modrinth.category.economy=经济
modrinth.category.entities=实体
modrinth.category.environment=环境
modrinth.category.equipment=装备 modrinth.category.equipment=装备
modrinth.category.fabric=Fabric modrinth.category.fabric=Fabric
modrinth.category.fonts=字体
modrinth.category.food=食物 modrinth.category.food=食物
modrinth.category.forge=Forge modrinth.category.forge=Forge
modrinth.category.game-mechanics=游戏机制 modrinth.category.game-mechanics=游戏机制
modrinth.category.gui=GUI
modrinth.category.items=物品
modrinth.category.kitchen-sink=大杂烩 modrinth.category.kitchen-sink=大杂烩
modrinth.category.library=支持库 modrinth.category.library=支持库
modrinth.category.lightweight=轻量 modrinth.category.lightweight=轻量
modrinth.category.liteloader=LiteLoader
modrinth.category.locale=本地化
modrinth.category.magic=魔法 modrinth.category.magic=魔法
modrinth.category.management=管理 modrinth.category.management=管理
modrinth.category.minecraft=Minecraft
modrinth.category.minigame=小游戏 modrinth.category.minigame=小游戏
modrinth.category.misc=其他 modrinth.category.misc=其他
modrinth.category.mobs=生物 modrinth.category.mobs=生物
modrinth.category.modded=Modded
modrinth.category.models=模型
modrinth.category.modloader=Modloader modrinth.category.modloader=Modloader
modrinth.category.multiplayer=多人 modrinth.category.multiplayer=多人
modrinth.category.neoforge=NeoForge modrinth.category.neoforge=NeoForge
@@ -730,14 +743,19 @@ modrinth.category.paper=Paper
modrinth.category.purpur=Purpur modrinth.category.purpur=Purpur
modrinth.category.quests=任务 modrinth.category.quests=任务
modrinth.category.quilt=Quilt modrinth.category.quilt=Quilt
modrinth.category.realistic=写实
modrinth.category.rift=Rift modrinth.category.rift=Rift
modrinth.category.simplistic=简单
modrinth.category.social=社交 modrinth.category.social=社交
modrinth.category.spigot=Spigot modrinth.category.spigot=Spigot
modrinth.category.sponge=Sponge modrinth.category.sponge=Sponge
modrinth.category.storage=存储 modrinth.category.storage=存储
modrinth.category.technology=科技 modrinth.category.technology=科技
modrinth.category.themed=主题
modrinth.category.transportation=运输 modrinth.category.transportation=运输
modrinth.category.tweaks=优化
modrinth.category.utility=实用 modrinth.category.utility=实用
modrinth.category.vanilla-like=类原生
modrinth.category.velocity=Velocity modrinth.category.velocity=Velocity
modrinth.category.waterfall=Waterfall modrinth.category.waterfall=Waterfall
modrinth.category.worldgen=世界生成 modrinth.category.worldgen=世界生成