What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

How do you use LocalizeableResult.CurrentLocaleName?

kaihaider

Community Developer
Joined
May 18, 2010
Messages
1,325
Reaction score
5
Sorry if this should be obvious or if it's been mentioned somewhere before, but how do you use CurrentLocaleName?

mastahg told me to check both the englishname and the localename in the useitem() thread. Since there were two names in the class, englishName and name, I had assumed name was the localename but mastahg told me that was incorrect.

How do I check the localename and can I check only that instead of both that and englishName? (since the string I'm comparing is user input)

On a side note, are spell names used in DoAction/CurrentActions region specific? Or do they use an internal dictionary which always includes english names....
 
Last edited:
Sorry if this should be obvious or if it's been mentioned somewhere before, but how do you use CurrentLocaleName?

mastahg told me to check both the current name and the localename in the useitem() thread. Since there were two names in the class, englishName and name, I had assumed name was the localename but mastahg told me that was incorrect.

How do I check the localename and can I check only that instead of both that and englishName? (since the string I'm comparing is user input)

On a side note, are spell names used in doactions region specific? Or does it use an internal dictionary which always includes english names....


Sorry for items Name is the one that changes based on the games current locale. That one was added later then the others so its the only 'correct' one. I think im going to have to break everything involving names for one patch so that everything that is localizable uses the same naming scheme.
 
Sorry for items Name is the one that changes based on the games current locale. That one was added later then the others so its the only 'correct' one. I think im going to have to break everything involving names for one patch so that everything that is localizable uses the same naming scheme.

What's the new scheme going to be or what uses the new scheme?

edit:sorry misread, item is how they are all going to be and we don't need to worry about that abstract class?

edit edit: so the new scheme is that classes which use names use the abstract but the class using the locale class only shows the englishName and Name is populated by whichever name is used by that region? So even though the abstract class says that all of those fields are public, we can't ready and except for EnglishName and Name. And EnglishName is always available no matter which region rebornbuddy is in?
 
Last edited:
Back
Top