LUA API v2 Game Localization Manager - xAranaktu/FC-25-Live-Editor GitHub Wiki

Game Localization Manager

Allows you to translate in-game strings from eng_us.db (or your in-game language loc db) in real time without restarting the game. Changes will only persist until you restart the game.

Fields

This class doesn't have any fields.

Methods

SetString

Set new or edit existing string

Declaration

void GameLocalizationManager:SetString(string key, string value)

Parameters

Type Name Description
string key Variable to change
string value New value

Returns

Doesn't return anything

Example

-- Change the name of "Milano FC" club team to "AC Milan"

LE.game_localization_manager:SetString("TeamName_Abbr3_131681", "MIL")
LE.game_localization_manager:SetString("TeamName_Abbr10_131681", "AC Milan")
LE.game_localization_manager:SetString("TeamName_Abbr15_131681", "AC Milan")
LE.game_localization_manager:SetString("TeamName_131681", "AC Milan")

GetString

Get translated string

Declaration

string GameLocalizationManager:GetString(string key)

Parameters

Type Name Description
string key String to translate

Returns

Translated string

Example

print(LE.game_localization_manager:GetString("TrophyName_Abbr15_210"))
Coppa Italia