From 09285954a8ae8d2bc441156a9bba7a6c8ae3ccd7 Mon Sep 17 00:00:00 2001 From: harry Date: Thu, 11 Apr 2024 20:22:27 +0800 Subject: [PATCH] optimize i18n --- app/config/config.py | 2 +- webui/Main.py | 2 +- webui/i18n/de.json | 2 +- webui/i18n/en.json | 2 +- webui/i18n/zh.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/config/config.py b/app/config/config.py index 2afcdd02..19d4a777 100644 --- a/app/config/config.py +++ b/app/config/config.py @@ -53,7 +53,7 @@ def save_config(): project_name = _cfg.get("project_name", "MoneyPrinterTurbo") project_description = _cfg.get("project_description", "https://github.com/harry0703/MoneyPrinterTurbo") -project_version = _cfg.get("project_version", "1.0.1") +project_version = _cfg.get("project_version", "1.1.0") reload_debug = False imagemagick_path = app.get("imagemagick_path", "") diff --git a/webui/Main.py b/webui/Main.py index 2712b282..7eb10fb2 100644 --- a/webui/Main.py +++ b/webui/Main.py @@ -38,7 +38,7 @@ """ st.markdown(hide_streamlit_style, unsafe_allow_html=True) -st.title("MoneyPrinterTurbo") +st.title(f"MoneyPrinterTurbo v{config.project_version}") font_dir = os.path.join(root_dir, "resource", "fonts") song_dir = os.path.join(root_dir, "resource", "songs") diff --git a/webui/i18n/de.json b/webui/i18n/de.json index 63bd3976..d68899bf 100644 --- a/webui/i18n/de.json +++ b/webui/i18n/de.json @@ -58,6 +58,6 @@ "Model Name": "Model Name", "Please Enter the LLM API Key": "Please Enter the **LLM API Key**", "Please Enter the Pexels API Key": "Please Enter the **Pexels API Key**", - "Get Help": "If you need help, or have any questions, you can join discord for help: https://harryai.cc/moneyprinterturbo" + "Get Help": "If you need help, or have any questions, you can join discord for help: https://harryai.cc" } } \ No newline at end of file diff --git a/webui/i18n/en.json b/webui/i18n/en.json index 47bd0731..f30e4e73 100644 --- a/webui/i18n/en.json +++ b/webui/i18n/en.json @@ -58,6 +58,6 @@ "Model Name": "Model Name", "Please Enter the LLM API Key": "Please Enter the **LLM API Key**", "Please Enter the Pexels API Key": "Please Enter the **Pexels API Key**", - "Get Help": "If you need help, or have any questions, you can join discord for help: https://harryai.cc/moneyprinterturbo" + "Get Help": "If you need help, or have any questions, you can join discord for help: https://harryai.cc" } } \ No newline at end of file diff --git a/webui/i18n/zh.json b/webui/i18n/zh.json index 7d71d05b..24f4b224 100644 --- a/webui/i18n/zh.json +++ b/webui/i18n/zh.json @@ -58,6 +58,6 @@ "Model Name": "模型名称 (:blue[需要到大模型提供商的后台确认被授权的模型名称])", "Please Enter the LLM API Key": "请先填写大模型 **API Key**", "Please Enter the Pexels API Key": "请先填写 **Pexels API Key**", - "Get Help": "有任何问题或建议,可以加入 **微信群** 求助或讨论:https://harryai.cc/moneyprinterturbo" + "Get Help": "有任何问题或建议,可以加入 **微信群** 求助或讨论:https://harryai.cc" } } \ No newline at end of file