On Oct 24, 2024, at 12:20 AM, 刘俊骅 via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:Dear Eric,Thank you very much for your detailed explanation and the tremendous effort you have put into developing ChimeraX.Driven by my interest, I will now take the time to further study the code and explore how I can customize the GUI interface to better suit my needs.Once again, thank you for your support and for creating such an outstanding tool. Your work is truly making a significant impact on the scientific community.Best regards,_______________________________________________Junhua Liu------------------ 原始邮件 ------------------发件人: "ChimeraX Users Help" <pett@cgl.ucsf.edu>;发送时间: 2024年10月23日(星期三) 凌晨2:37收件人: "chimerax-users"<chimerax-users@cgl.ucsf.edu>;抄送: "刘俊骅"<273667986@qq.com>;主题: Re: [chimerax-users] Inquiry About Translating ChimeraX GUI LanguageWhen we initially were designing ChimeraX we thought about using Qt's language support, but that would have added significant overhead to the implementation effort, and since we had a small programming team and many years of development effort ahead of us to just get a useful working program together, we decided to skip including the language support and just use English text.Translating the interface into another language is probably doable for some subset of the menus and tools, but would be quite a daunting task to do completely, since in many cases the text is programmatically generated based on what the underlying data contains. For instance, there are functions in chimerax.core.commands for generating the plural forms of words on an as-needed basis.--EricEric PettersenUCSF Computer Graphics LabOn Oct 22, 2024, at 11:14 AM, Tom Goddard via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:Hi Junhua,_______________________________________________That would be great to add some Chinese language support in ChimeraX. We haven't looked into supporting languages other than English, but there are many Chinese speaking ChimeraX users. ChimeraX uses the Qt window toolkit which has "internationalization" support. Specifically ChimeraX uses the Python interface to Qt, called PyQt. If you figured out how to customize the ChimeraX GUI text we'd be interested in including that in ChimeraX. Your ChiimeraX distribution includes all the Python code which creates the user interface, so you could experiment with just changing the Python code in your distribution. The ChimeraX code is also on Github hereHere is the place in the code where the top level File, Edit, Select, Actions, Tools, ... menus are created.I guess the individual menu entries are added in many places in the code. For instance the File / Open... entry is hereand it uses the add_menu_entry() function which probably is used to add all the menu entriesLet us know what you figure out.TomOn Oct 22, 2024, at 9:36 AM, 刘俊骅 via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:Dear UCSF ChimeraX Developers,
I hope this email finds you well.
Firstly, I would like to express my sincere gratitude for developing such a powerful and versatile software as UCSF ChimeraX. It has been an invaluable tool for my research and visualization needs.
I have a question regarding the translation of the GUI interface language. I am interested in translating the interface into another language. Since I noticed that UCSF ChimeraX is based on Python, I was wondering if it is possible to modify certain .json, .py, or .xml files to change the displayed language. My intention is purely for personal use, and I have no plans to distribute or profit from any modifications.
Could you please provide any guidance or resources on how to achieve this? Any pointers or documentation would be greatly appreciated.
Thank you very much for your time and consideration.
Best regards!
Junhua Liu 273667986@qq.com
_______________________________________________
ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu
To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu
Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/
ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu
To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu
Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/
ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu
To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu
Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/