ko4life-net / ko

Open source development of the game Knight Online. This is a reversed engineered old version of the game aiming to replicate the nostalgic experience we all once had <3
MIT License
52 stars 21 forks source link

Translate all code comments to English and convert to UTF8 #111

Open stevewgr opened 2 years ago

stevewgr commented 2 years ago

Description

The encoding topic has always been annoying from the beginning. We can fix this with an automated script and some regex magic.

Also thanks to AI and ML, Google Translate's translation has become quite advanced and accurate.

Tasks

The following steps should follow:

stevewgr commented 1 year ago

I'll pick this one.

stevewgr commented 1 year ago

Blocking this task for now, as I unfortunately had not much progress in case someone else is going to dig through this. This is a bit complicated parsing C/C++ comments using LLVM and replacing them with translated strings, as there are many different edge cases, such as block and multi-line comments that are formatted under multiple lines. It's probably easier working under Linux environment implementing this.

I might look into that later again.