中文说明 This repo provides a translation for the awesome Trilium Notes. If you'd like to translate Trilium Notes into any language you like, please follow this guide. Currently, I have translated Trilium Notes into Chinese. The translation will keep update to the latest Trilium Notes' stable releases.
Star this repo if you like it, thx :)
If you have old data, PLEASE BACK UP YOUR DATA BEFORE USE.
- Trilium Translation
- Table of Contents
- Screenshots
- How to use
- How to run server with docker
- How to translate
- Limitations
- Stargazers over time
- Donation
- Thanks
Original dark theme
Original light theme
Nier theme made by me :)
Canvas Note
Math formular
- Download from the latest Release that suit your computer system.
- Unzip and execute(trilium for Linux, trilium.sh for Linux server, trilium.exe for Windows, trilium.app for macOS).
- Enjoy :)
For Trilium Notes server, you can download my docker-compose.yml Then run it with docker simply by executing:
docker-compose up -d
It will download the Chinese version of Trilium I built on Docker Hub.
Open http://127.0.0.1:8080 in your browser to access the server page.
Your note data will be in the same directory of the docker-compose.yml file.
If you would like to check the code (my codes comes with Chinese and English comments, check it) and compile it by yourself. Here is some information may be useful.
WARNING! The scripts I wrote includes some 'rm -rf' commands, modify and use codes with care!
It extracts the resource files from the latest Trilium Notes official release and use regular expression to replace UI text for each file. Then pack the translated files back into the package. Done.
My environment is Manjaro(Linux)/macOS based, but you can make some change to work on other platform. You need to change some path configuration in my code to work on your machine.
Python3 with module
pip3 install requests --user
Nodejs with module
npm install -g asar
npm install -g webpack
npm install -g webpack-cli
7z if you want to make release
- Modify configurations in
settings.py
by the comments. - Do translate in
translations.py
. (Seetranslations_cn.py
. There are over 1000 lines to translate, be patient :) ) - Run
python3 init.py
to download latest Trilium Notes. - Run
python3 trans.py
to make a translation patch. - Run
python3 make_release.py
to apply patch to releases for all platforms.
Note: In translations.py
there are some texts begin or ends with quotes were made on purpose for regex match, do not
remove them in your translation. There are some text like '${xxxx}' in the translation, these are the placeholder in the
original Trilium Notes source code, do not modify them unless you know what you are doing.
If you'd like to translate more text, mark each text in the file that you want to translate with double brackets{{}}
like I did in trans.py
.
Put everything between double brackets into the dict in translations.py
and translate to the language you like. (Some
text were ended with }
. Try to avoid triple brackets by change from ${xxx}}}'
to something like ${xxx}'}}
)
The translation is hard-coded in the frontend/backend source code, so you can not switch between languages. If there were some mistakes in the translation, Trilium Notes may not function correctly. Therefore, please back up your data before use.
If you break Trilium Notes somehow, you need to redownload everything with init.py
.
Generated by caarlos0/starcharts.
If my work helped you, donation is very welcomed, I would be a great inspiration!
Thank you for your support, it fills me with determination.
Thanks t**e
for donating 20 CNY!
Thanks 1*0
for donating 8 CNY! Memo: 蜜雪冰城
Thanks **钧
for donating 38 CNY! Memo: 咖啡
Thanks *风
for donating 25 CNY!
Thanks **进
for donating 25 CNY!
Thanks *军
for donating 18 CNY! Memo: 七分甜
Thanks **逸
for donating 10 CNY!
Thanks **恩
for donating 30 CNY!
Thanks **莲
for donating 10 CNY!
Thanks **楷
for donating 5 CNY!
Thanks J*s
for donating 50 CNY!
Thanks *记
for donating 10 CNY! Memo: 多谢大佬的辛勤付出
Thanks *睿
for donating 5 CNY! Memo: 感谢您的自动命名工具
Thanks *建
for donating 200 CNY! Memo: trilium
Thanks *称
for donating 10 CNY!
Thanks **逸
for donating 10 CNY! Memo: 大佬牛逼
Thanks *斌
for donating 10 CNY!
Thanks *僧
for donating 30 CNY! Memo: 加油,老哥!
Thanks *天
for donating 9 CNY!
Thanks *均
for donating 30 CNY! Memo: 翻译辛苦了,喝杯咖啡
Thanks A*s
for donating 30 CNY!
Thanks **逸
for donating 20 CNY!
Thanks *臾
for donating 30 CNY!
Thanks *冰
for donating 10 CNY!
Thanks *遥
for donating 10 CNY! Memo: 感谢群主的翻译
Thanks **庆
for donating 10 CNY!
Thanks **逸
for donating 50 CNY!
Thanks **聪
for donating 10 CNY! Memo: 很大的帮助翻译家!爱来自**
Thanks *メ
for donating 200 CNY!
Thanks **奇
for donating 20 CNY!
Thanks *磊
for donating 10 CNY!
Thanks *姆
for donating 5 CNY!
Thanks **锐
for donating 20 CNY! Memo: 感谢您的工作,请您喝杯咖啡
Thanks **行
for donating 10 CNY! Memo: 小葱白贡献绵薄之力
Thanks 鞠*M
for donating 10 CNY! Memo: 感谢大佬,请喝水
Thanks *🐈
for donating 10 CNY!
Thanks *白
for donating 10 CNY! Memo: 小葱白献上
Thanks *白
for donating 5 CNY! Memo: 小葱白献上
Thanks for the greate IDE Pycharm from Jetbrains.