--- F:/World of Warcraft/Interface/AddOns/Test/Libs/LibBabble-Test-3.0/LibBabble-3.0_org.lua Sun Oct 07 20:51:00 2012 +++ F:/World of Warcraft/Interface/AddOns/Test/Libs/LibBabble-Test-3.0/LibBabble-3.0.lua Sun Oct 07 21:36:11 2012 @@ -34,21 +34,23 @@ return current_key end end - local base_key = db.base[key] local real_MAJOR_VERSION - for k,v in pairs(data) do - if v == db then - real_MAJOR_VERSION = k - break - end - end if not real_MAJOR_VERSION then real_MAJOR_VERSION = LIBBABBLE_MAJOR end - if base_key then - warn(("%s: Translation %q not found for locale %q"):format(real_MAJOR_VERSION, key, GetLocale())) - rawset(self, key, base_key) - return base_key + if db.base then + local base_key = db.base[key] + for k,v in pairs(data) do + if v == db then + real_MAJOR_VERSION = k + break + end + end + if base_key then + warn(("%s: Translation %q not found for locale %q"):format(real_MAJOR_VERSION, key, GetLocale())) + rawset(self, key, base_key) + return base_key + end end warn(("%s: Translation %q not found."):format(real_MAJOR_VERSION, key)) rawset(self, key, key)