Initial international language support for MCX

23 views
Skip to first unread message

Qianqian Fang

unread,
Jun 1, 2025, 4:30:14 PMJun 1
to mcx-users, mmc-...@googlegroups.com

hi everyone,

I uploaded a few commits in the past few days, adding the long-planned support for international language support (i18n) of mcx.

Github CI builds of the latest multi-language mcx and mcxlab can be found at

https://mcx.space/nightly/github/

use -y or --lang flag with nothing to list all supported languages (10 so far)

../bin/mcx --lang
Built-in languages:
    zh_cn    简体中文
    zh_tw    繁體中文(台灣)
    ja_jp    日本語
    fr_ca    Français canadien
    es_mx    Español mexicano
    de_de    Deutsch
    ko_kr    한국어
    hi_in    हिन्दी
    ru_ru    Русский
    pt_br    Português

-y/--lang followed by a language ID (such as zh_CN, fr_CA) to print using the specified language; use cfg.lang='zh_CN' in mcxlab or cfg['lang'] in pmcx to do the same in MATLAB/Python. pmcx has been updated to v0.4.2 on pypi with the lang flag support.


I did the translation for Simplified Chinese first, and used AI to further translate those to other languages. I am not surprised that it does something funny. 

If you are a native speaker of these languages, please help me verify if the translations make sense. Even for Chinese, I don't know the exact wordings for certain terminologies, such as partial-pathlength. Feel free to help me further improve those. 

The translation source file is here:

https://github.com/fangq/mcx/blob/master/src/mcx_lang.c

if you are willing to contribute to improving these translations, fixing typos, or adding your own language that is not supported, please go to Github and create a PR (pull request) - see recommended steps.

I attached some screenshots, you can see more in this Linkedin post

https://www.linkedin.com/posts/fangq_i18n-mcx-activity-7335029243275313152-rfox/


Qianqian

mcx_lang_cmd1.png
mcxlab_lang.png
Reply all
Reply to author
Forward
0 new messages