
I think that was meant for Tom, I barely said anything, but thank you on his behalf and good luck with your translation project! We’re excited to see it. — Zach
On 24 Oct 2024, at 00:14, 刘俊骅 <273667986@qq.com> wrote:
Dear Zach, Thank you very much for your detailed and clear response. The direction you provided has been extremely helpful and will enable me to delve deeper into understanding these projects. I am excited to explore the code and see how I can customize the GUI interface to better suit my needs. Your guidance has given me a great starting point, and I appreciate the time and effort you have invested in helping me. Your support is greatly appreciated, and it reinforces my enthusiasm for working with ChimeraX. Once again, thank you for your assistance and for developing such an outstanding tool. Your work is truly making a significant impact on the scientific community. Best regards, Junhua Liu
------------------ 原始邮件 ------------------ 发件人: "Zach Pearson" <zjp@cgl.ucsf.edu>; 发送时间: 2024年10月23日(星期三) 凌晨2:35 收件人: "刘俊骅"<273667986@qq.com>; 抄送: "ChimeraX Users Help"<chimerax-users@cgl.ucsf.edu>; 主题: Re: [chimerax-users] Inquiry About Translating ChimeraX GUI Language
A very cursory googling for ‘PyQt multilanguage’ brings up this repo: https://github.com/yjg30737/pyqt-multi-language-example but it is for PyQt5.
Feel free to fork the ChimeraX repository and make pull requests. We would be eager to learn how to do this and turn it into a community-driven project.
— Zach
On 22 Oct 2024, at 11:14, 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 here
https://github.com/RBVI/ChimeraX
Here is the place in the code where the top level File, Edit, Select, Actions, Tools, ... menus are created.
https://github.com/RBVI/ChimeraX/blob/1f1a0512d53424163992b53eadeffd2d9e39d4...
I guess the individual menu entries are added in many places in the code. For instance the File / Open... entry is here
https://github.com/RBVI/ChimeraX/blob/1f1a0512d53424163992b53eadeffd2d9e39d4...
and it uses the add_menu_entry() function which probably is used to add all the menu entries
https://github.com/RBVI/ChimeraX/blob/1f1a0512d53424163992b53eadeffd2d9e39d4...
Let us know what you figure out.
Tom
On 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/