Quantcast LoTROInterface - View Single Post - Lotro Chann Filter EN Translate
View Single Post
  #17  
Unread 05-21-2018, 12:09 PM
Ledviper's Avatar
Ledviper Ledviper is offline
The Undefeated
Interface Author - Click to view interfaces
 
Join Date: Jul 2008
Location: Ottawa, Ontario, Canada
Posts: 6
Quote:
Originally Posted by glafria
In the language.lua you found this
Code:
L=Turbine.Engine:GetLocale();
and not the correct syntax
Code:
L=Turbine.Engine.GetLocale();
both forms work.
I used Locale Emulator to run lotro with Japanese locale and received the same error with both forms.

replacing that line with the following is how it should be, I've tested it with Japanese locale, still downloading French and German languages to test those:
Code:
L = Turbine.Engine:GetLanguage();
if L == 0 or L == 2 or L == 268435457 then L = "en";
elseif L == 268435459 then L = "fr";
elseif L == 268435460 then L = "de"; 
elseif L == 268435463 then L = "ru"; end
Code is from Pulse's comment
Reply With Quote