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:
@@ -2472,7 +2472,7 @@ function CardSystem.prototype.CraftOrUpgradeCard(self, cardId, _allowDebris)
|
||||
return
|
||||
end
|
||||
if cardData.canupgrade == false then
|
||||
self:sendCardUpgradeResult(false, "Эту карту нельзя улучшать")
|
||||
self:sendCardUpgradeResult(false, "This card cannot be upgraded")
|
||||
return
|
||||
end
|
||||
local key = tostring(normalizedCardId)
|
||||
@@ -2524,7 +2524,7 @@ function CardSystem.prototype.CraftOrUpgradeCard(self, cardId, _allowDebris)
|
||||
if not isDefaultCard and not hasPurchasedCard then
|
||||
self:sendCardUpgradeResult(
|
||||
false,
|
||||
unlockCardId > 0 and cardData.deck_builder_non_deckable == true and getDeckBuilderUnlockRequiredMessage(nil, unlockCardId) or "Нельзя улучшить некупленную карту"
|
||||
unlockCardId > 0 and cardData.deck_builder_non_deckable == true and getDeckBuilderUnlockRequiredMessage(nil, unlockCardId) or "Cannot upgrade an unpurchased card"
|
||||
)
|
||||
return
|
||||
end
|
||||
@@ -2835,9 +2835,9 @@ function CardSystem.prototype.SaveDeckToServer(self, index, cards, deckName)
|
||||
else
|
||||
local deckData = self.decks[tostring(index)]
|
||||
if deckData and type(deckData) == "table" and deckData.name ~= nil then
|
||||
finalDeckName = deckData.name or "Колода " .. tostring(index)
|
||||
finalDeckName = deckData.name or "Deck " .. tostring(index)
|
||||
else
|
||||
finalDeckName = "Колода " .. tostring(index)
|
||||
finalDeckName = "Deck " .. tostring(index)
|
||||
end
|
||||
end
|
||||
local request = CreateHTTPRequestScriptVM(
|
||||
@@ -2914,14 +2914,14 @@ function CardSystem.prototype.UpdateActiveDeckOnServer(self)
|
||||
deckName = deckData[1]
|
||||
deckCards = __TS__ArraySlice(deckData, 1)
|
||||
elseif deckData and type(deckData) == "table" and deckData.name ~= nil then
|
||||
deckName = deckData.name or "Колода " .. tostring(index)
|
||||
deckName = deckData.name or "Deck " .. tostring(index)
|
||||
deckCards = deckData.cards or ({})
|
||||
else
|
||||
local keys = __TS__ArraySort(
|
||||
__TS__ObjectKeys(deckData),
|
||||
function(____, a, b) return __TS__ParseInt(a) - __TS__ParseInt(b) end
|
||||
)
|
||||
deckName = deckData[keys[1]] or "Колода " .. tostring(index)
|
||||
deckName = deckData[keys[1]] or "Deck " .. tostring(index)
|
||||
deckCards = __TS__ArrayFilter(
|
||||
__TS__ArrayMap(
|
||||
__TS__ArraySlice(keys, 1),
|
||||
@@ -3030,7 +3030,7 @@ function CardSystem.prototype.resolveDeckName(self, rawName, index)
|
||||
end
|
||||
end
|
||||
end
|
||||
return "Колода " .. tostring(index)
|
||||
return "Deck " .. tostring(index)
|
||||
end
|
||||
function CardSystem.prototype.getDeckCardsList(self, deckData)
|
||||
if not deckData then
|
||||
@@ -3308,7 +3308,7 @@ function CardSystem.prototype.SyncDecks(self)
|
||||
deckName = deckData[1]
|
||||
cardCount = #deckData - 1
|
||||
else
|
||||
deckName = deckData.name or "Колода " .. deckIndex
|
||||
deckName = deckData.name or "Deck " .. deckIndex
|
||||
local cards = deckData.cards
|
||||
cardCount = cards ~= nil and cards ~= nil and __TS__ArrayIsArray(cards) and #cards or 0
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user