Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Language Field #345
This field displays an icon in the tooltip for a user indicating their preferred roleplay language. On an upgrade, this will initialize to the addon locale if set or will fall back to the client locale.
The icon will only display in tooltips if it differs from the users currently selected locale; so you won't see enUS flags if you're running TRP with the enUS locale selected since the info isn't all that useful in that case.
The setting can be changed from the dashboard as a new dropdown with the RP status/RP XP options.
Note: Flags aren't displayed in that dropdown because the Chinese locales artifically scale up the flags, making them look unaligned and horrible.
If the user changes the addon locale, we'll run through all the profiles and if the language set for any profile matches the locale we're changing from, we'll update it automatically. I'd have preferred to prompt for this, but we're already popping up a prompt to do a reload UI in this case so having two back to back prompts feels nasty. This behaviour feels sensible as a default.
We only support the locale codes present in our localization system (which mirror those returned by GetLocale); for accuracy in EU/RU clients we'll transform enUS and ptBR to enGB and ptPT respectively. This pulls in LibRealmInfo to do so on Retail, but will fall back to
The field is exposed via LibMSP in the