Skip to content

Commit c9e9667

Browse files
committed
Load extra translations on plugin start
Call LoadTranslations("multimode_extra.phrases") during OnPluginStart so the plugin loads additional localized phrases at initialization. This ensures any strings from multimode_extra.phrases are available when the plugin starts.
1 parent 431179b commit c9e9667

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

addons/sourcemod/scripting/multimode_randomcycle.sp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ UserMsg g_VGuiMenuId = INVALID_MESSAGE_ID;
3737

3838
public void OnPluginStart()
3939
{
40+
LoadTranslations("multimode_extra.phrases");
41+
4042
// Convars
4143
g_Cvar_RandomCycleType = CreateConVar("multimode_randomcycle_type", "1", "Random Cycle Type: 1-Selects at the beginning of the map, 2-Selects when there is no next map at the end of the map.", _, true, 1.0, true, 2.0);
4244
g_Cvar_RandomCycleGroupExclude = CreateConVar("multimode_randomcycle_groupexclude", "0", "Number of recently played gamemodes to exclude from random cycle (0= Disabled)");

0 commit comments

Comments
 (0)