Posted February 28, 20169 yr Hey, I have a lang file in my assets (assets/<modid>/lang/en_US.lang). It looks like this: language.name=English language.region=US language.code=en_US item.RubyGem.name=Ruby Gem Where RubyGem is the localized name of the item. But in-game, its name appears as "item.RubyGem.name". Why is this? Thanks, TDP Sup bruh.
February 28, 20169 yr Hey, I have a lang file in my assets (assets/<modid>/lang/en_US.lang). It looks like this: language.name=English language.region=US language.code=en_US item.RubyGem.name=Ruby Gem Where RubyGem is the localized name of the item. But in-game, its name appears as "item.RubyGem.name". Why is this? Thanks, TDP Good evening TheDogePwner, Are you sure the unlocalized name of your item is RubyGem ? If it isn't, it will not work. You could still put a debug message into your code, when your item is loading for example, to check it ! Furthermore, I've never seen any properties into languages files like language.xxx, try to run it without these three lines to check if it works without them ! EDIT : it seems that it works for me, my bad, never seen that ! Also, take a look at this useful topic about localization, by Jabelar ! Squirrel ! Squirrel ! Squirrel !
February 28, 20169 yr Author Thanks for your reply, Major Squirrel. It guided me in the right direction and I have now found out my problem: When I was registering the item I was using the wrong name. Thanks for your help, though! Sup bruh.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.