The Meaning of Life, the Universe, and Everything.
Join Date:
1/5/2014
Posts:
93
Minecraft:
mariot7
Member Details
I'm trying to implement the annotation based config system in 1.11.2 but I can't get the translation to work. I'm using this and this example by @Choonster.
Do you have a pack.mcmeta file with pack_format set to 3?
If you do, all files names need to be lowercase. This means your lang files should be called en_us.lang, ko_kr.lang, etc.
If you don't, Forge loads your mod's resources using LegacyV2Adapter, which loads lang files with the old mixed-case names. This means your lang files should be called en_US.lang, ko_KR.lang, etc.
If you don't have a pack.mcmeta file, I recommend downloading a recent MDK and copying its pack.mcmeta file into your mod's src/main/resources directory. Make sure you change the description property to include your mod name instead of the example mod's name.
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
Do you have a pack.mcmeta file with pack_format set to 3?
If you do, all files names need to be lowercase. This means your lang files should be called en_us.lang, ko_kr.lang, etc.
If you don't, Forge loads your mod's resources using LegacyV2Adapter, which loads lang files with the old mixed-case names. This means your lang files should be called en_US.lang, ko_KR.lang, etc.
If you don't have a pack.mcmeta file, I recommend downloading a recent MDK and copying its pack.mcmeta file into your mod's src/main/resources directory. Make sure you change the description property to include your mod name instead of the example mod's name.
I've added pack.mcmeta file, changed the description and renamed my language file but it still doesn't work.
I've added pack.mcmeta file, changed the description and renamed my language file but it still doesn't work.
I'll need to debug this locally to help you further. Create a Git repository for your mod, push it to a site like GitHub (if you haven't already) and link it here.
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
I'll need to debug this locally to help you further. Create a Git repository for your mod, push it to a site like GitHub (if you haven't already) and link it here.
I already have my mod on Github, I've created a dev branch. Make sure you're on the said branch tough!
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
I had to change xlfoodmod.general.WorldGen.tooltip to xlfoodmod.general.worldgen.tooltip in the lang file to get the category tooltip working, this is because Forge coerces your field names to lowercase before using them in lang keys and subcategory names.
It turns out that Forge doesn't actually use the lang key specified for the @Config class in the config GUI if there's only one @Config class, the title is always just your mod's name. I've reported this here.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
I'm trying to implement the annotation based config system in 1.11.2 but I can't get the translation to work. I'm using this and this example by @Choonster.
My config class: https://pastebin.com/5RHegw0T
Lang file: https://pastebin.com/XRshj4bV
Thanks for the help!
Do you have a pack.mcmeta file with pack_format set to 3?
If you do, all files names need to be lowercase. This means your lang files should be called en_us.lang, ko_kr.lang, etc.
If you don't, Forge loads your mod's resources using LegacyV2Adapter, which loads lang files with the old mixed-case names. This means your lang files should be called en_US.lang, ko_KR.lang, etc.
If you don't have a pack.mcmeta file, I recommend downloading a recent MDK and copying its pack.mcmeta file into your mod's src/main/resources directory. Make sure you change the description property to include your mod name instead of the example mod's name.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
I've added pack.mcmeta file, changed the description and renamed my language file but it still doesn't work.
I'll need to debug this locally to help you further. Create a Git repository for your mod, push it to a site like GitHub (if you haven't already) and link it here.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
I already have my mod on Github, I've created a dev branch. Make sure you're on the said branch tough!
Thanks!
The lang file in your repository is still named en_US.lang. Have you definitely renamed it to en_us.lang locally?
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
Yes, locally it is named en_us.lang.
I had to change xlfoodmod.general.WorldGen.tooltip to xlfoodmod.general.worldgen.tooltip in the lang file to get the category tooltip working, this is because Forge coerces your field names to lowercase before using them in lang keys and subcategory names.
It turns out that Forge doesn't actually use the lang key specified for the @Config class in the config GUI if there's only one @Config class, the title is always just your mod's name. I've reported this here.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.