Jump to content

Recommended Posts

Posted

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.

Posted

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 !

Posted

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.