Permalink
Browse files

Add custom translation file

Close #385
  • Loading branch information...
Bara committed Oct 26, 2018
1 parent 09d16d6 commit ac475d6e3b63e0757c2eadc584e6e039497fc5c7
Showing with 76 additions and 46 deletions.
  1. +14 −0 addons/sourcemod/scripting/include/ttt.inc
  2. +1 −1 addons/sourcemod/scripting/ttt/ttt.sp
  3. +1 −1 addons/sourcemod/scripting/ttt/ttt_blackout.sp
  4. +1 −1 addons/sourcemod/scripting/ttt/ttt_bullets.sp
  5. +1 −3 addons/sourcemod/scripting/ttt/ttt_c4_jihad.sp
  6. +1 −1 addons/sourcemod/scripting/ttt/ttt_decoy_body.sp
  7. +1 −1 addons/sourcemod/scripting/ttt/ttt_decoy_teleport.sp
  8. +1 −1 addons/sourcemod/scripting/ttt/ttt_dnascanner.sp
  9. +1 −1 addons/sourcemod/scripting/ttt/ttt_dronescameras.sp
  10. +1 −1 addons/sourcemod/scripting/ttt/ttt_dropWeapons.sp
  11. +1 −1 addons/sourcemod/scripting/ttt/ttt_fakebody.sp
  12. +1 −1 addons/sourcemod/scripting/ttt/ttt_fakename.sp
  13. +1 −1 addons/sourcemod/scripting/ttt/ttt_futuristicgrenades.sp
  14. +1 −1 addons/sourcemod/scripting/ttt/ttt_healthshot.sp
  15. +1 −1 addons/sourcemod/scripting/ttt/ttt_hurtshot.sp
  16. +1 −1 addons/sourcemod/scripting/ttt/ttt_iceknife.sp
  17. +1 −1 addons/sourcemod/scripting/ttt/ttt_id.sp
  18. +1 −1 addons/sourcemod/scripting/ttt/ttt_knockout.sp
  19. +1 −1 addons/sourcemod/scripting/ttt/ttt_martydom.sp
  20. +1 −1 addons/sourcemod/scripting/ttt/ttt_missiles.sp
  21. +1 −1 addons/sourcemod/scripting/ttt/ttt_nightvision.sp
  22. +1 −1 addons/sourcemod/scripting/ttt/ttt_parachute.sp
  23. +1 −1 addons/sourcemod/scripting/ttt/ttt_playerhud.sp
  24. +1 −1 addons/sourcemod/scripting/ttt/ttt_poison_smoke.sp
  25. +1 −1 addons/sourcemod/scripting/ttt/ttt_radar.sp
  26. +1 −1 addons/sourcemod/scripting/ttt/ttt_radio.sp
  27. +1 −1 addons/sourcemod/scripting/ttt/ttt_random_teleport.sp
  28. +1 −1 addons/sourcemod/scripting/ttt/ttt_revive.sp
  29. +1 −1 addons/sourcemod/scripting/ttt/ttt_revolver.sp
  30. +1 −1 addons/sourcemod/scripting/ttt/ttt_shop.sp
  31. +1 −1 addons/sourcemod/scripting/ttt/ttt_shop_discount.sp
  32. +1 −1 addons/sourcemod/scripting/ttt/ttt_silent_awp.sp
  33. +1 −1 addons/sourcemod/scripting/ttt/ttt_spec_menu.sp
  34. +1 −1 addons/sourcemod/scripting/ttt/ttt_sprint.sp
  35. +1 −1 addons/sourcemod/scripting/ttt/ttt_stations.sp
  36. +1 −1 addons/sourcemod/scripting/ttt/ttt_tactical_shield.sp
  37. +1 −1 addons/sourcemod/scripting/ttt/ttt_tagrenade.sp
  38. +1 −1 addons/sourcemod/scripting/ttt/ttt_talk_override.sp
  39. +1 −1 addons/sourcemod/scripting/ttt/ttt_taser.sp
  40. +1 −1 addons/sourcemod/scripting/ttt/ttt_teleporter.sp
  41. +1 −1 addons/sourcemod/scripting/ttt/ttt_tracer.sp
  42. +1 −1 addons/sourcemod/scripting/ttt/ttt_tripmines.sp
  43. +1 −1 addons/sourcemod/scripting/ttt/ttt_turret.sp
  44. +1 −1 addons/sourcemod/scripting/ttt/ttt_weapons.sp
  45. +1 −1 addons/sourcemod/scripting/ttt_template_item.sp
  46. +18 −0 addons/sourcemod/translations/ttt.custom.phrases.txt.example
@@ -1072,3 +1072,17 @@ stock int TTT_HasClientWeapon(int client, const char[] sWeapon)
return -1;
}
stock bool TTT_LoadTranslations()
{
char sFile[PLATFORM_MAX_PATH + 1];
BuildPath(Path_SM, sFile, sizeof(sFile), "translations/ttt.custom.phrases.txt");
if (FileExists(sFile))
{
LoadTranslations("ttt.custom.phrases");
LogMessage("Custom translation file loaded.");
}
LoadTranslations("ttt.phrases");
}
@@ -50,7 +50,7 @@ public void OnPluginStart()
BuildPath(Path_SM, g_sRulesFile, sizeof(g_sRulesFile), "configs/ttt/rules/start.cfg");
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
LoadTranslations("common.phrases");
LoadBadNames();
@@ -38,7 +38,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("blackout");
CreateConVar("ttt2_blackout_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -62,7 +62,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("bullets");
CreateConVar("bullets_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -78,8 +78,6 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_StartConfig("c4_jihad");
g_cLongName_C4 = AutoExecConfig_CreateConVar("c4_name", "C4", "The name of the C4 in the Shop");
g_cPrice_C4 = AutoExecConfig_CreateConVar("c4_price", "9000", "The amount of credits a c4 costs as traitor. 0 to disable.");
@@ -110,7 +108,7 @@ public void OnPluginStart()
HookEvent("player_spawn", Event_PlayerSpawn);
HookEvent("player_death", Event_PlayerDeath);
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
}
public void OnMapStart()
@@ -51,7 +51,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("decoy_body");
CreateConVar("ttt2_decoy_body_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -43,7 +43,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("decoy_teleporter");
CreateConVar("ttt2_decoy_teleporter_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -38,7 +38,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("dnascanner");
CreateConVar("ttt2_dna_scanner_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -32,7 +32,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("dronesandcameras");
CreateConVar("ttt2_drones_and_cameras_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -41,7 +41,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("drop");
CreateConVar("ttt2_drop_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -38,7 +38,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("fakebody");
CreateConVar("ttt2_fakebody_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -52,7 +52,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("fakename");
CreateConVar("fakename_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -80,7 +80,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("futuristicgrenades");
CreateConVar("ttt2_futuristic_grenades_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -42,7 +42,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("healthshot");
CreateConVar("ttt2_healthshot_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -38,7 +38,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("hurtshot");
CreateConVar("hurtshot_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -62,7 +62,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("ice_knife");
CreateConVar("ttt2_ice_knife_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -54,7 +54,7 @@ public void OnPluginStart()
RegConsoleCmd("sm_id", Command_ID, "Prove yourself as Innocent");
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
HookEvent("player_spawn", Event_PlayerSpawn);
}
@@ -78,7 +78,7 @@ public void OnPluginStart()
SetFailState("Failure with UserMessage Fade...");
}
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("knockout");
CreateConVar("ttt2_knockout_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -43,7 +43,7 @@ public void OnPluginStart() {
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("martydom");
CreateConVar("ttt2_martydom_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -106,7 +106,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("missiles");
CreateConVar("ttt2_missiles_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -28,7 +28,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("nightvision");
CreateConVar("ttt2_nightvision_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -29,7 +29,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("parachute");
CreateConVar("ttt2_parachute_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -51,7 +51,7 @@ public void OnPluginStart()
g_cTimer = AutoExecConfig_CreateConVar("hud_timer_check", "0.2", "Check each x seconds.");
TTT_EndConfig();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
}
public void OnAllPluginsLoaded()
@@ -36,7 +36,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("posion_smoke");
CreateConVar("ttt2_posion_smoke_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -51,7 +51,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("radar");
CreateConVar("ttt2_radar_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -31,7 +31,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("radio");
CreateConVar("ttt2_radio_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -50,7 +50,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
char sDate[12];
FormatTime(sDate, sizeof(sDate), "%y-%m-%d");
@@ -61,7 +61,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("revive");
CreateConVar("ttt2_revive_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -35,7 +35,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("revolver");
CreateConVar("ttt2_revolver_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -184,7 +184,7 @@ public void OnPluginStart()
TTT_EndConfig();
LoadTranslations("common.phrases");
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
char sDate[12];
FormatTime(sDate, sizeof(sDate), "%y-%m-%d");
@@ -72,7 +72,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("shop_discount");
CreateConVar("ttt2_shop_discount_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -48,7 +48,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("silent_awp");
CreateConVar("ttt2_silent_awp_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -43,7 +43,7 @@ public void OnPluginStart()
g_cEnableNextPrev = AutoExecConfig_CreateConVar("specmenu_enable_new_spec_nextprev", "1", "Enables the new method for spec_next and spec_prev", _, true, 0.0, true, 1.0);
TTT_EndConfig();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
LoadTranslations("common.phrases");
RegConsoleCmd("sm_specmenu", Command_SpecMenu);
@@ -43,7 +43,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("sprint");
CreateConVar("ttt2_sprint_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -54,7 +54,7 @@ char g_sPluginTag[64];
public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("stations");
CreateConVar("ttt2_stations_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -30,7 +30,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("tactical_shield");
CreateConVar("ttt2_tactical_shield_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -60,7 +60,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("tagrenade");
CreateConVar("ttt2_tagrenade_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -42,7 +42,7 @@ public void OnPluginStart()
HookEvent("player_spawn", Event_PlayerSpawn);
HookEvent("player_team", Event_PlayerTeam);
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
}
public void OnClientPutInServer(int client)
@@ -78,7 +78,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("taser");
CreateConVar("ttt2_taser_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -38,7 +38,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("teleporter");
CreateConVar("ttt2_teleporter_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -43,7 +43,7 @@ public Plugin myinfo =
public void OnPluginStart()
{
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("tracer");
CreateConVar("ttt2_tracer_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
@@ -34,7 +34,7 @@ public void OnPluginStart()
{
TTT_IsGameCSGO();
LoadTranslations("ttt.phrases");
TTT_LoadTranslations();
TTT_StartConfig("tripmines");
CreateConVar("ttt2_tripmines_version", TTT_PLUGIN_VERSION, TTT_PLUGIN_DESCRIPTION, FCVAR_NOTIFY | FCVAR_DONTRECORD | FCVAR_REPLICATED);
Oops, something went wrong.

0 comments on commit ac475d6

Please sign in to comment.