You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This situation is currently only for building ultimate-geography==v5.0 with brain-brew==0.3.2, some possible problems may happen. Our project should be adapted to the latest version (should be >=0.3.6)
For the introduction page of the deck, we have added multi-language support. You can modify the corresponding desc.html by modifying the following and then adding src/headers/desc_zh.html. Note: We use Chinese as Example (Language code: ZH, the same below)
Modify the desc_zh.html encoding set to the default character set of your operating system (usually GBK/ASCII), but this method is not universal, and many friends in other regions will not be able to use brain-brew to build Build files. Clipped
Make the following modifications to directly modify the html_file.py in the python installed package brain_brew. This method can keep our code synchronized (recommended)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
How to translate deck header with brain-brew==0.3.2(EN&CN)
1. 怎么做?/ How to do this?
针对卡组的介绍页,我们加入了多语言的支持,可以通过如下的修改然后增加
src/headers/desc_zh.html
来修改对应的desc.html,需要注意这里我们以中文为例(编号:ZH,下同)For the introduction page of the deck, we have added multi-language support. You can modify the corresponding desc.html by modifying the following and then adding
src/headers/desc_zh.html
. Note: We use Chinese as Example (Language code: ZH, the same below)2. 编码集的问题 / Encoding issues
desc_zh.html推荐编码集为UTF-8,但是可能会遇到编译的一些错误,具体可参考brain-brew#39
The desc_zh.html recommended encoding set is UTF-8, but some compilation errors may be encountered. For details, please refer to brain-brew#39
我这里有两种针对中文Windows的解决方法
I have two solutions for Chinese Windows
Modify the desc_zh.html encoding set to the default character set of your operating system (usually GBK/ASCII), but this method is not universal, and many friends in other regions will not be able to use brain-brew to build Build files. Clipped
Make the following modifications to directly modify the html_file.py in the python installed package brain_brew. This method can keep our code synchronized (recommended)
Beta Was this translation helpful? Give feedback.
All reactions