bvschaik / julius

An open source re-implementation of Caesar III
GNU Affero General Public License v3.0
2.85k stars 317 forks source link

Add dump_lang_data() to log translated texts and messages #690

Closed feiyunw closed 1 year ago

feiyunw commented 1 year ago

This PR add a debug helper function: dump_lang_data. It logs src/core/lang.c data content to help checking texts and messages validity. It's called only when you change the language setting in the Options menu, thus the log won't appear normally.

It helps #689 to identify corrupted/duplicate/empty translation text and messages.

bvschaik commented 1 year ago

You should use EngConverter for this purpose.

Julius is a production game. Having a bit of code that logs several megabytes of data to a file is not acceptable.