Skip to content

Add Chinese translations#989

Open
cnsiwang wants to merge 6 commits into
SirPlease:masterfrom
cnsiwang:master
Open

Add Chinese translations#989
cnsiwang wants to merge 6 commits into
SirPlease:masterfrom
cnsiwang:master

Conversation

@cnsiwang

Copy link
Copy Markdown

just Add Chinese translations Test on myserver 202.189.15.5:30001

@SirPlease

Copy link
Copy Markdown
Owner

Hello, thanks for your contribution.
However, there are a few issues in your pull request:

File breaking

l4d2_skill_detect
CalarmTouchedJockey phrase is missing its closing quote.

blocktrolls
Every phrase uses "en" as the language key with Chinese translations.

Non-existing translations, you probably based your translations on a different version of the translations/plugins.

l4d2_tank_horde_monitor
4 of 6 keys don't exist here (HordePaused, WarningPercent, StrenthPercent, 100PercentStrenth)
This repository renamed them to TankPlay, UntilHordeStarts, HordeStrength, HordeVeryStrength.
The translations are fine, they just need the keys renamed.
It also has duplicated "en" lines that should be deleted.

pause
4 *Initiator variants aren't used in the plugin.

l4d2_stats
assister, AssistShotsSingular, AssistShotsPlural are not used.

l4d_boss_vote
RoundNotReachLimit is not used.
Also uses an "en" key and contains a random joke: "您这个难度就想马上逃课了?"

playermanagement
Print_Move_Spectator is not used.

1v1
AI is not used.

Format issues

l4d2_skill_detect
9 phrases changed {N:t} to {N:s}
:t is what makes them translate per-client.
You translate those words, then breaks the mechanism that would use them by using a raw string.

1v1
Healthremaining is changed from {1:N} to 1:s}, the plugin passes a client index, not a name.

Other issues

pause
You added [!] into the phrases, but the plugin already has them hardcoded meaning messages will show up with [!] [!] rather than just one.
18 of the base phrases are not translated.

@cnsiwang

Copy link
Copy Markdown
Author

All problems have been fixed

@cnsiwang

cnsiwang commented Jul 14, 2026

Copy link
Copy Markdown
Author

Hi sirplease,
I found a new issue. In your original translation,
"HealthRemaining"
{
"#format" "{1:N},{2:s},{3:d}" // 1:iAttacker 2:L4D2_InfectedNames[iZclass] 3:iRemainingHealth
"en" "{red}{1}{default} ({green}{2}{default}) had {olive}{3}{default} health remaining!"
}
However, this causes the name to not display. The actual effect looks like this: [1v1] (Hunter) had 250 health remaining!
In my latest Chinese translation version, I have already fixed this issue.
You only need to change 1:iAttacker to 1:sName, and that's it.
"Fixed version:
[1v1] 死亡中心最菜传说(Hunter) had 250 health remaining!"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants