Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
qwinsi committed Oct 3, 2023
1 parent b761e69 commit 5944094
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,30 @@ pip install -r requirements.txt
### Runnning

```shell
lrelease ./lang/*.ts # Generate ./lang/*.qm files
python app.py
```
`lrelease` is shipped with Qt. You can find it in the Qt installation directory. e.g.
```
C:\Qt\Qt5.14.2\5.14.2\mingw73_64\bin\lrelease.exe
```

If you don't want to install Qt, you can get *.qm files from our latest release. Download the zip file and extract it, *qm files are in the `lang/` folder.


### I18n

To help with the translation, do the following:
To help with the translation, do the following steps.

First run pylupdate5 to update the .ts files.

```shell
pylupdate5 app.py -ts ./lang/*.ts
# Manually edit the ts file you want to translate. e.g. ./lang/zh_CN.ts
```
Then manually edit the ts file you want to translate. e.g. ./lang/zh_CN.ts

Finally use Qt’s lrelease utility to convert the .ts files to .qm files.
```shell
lrelease ./lang/*.ts
```

Expand Down

0 comments on commit 5944094

Please sign in to comment.