• Visit Rebornbuddy
  • How do you use LocalizeableResult.CurrentLocaleName?

    Discussion in 'Community Developer Forum' started by kaihaider, Jan 18, 2015.

    1. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      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: Jan 18, 2015
    2. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,231
      Likes Received:
      364
      Trophy Points:
      83

      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.
       
    3. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      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: Jan 18, 2015

    Share This Page