View Single Post
01/02/22, 11:57 AM   #3
Scootworks
 
Scootworks's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2014
Posts: 312
Originally Posted by Shadowfen View Post
By default, no. If you are displaying fr and the string is missing from fr then the value of the string will be nil even though there is an en value.

On the other hand, if you use LibLanguage, it was designed to load your default language first and then overload with the currently selected language so that (as in our example) the fr strings (when available) will be used and if not available then the default language (en in our example) would still be there.
that's not true... if you define this:
Lua Code:
  1. Langs/en.lua
  2. Langs/$(language).lua

and use ZO_CreateStringId in en.lua and SafeAddString (for the other languages), the en string will be loaded as a fallback value. To answer your question, if the fr string is not available, the game will use the en string instead
  Reply With Quote