Jump to content

[1.7.10] Why is this lang file not working?


TheDogePwner

Recommended Posts

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.

Link to comment
Share on other sites

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 !

Link to comment
Share on other sites

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.

×
×
  • Create New...

Important Information

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