The i18n architecture is in place (include/lang.h + src/lang_en.c). Adding a Spanish translation is straightforward: create src/lang_es.c with const Lang g_lang = { ... } with Spanish strings and swap it in the build.
Files to create/modify:
src/lang_es.c — Spanish string table
build.bat — swap lang_en.c for lang_es.c (or add a build flag)
Strings that need translation: all fields in include/lang.h (~40 strings).
Adding a language selector at runtime (instead of compile-time swap) would also be a natural next step.
The i18n architecture is in place (
include/lang.h+src/lang_en.c). Adding a Spanish translation is straightforward: createsrc/lang_es.cwithconst Lang g_lang = { ... }with Spanish strings and swap it in the build.Files to create/modify:
src/lang_es.c— Spanish string tablebuild.bat— swaplang_en.cforlang_es.c(or add a build flag)Strings that need translation: all fields in
include/lang.h(~40 strings).Adding a language selector at runtime (instead of compile-time swap) would also be a natural next step.