feat: replace all user-facing Russian strings with English

Empty Russian and Chinese locale files so English is used regardless
of client language. Translate all CustomGameEventManager error messages,
SendCustomMessage calls, and deck/card UI strings to English.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
achmad
2026-05-30 04:24:20 +07:00
parent e3534c4002
commit 6d95836d11
11 changed files with 48 additions and 10239 deletions
+10 -10
View File
@@ -148,7 +148,7 @@ function MiniProfileServer.prototype.setupEventListeners(self)
local rowId = tonumber(tostring(event.row_id or 0)) or 0
local steamId = tostring(event.steam_id or "")
if matchId <= 0 then
CustomGameEventManager:Send_ServerToPlayer(requestingPlayer, "match_players_data", {error = "Некорректный ID матча", match_id = 0, players = {}})
CustomGameEventManager:Send_ServerToPlayer(requestingPlayer, "match_players_data", {error = "Invalid match ID", match_id = 0, players = {}})
return
end
self:loadMatchPlayersFromServer(requestingPlayer, matchId, rowId, steamId)
@@ -214,7 +214,7 @@ function MiniProfileServer.prototype.createPlayerProfile(self, playerId, steamId
end
self:loadPlayerProfileFromServer(playerId, steamId, playerName)
else
CustomGameEventManager:Send_ServerToPlayer(player, "player_profile_data", {error = "Не удалось создать профиль", steam_id = steamId, player_name = playerName})
CustomGameEventManager:Send_ServerToPlayer(player, "player_profile_data", {error = "Failed to create profile", steam_id = steamId, player_name = playerName})
end
end)
end
@@ -238,7 +238,7 @@ function MiniProfileServer.prototype.loadPlayerProfileFromServer(self, playerId,
local function ____catch(____error)
local player = PlayerResource:GetPlayer(playerId)
if player then
CustomGameEventManager:Send_ServerToPlayer(player, "player_profile_data", {error = "Ошибка обработки данных", steam_id = steamId, player_name = playerName})
CustomGameEventManager:Send_ServerToPlayer(player, "player_profile_data", {error = "Data processing error", steam_id = steamId, player_name = playerName})
end
end
local ____try, ____hasReturned, ____returnValue = pcall(function()
@@ -247,7 +247,7 @@ function MiniProfileServer.prototype.loadPlayerProfileFromServer(self, playerId,
return true
end
if result.StatusCode == 0 then
CustomGameEventManager:Send_ServerToPlayer(player, "player_profile_data", {error = "Сервер недоступен", steam_id = steamId, player_name = playerName})
CustomGameEventManager:Send_ServerToPlayer(player, "player_profile_data", {error = "Server unavailable", steam_id = steamId, player_name = playerName})
return true
end
if result.StatusCode >= 200 and result.StatusCode < 300 then
@@ -257,7 +257,7 @@ function MiniProfileServer.prototype.loadPlayerProfileFromServer(self, playerId,
nil,
"[MiniProfileServer] Ошибка обработки данных профиля: " .. tostring(e)
)
CustomGameEventManager:Send_ServerToPlayer(player, "player_profile_data", {error = "Ошибка обработки данных профиля", steam_id = steamId, player_name = playerName})
CustomGameEventManager:Send_ServerToPlayer(player, "player_profile_data", {error = "Profile data processing error", steam_id = steamId, player_name = playerName})
end
local ____try, ____hasReturned, ____returnValue = pcall(function()
local responseBodyStr = tostring(result.Body or "")
@@ -269,7 +269,7 @@ function MiniProfileServer.prototype.loadPlayerProfileFromServer(self, playerId,
nil,
"[MiniProfileServer] Ошибка JSON профиля: body_length=" .. tostring(string.len(responseBodyStr))
)
CustomGameEventManager:Send_ServerToPlayer(player, "player_profile_data", {error = "Ошибка парсинга JSON", steam_id = steamId, player_name = playerName})
CustomGameEventManager:Send_ServerToPlayer(player, "player_profile_data", {error = "JSON parsing error", steam_id = steamId, player_name = playerName})
return true
end
local responseDataAny = responseData
@@ -415,7 +415,7 @@ function MiniProfileServer.prototype.loadPlayerProfileFromServer(self, playerId,
____print(nil, "[MiniProfileServer] Using object directly as data")
else
____print(nil, "[MiniProfileServer] Failed to decode response")
CustomGameEventManager:Send_ServerToPlayer(player, "player_profile_data", {error = "Ошибка декодирования данных", steam_id = steamId, player_name = playerName})
CustomGameEventManager:Send_ServerToPlayer(player, "player_profile_data", {error = "Data decode error", steam_id = steamId, player_name = playerName})
return true
end
if data then
@@ -439,7 +439,7 @@ function MiniProfileServer.prototype.loadPlayerProfileFromServer(self, playerId,
end
if not data or type(data) ~= "table" then
____print(nil, "[MiniProfileServer] ❌ Некорректный формат данных профиля (data is not object)")
CustomGameEventManager:Send_ServerToPlayer(player, "player_profile_data", {error = "Некорректный формат данных профиля", steam_id = steamId, player_name = playerName})
CustomGameEventManager:Send_ServerToPlayer(player, "player_profile_data", {error = "Invalid profile data format", steam_id = steamId, player_name = playerName})
return true
end
____print(
@@ -720,7 +720,7 @@ function MiniProfileServer.prototype.loadPlayerProfileFromServer(self, playerId,
player,
"player_profile_data",
{
error = "Ошибка сервера: " .. tostring(result.StatusCode),
error = "Server error: " .. tostring(result.StatusCode),
steam_id = steamId,
player_name = playerName
}
@@ -1554,7 +1554,7 @@ function MiniProfileServer.prototype.loadMatchPlayersFromServer(self, player, ma
local tryRequest
tryRequest = function(____, index)
if index >= #endpoints then
CustomGameEventManager:Send_ServerToPlayer(player, "match_players_data", {error = "Не удалось загрузить участников матча", match_id = matchId, players = {}})
CustomGameEventManager:Send_ServerToPlayer(player, "match_players_data", {error = "Failed to load match participants", match_id = matchId, players = {}})
return
end
local request = CreateHTTPRequestScriptVM("GET", endpoints[index + 1])