Skip to content

Commit

Permalink
reorganize build logic
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaohong6 committed Jan 29, 2023
1 parent 9b7813e commit 4f07133
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 44 deletions.
6 changes: 3 additions & 3 deletions i18n/i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from config.path_config import document_path

target_dir = document_path.joinpath("i18n")
gettext.bindtextdomain('domain', target_dir)
gettext.textdomain('domain')
gettext.bindtextdomain('messages', target_dir)
gettext.textdomain('messages')
trans = gettext.gettext


Expand All @@ -17,4 +17,4 @@ def get_trans(s: str):

def set_language(lang: str = 'en'):
global trans
trans = gettext.translation('domain', target_dir, (lang,)).gettext
trans = gettext.translation('messages', target_dir, (lang,)).gettext
1 change: 0 additions & 1 deletion install.bat

This file was deleted.

7 changes: 7 additions & 0 deletions make_source.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
rm -rf dist
mkdir dist
cp -r config i18n models utils main.py parse_lyrics.py process_image.py README.md config_simple.yaml requirements.txt dist
mv dist/config_simple.yaml dist/config.yaml
msgfmt dist/i18n/en/LC_MESSAGES/messages.po -o dist/i18n/en/LC_MESSAGES/messages.mo
msgfmt dist/i18n/zh/LC_MESSAGES/messages.po -o dist/i18n/zh/LC_MESSAGES/messages.mo
tar -czf macOS.zip dist
2 changes: 0 additions & 2 deletions run.bat

This file was deleted.

26 changes: 0 additions & 26 deletions user-config.py

This file was deleted.

12 changes: 0 additions & 12 deletions user-password.py

This file was deleted.

0 comments on commit 4f07133

Please sign in to comment.