

这是一个基于 Mixin 的模组,旨在实现硬编码文本的本地化。
它将代码中静态的文本替换为语言键(language keys),从而可以通过语言资源包进行翻译。
本模组:
- 为 MC 1.12.2 添加缺失的本地化功能
- 对许多模组中的硬编码文本进行本地化
- 包含大量原版 Minecraft 和许多模组原本未提供的语言键。
- 额外福利:修复了某些模组中的一些小体验优化问题(这并非 Localizator 的主要目的,但我实在忍不住要修复它们)。
首次运行时,所有 Mixins 默认处于禁用状态。
你可以选择启用所有 Mixins。
如果你的实例中不存在对应的模组,其相关的 Mixin 将不会加载,一切仍会按预期运行。
.
如需查看所包含的完整 Mixins 列表,请展开下方的折叠内容!
剧透
- (Armor Underwear) 本地化了带有 Oxxy Liner 的护甲部件上的 “MILD / WARM / COOL”(温和/保暖/凉爽)提示文本。
- (Battle Towers) 本地化了击败傀儡时的消息。
- (Better Survival) 本地化了附魔武器上“剩余命中次数”的提示文本。
- (Bountiful Baubles) 添加了选项,防止修饰符被添加到饰品名称中。
- (Bountiful Baubles) 为安卡护身符和安卡盾牌添加了蛛网免疫效果(因为我觉得这很合理)。
- (Bountiful Baubles) 本地化了与虫洞传送物品相关的消息。
- (Callable Horses) 在连接服务器时本地化了所有消息。
- (Charm) 本地化了所有蛋糕的名称以及世界中生成的箱子。
- (Charm) 本地化了堆肥箱 JEI 使用界面的文本。本地化了 MesonGuiContainer 的显示名称。
- (Corpse Complex) 本地化了墓碑卷轴的描述。
- (Dynamic Trees) 移除了法杖提示框上的奇怪符号。
- (Dynamic Trees) 包含了模组 JAR 包中原先缺失的一些语言键。
- (Dynamic Raw Ores) 如果已存在生成出的原矿或原矿石块的语言键,则显示该语言键对应的文本,而不是使用默认命名方法。
- (Fancy Block Particles) 本地化了其按键绑定界面的文本。
- (Fishing Made Better) 本地化了鱼类名称和信息、鱼群追踪器消息。
- (Fishing Made Better) 为鱼类需求添加了 JEI 插件。
- (Fishing Made Better) 为所有钓鱼爱好者创建了熔岩鱼桶、虚空桶和虚空鱼桶。
- (Forge FML) 本地化了模组列表界面。
- (Forgotten Items) 本地化了所有物品的描述。
- (iChunUtils) 修复了尝试访问无效 URL 时出现的异常。
- (Item Physic) 修复了查看 Armor Underwear 物品时显示的 “ERRORED”(出错)文本。
- (Item Physic) 本地化了投掷物品时显示的 “Power:”(力量:)状态消息。
- (Item Physic) 修复了物品描述显示顺序颠倒的问题。
- (Item Physic) 包含了模组 JAR 包中原先缺失的一些语言键。
- (LevelUp! 2) 本地化了其按键绑定界面的文本。
- (LevelUp! 2) 包含了模组 JAR 包中原先缺失的一些语言键。
- (Lycanites Mobs) 在连接服务器时本地化了消息和状态消息。
- (Lycanites Mobs) 包含了模组 JAR 包中原先缺失的一些语言键。
- (Minecraft) 支持带有参数的语言键的 LocName NBT 标签!
- (Minecraft) 添加了用于本地化物品描述的 LocLore NBT 标签。并支持带有一个参数的语言键!
- (Minecraft) 添加了用于本地化撰写书籍的 locTitle 和 locAuthor NBT 标签。
- (Minecraft) 如果实体的 CustomName 标签包含语言键,则会翻译其实体名称(对 Boss 也有效!)。
- (Minecraft) 本地化了生物群系名称。
- (Minecraft) 新增 “locPages” NBT 标签,用于本地化可书写书。
- (Minecraft) 如果 TileEntityLockable 的 CustomName 包含语言键,它将被翻译。
- (Minecraft) 被 /kill 命令杀死的物品实体将正确显示其名称。
- (Minecraft) 添加了缺失的语言键,例如某些盾牌图案名称和物品实体名称。
- (Minecraft) 有时模组开发者和整合包创作者喜欢添加“新奇/收集类物品”(具有自定义名称和描述的物品)来增加游戏的趣味性。
其中一些物品是可放置的(方块、画作、告示牌、头颅)。如果玩家放置它们,物品会失去其 NBT 标签(原版行为),变成普通物品。
Localizator 添加了配置开关(以及可选的方块白名单)以防止玩家放置这些新奇物品,并显示状态消息解释原因。
- (Mo' Bends) 本地化了其按键绑定界面的文本。
- (Morpehus) 本地化了所有消息。
- (Neat) 如果实体的 CustomName 标签包含语言键,它将被翻译。
- (Recurrent Complex) 本地化了神器随机名称(共有 120,960 种可能的组合!)。
- (Roguelike Dungeons -- Fnar's Edition) 使所有新奇物品在生存模式下可获取。持有/穿戴新奇物品的怪物将以新奇物品拥有者的外观着装,以增添怀旧感。可设置为不可破坏。
- (Rough Tweaks) 使其物品的语言键唯一,以免与 First Aid 冲突。
- (Rough Tweaks) 添加了选项以显示隐藏的物品描述。
- (Scaling Health) 本地化了按键绑定界面文本、枯萎病死亡消息以及其他类似愚人节的消息。
- (Serene Seasons) 将 Rustic 的特殊作物(辣椒、番茄)添加到肥沃度提示中。
- (Serene Seasons) 将 Rustic 的特殊作物(辣椒、番茄)添加到肥沃度提示中。
- (Set Bonus) 配置文件中的套装和奖励文本可以是语言键,因此它们变得可翻译。
- (Spartan Weaponry) 本地化了硬编码的提示文本 “Material Bonus:”(材质加成:)。
- (SRParasites) 本地化了寄生虫护甲的硬编码提示文本 “Current Adaptation”(当前适应)和 “reduction”(减免),并改进了其格式。
- (SRParasites) 添加了选项以翻译抗性伤害来源(对于非实体类型的伤害来源,你需要添加相应的语言键)。
- (SRParasites) 添加了可自定义的被同化冒险者名称列表。
- (SRParasites) 包含了模组 JAR 包中原先缺失的一些语言键。
- (Trinkets & Baubles) 本地化了末影女王的消息以及在转变为 Faelis 时护甲上的 “Weight:”(重量:)提示文本。
- (Varied Commodities) 新增 “locPages” NBT 标签,用于本地化可书写书。
- (WAILA's fork "Hwyla") 翻译了实体的 CustomName 标签内容。
整合包制作者,请查看新的 Wiki!
常见问题:
剧透
为什么你更改了依赖项?
最初,我依赖 MixinBooter 来加载 Mixin,并自行管理对其他模组的访问。
访问其他模组的代码高度依赖于 Mixin 的版本,因此如果发布了新的 Mixin 更新,Localizator 很可能会崩溃,直到我找到方法将访问代码适配到新的 Mixin 版本,而我的响应时间也会很长。
Fonnymunkey 的 FermiumBooter 也管理着访问其他模组的代码,而且 fonny 更有能力为未来的 Mixin 版本适配这些代码,从而带来非常短的响应时间。
因此,通过依赖 FermiumBooter,我可以专注于自己的 Mixin,并将访问代码交给更有经验的开发者处理。
希望你能理解。


This is a mod powered by Mixin which enables localization of hardcoded texts.
It means replacing static in-code texts with language keys, so they can be translated with a language Resourcepack.
This mod:
- Adds missing localization functionality to MC 1.12.2
- Localizes hardcoded texts in many mods
- Includes lots of lang keys not originally included in Minecraft and many mods.
- Bonus: Applies little QoL fixes in some mods (this is not the purpose of Localizator, but I just HAD to fix them).
On first run, all Mixins are disabled by default.
You can enable all Mixins if you want.
If a corresponding mod doesn't exist in your instance, its Mixin won't load and everything will run as expected.
.
For the complete list of included Mixins, check the spoiler below!
Spoiler
- (Armor Underwear) Localizes the "MILD / WARM / COOL" tooltip texts on armor parts with Oxxy Liner.
- (Battle Towers) Localizes the message when the Golem is defeated.
- (Better Survival) Localizes the "hits remaining" tooltip text on potion-imbued weapons.
- (Bountiful Baubles) Adds an option to prevent Modifier of being added to the Bauble name.
- (Bountiful Baubles) Adds cobweb immunity to Ankh Charm and Ankh Shield (because it makes sense to me).
- (Bountiful Baubles) Localizes messages related to Wormhole teleport items.
- (Callable Horses) Localizes all messages when connected to a server.
- (Charm) Localizes all cakes names and Crates generated in world.
- (Charm) Localizes the Composter JEI usage screen texts. Localizes MesonGuiContainer's displayName.
- (Corpse Complex) Localizes the Grave Scroll description.
- (Dynamic Trees) Removes the weird symbols on Staff tooltip.
- (Dynamic Trees) Includes some lang keys originally missing in the mod's JAR.
- (Dynamic Raw Ores) If a lang keys exists for the generated Raw Ore or Raw Block, show it instead of using the default naming method.
- (Fancy Block Particles) Localizes its Keybind screen texts.
- (Fishing Made Better) Localizes Fish name and information, Fish Tracker messages.
- (Fishing Made Better) Adds a JEI Plugin for Fish Requirments.
- (Fishing Made Better) Creates Lava Fish Bucket, Void Bucket and Void Fish Bucket for all fishermen's joy.
- (Forge FML) Localizes the Mod List screen.
- (Forgotten Items) Localizes all items descriptions.
- (iChunUtils) Patches an exception when trying to reach an invalid URL.
- (Item Physic) Fixes the "ERRORED" text when looking at Armor Underwear items.
- (Item Physic) Localizes the "Power:" status message when throwing items.
- (Item Physic) Fixes item description being shown in reverse order.
- (Item Physic) Includes some lang keys originally missing in the mod's JAR.
- (LevelUp! 2) Localizes its Keybind screen texts.
- (LevelUp! 2) Includes some lang keys originally missing in the mod's JAR.
- (Lycanites Mobs) Localizes messages and status messages when connected to a server.
- (Lycanites Mobs) Includes some some lang keys originally missing in the mod's JAR.
- (Minecraft) Adds LocName NBT tag support for lang keys with arguments!
- (Minecraft) Adds the LocLore NBT tag for localized item lore. And it supports lang keys with 1 argument!
- (Minecraft) Adds the locTitle and locAuthor NBT tags for localized Written Books.
- (Minecraft) Translates entity names if their CustomName tag contains a lang key (works on bosses too!).
- (Minecraft) Localizes Biome names.
- (Minecraft) New "locPages" NBT tag, to localize Writable Books.
- (Minecraft) If TileEntityLockable's CustomName contains a lang key, it'll be translated.
- (Minecraft) Item entities killed by the /kill command will show their name correctly.
- (Minecraft) Adds missing lang keys, like some Shield Pattern names and item entity names.
- (Minecraft) Sometimes Mod Developers and Modpack creators like to add "Novelty/Collectible Items" (Items with custom Name and Lore) to add some fun to the game.
Some of those items are placeable (Blocks, Paintings, Signs, Skulls). And if players place them, the items lose their NBT tags (Vanilla behaviour), turning into normal items.
Localizator adds config toggles (and an optional Block Whitelist) to prevent players from placing placeable Novelty Items and shows a Status Message explaining why they can't place them.
- (Mo' Bends) Localizes its Keybind screen texts.
- (Morpehus) Localizes all messages.
- (Neat) If an entity's CustomName tag contains a lang key, it'll be translated.
- (Recurrent Complex) Localizes artifact's random names (120,960 possible combinations!).
- (Roguelike Dungeons -- Fnar's Edition) Makes all Novelties obtainable in Survival. Mobs holding/wearing novelties will be dressed as the novelty's owner for extra Nostalgia. Can be made Unbreakable.
- (Rough Tweaks) Makes its item's language keys unique, so they don't collide with First Aid's.
- (Rough Tweaks) Adds an option to show the items hidden description.
- (Scaling Health) Localizes Keybind screen texts, Blight death messages and other messages like April Fools.
- (Serene Seasons) Adds Rustic's special crops (Chili, Tomato) to the fertility tooltip.
- (Serene Seasons) Adds Rustic's special crops (Chili, Tomato) to the fertility tooltip.
- (Set Bonus) Set and Bonus texts from config file can be lang keys, so they become translatable.
- (Spartan Weaponry) Localizes the "Material Bonus:" hardcoded tooltip text.
- (SRParasites) Localizes parasite armor's hardcoded "Current Adaptation" and "reduction" tooltip texts, and improves their formatting.
- (SRParasites) Adds an option to translate the resisted damage sources (for non-entity ones, you need to add the corresponding language keys).
- (SRParasites) Adds a customizable names list for the Assimilated adventurers.
- (SRParasites) Includes some lang keys originally missing in the mod's JAR.
- (Trinkets & Baubles) Localized Ender Queen's messages and the "Weight:" tooltip text on armor when transformed in Faelis.
- (Varied Commodities) New "locPages" NBT tag, to localize Writable Books.
- (WAILA's fork "Hwyla") Translates entity's CustomName tag contents.
Modpack creators, check the new Wiki!
FAQ:
Spoiler
Why did you change dependencies?
Originally, I depended on MixinBooter to load Mixins, and managed the access to other mods by myself.
The code for accessing other mods is extremely Mixin version-dependant, so if a new Mixin update releases, Localizator would most likely crash until I find a way to adapt the accessing code to the new Mixin version, and my response time would be long.
Fonnymunkey's FermiumBooter also manages the code for accessing other mods, and fonny is way more capable of adapting this code for future Mixins versions, resulting in very short response times.
So by depending on FermiumBooter, I can focus on my own Mixins, and leave the access code to a more experimented developer.
I hope you understand.
评论 0
登录后参与评分
还没有评论,来抢沙发吧