Halflife: [Goldsrc / Feature Request?] Localization/Formatting issues

Created on 30 May 2019  路  5Comments  路  Source: ValveSoftware/halflife

Is it possible add UTF-8 to in-game text? Lack of UTF-8, made Korean language in Half-Life (and others) pretty much broken. I'm not requesting this for Korean only but it'll be a good thing for other language translations. So the translations won't be limited with English words only.

Broken Korean titles:

20190530125153_1

internationalisation

Most helpful comment

Launching the game with -condebug -dev prints how many messages are parsed:
Parsed 0 text messages

There are supposed to be 143. The engine is loading the file but is failing to parse them. I think the TrimSpace function doesn't work properly with Unicode characters, so that's where i'd start looking.

All 5 comments

The engine does support UTF8, but it might not be working everywhere.

According to SteamDB there is a Korean version of the game for localization, and it has a titles.txt. If it has the correct strings listed then the engine is failing to load them. If it doesn't, the translations are incomplete and need to be corrected.

Can you verify that they are present?

Hey @SamVanheer

I can confirm they're present and translation is displayed correctly in Notepad++. As you said game fails to display them.
cats

Korean translation also using gameui_koreana.txt, valve_koreana.txt, spectcammenu.txt, and titles.txt

gameui and valve_koreana works perfectly since vgui supports UTF-8.
20190530133145_1

Launching the game with -condebug -dev prints how many messages are parsed:
Parsed 0 text messages

There are supposed to be 143. The engine is loading the file but is failing to parse them. I think the TrimSpace function doesn't work properly with Unicode characters, so that's where i'd start looking.

515 also posted.

I'm trying to implement Japanese closed captioning with HUD text, but I'm giving up on it because it doesn't display UTF8 characters correctly.
In addition, the chat messages seem to be UTF8 compatible.

https://github.com/ValveSoftware/halflife/issues/515#issuecomment-638515819

Was this page helpful?
0 / 5 - 0 ratings