Jabka666 / scpcb-ue-my

SCP - Containment Breach Ultimate Edition
31 stars 11 forks source link

Better subtitle localization #56

Closed ZiYueCommentary closed 1 year ago

ZiYueCommentary commented 1 year ago

Original subtitle localization has a problem, for example:

Chinese subtitles (Localization\zh-CN\Data\subtitles.ini):

[SFX\SCP\035\Gased1.ogg]
Person = 1
LinesAmount = 9
Txt1 = "- 等等,你在干什么?你他妈——"
Timer1 = 2.91
Timer2 = 2.13
Txt3 = "- 为什么——"
Timer3 = 0.78
Timer4 = 0.39
Txt5 = "- 求你了——"
Timer5 = 0.71
Timer6 = 1.19
Txt7 = "- 我没法呼吸了..."
Timer7 = 0.71
Timer8 = 1.54
Txt9 = "- 不!"
Timer9 = 0.43

and English subtitles (Data\subtitles.ini)

[SFX\SCP\035\Gased1.ogg]
Person=1
LinesAmount=11
Timer1=0.195
Txt2="- Wait, what the hell are you doing?"
Timer2=1.705
Txt3="- What the hell are..."
Timer3=0.8
Txt4="- [COUGHING]"
Timer4=1.55
Txt5="- Will you please why..."
Timer5=1.6
Txt6="- Just please..."
Timer6=1.1
Txt7="- [COUGHING]"
Timer7=1.005
Txt8="- I can't breathe!"
Timer8=0.955
Txt9="- [COUGHING]"
Timer9=1.5
Txt10="- No!"
Timer10=0.4
Txt11="- [COUGHING]"
Timer11=3.81

when game reading subtitles, these things will become this:

[SFX\SCP\035\Gased1.ogg]
Person = 1
LinesAmount = 9
Txt1 = "- 等等,你在干什么?你他妈——"
Timer1 = 2.91
Txt2="- Wait, what the hell are you doing?"
Timer2 = 2.13
Txt3 = "- 为什么——"
Timer3 = 0.78
Txt4="- [COUGHING]"
Timer4 = 0.39
Txt5 = "- 求你了——"
Timer5 = 0.71
Txt6="- Just please..."
Timer6 = 1.19
Txt7 = "- 我没法呼吸了..."
Timer7 = 0.71
Txt8="- I can't breathe!"
Timer8 = 1.54
Txt9 = "- 不!"
Timer9 = 0.43

So to fix this bug, the game will only read subtitles from the localized file.