Skip to content

Commit

Permalink
调整提示信息内容,避免误解
Browse files Browse the repository at this point in the history
  • Loading branch information
YanMing-lxb committed Oct 6, 2024
1 parent a294ce1 commit af316d6
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 26 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* -----------------------------------------------------------------------
* Author : 焱铭
* Date : 2024-09-01 19:38:56 +0800
* LastEditTime : 2024-10-06 21:45:36 +0800
* LastEditTime : 2024-10-06 21:53:06 +0800
* Github : https://github.com/YanMing-lxb/
* FilePath : /PyTeXMK/CHANGELOG.md
* Description :
Expand Down Expand Up @@ -45,6 +45,7 @@
### 改进
- 去掉冗余代码,调整显示
- 完善 README,新增基础使用
- 调整提示信息内容,避免误解

### 修复
- 修复 log文件中存在 “No file {self.project_name}.bbl” 时,编译次数判断错误的问题 https://github.com/YanMing-lxb/PyTeXMK/issues/2
Expand Down
4 changes: 2 additions & 2 deletions src/pytexmk/compile_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
-----------------------------------------------------------------------
Author : 焱铭
Date : 2024-02-29 15:43:26 +0800
LastEditTime : 2024-10-06 21:36:29 +0800
LastEditTime : 2024-10-06 21:52:27 +0800
Github : https://github.com/YanMing-lxb/
FilePath : /PyTeXMK/src/pytexmk/compile_module.py
Description :
Expand Down Expand Up @@ -532,7 +532,7 @@ def index_judgment(self, index_aux_content_dict_old):
if make_index:
run_index_list_cmd.append(['makeidx', f"makeindex {self.project_name}.idx"])
else:
print_index = _("glossaries、nomencl 和 makeidx 以外宏包,无法进行编译索引")
print_index = _("使用 glossaries、nomencl 和 makeidx 以外宏包或未设置索引,因此不编译索引")
return print_index, run_index_list_cmd

# --------------------------------------------------------------------------------
Expand Down
Binary file modified src/pytexmk/locale/en/LC_MESSAGES/compile.mo
Binary file not shown.
36 changes: 18 additions & 18 deletions src/pytexmk/locale/en/additional.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-09-12 14:49+0800\n"
"POT-Creation-Date: 2024-10-06 21:53+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -74,7 +74,7 @@ msgid "通过特征命令检索到主文件: "
msgstr "Retrieved main file via feature command: "

#: src/pytexmk/additional_module.py:280 src/pytexmk/additional_module.py:334
#: src/pytexmk/additional_module.py:534
#: src/pytexmk/additional_module.py:530
msgid "打开文件失败: "
msgstr "Failed to open file: "

Expand Down Expand Up @@ -180,71 +180,71 @@ msgstr "Processing file: %(args)s, file size: "
msgid "文件较小,直接读取到内存处理"
msgstr "File is small, reading directly into memory for processing"

#: src/pytexmk/additional_module.py:464 src/pytexmk/additional_module.py:480
#: src/pytexmk/additional_module.py:464
msgid "未匹配到内容, 文件未修改."
msgstr "No content matched, file not modified."

#: src/pytexmk/additional_module.py:471
msgid "文件较大,逐行处理"
msgstr "File is large, processing line by line"

#: src/pytexmk/additional_module.py:484
#: src/pytexmk/additional_module.py:480
msgid "启用草稿模式"
msgstr "Draft mode enabled"

#: src/pytexmk/additional_module.py:486
#: src/pytexmk/additional_module.py:482
msgid "关闭草稿模式"
msgstr "Draft mode disabled"

#: src/pytexmk/additional_module.py:488
#: src/pytexmk/additional_module.py:484
msgid "文件未找到: "
msgstr "File not found: "

#: src/pytexmk/additional_module.py:490
#: src/pytexmk/additional_module.py:486
msgid "权限错误: 无法读取或写入文件: "
msgstr "Permission error: Unable to read or write file: "

#: src/pytexmk/additional_module.py:492
#: src/pytexmk/additional_module.py:488
msgid "更新草稿模式时出错: "
msgstr "Error updating draft mode: "

#: src/pytexmk/additional_module.py:495
#: src/pytexmk/additional_module.py:491
msgid "草稿模式未启用, 跳过处理."
msgstr "Draft mode not enabled, skipping processing."

#: src/pytexmk/additional_module.py:513
#: src/pytexmk/additional_module.py:509
msgid "未设置 PDF 查看器,使用默认 PDF 查看器"
msgstr "No PDF viewer set, default PDF viewer used"

#: src/pytexmk/additional_module.py:516
#: src/pytexmk/additional_module.py:512
msgid "设置 PDF 查看器: "
msgstr "Setting up the PDF viewer: "

#: src/pytexmk/additional_module.py:529
#: src/pytexmk/additional_module.py:525
msgid "文件路径: "
msgstr "File path: "

#: src/pytexmk/additional_module.py:573
#: src/pytexmk/additional_module.py:569
#, fuzzy
msgid "当前路径下未找到 PDF 文件"
msgstr "No PDF files found in current path: "

#: src/pytexmk/additional_module.py:576
#: src/pytexmk/additional_module.py:572
msgid "找到 PDF 文件数目: "
msgstr "Number of PDF files found: "

#: src/pytexmk/additional_module.py:587
#: src/pytexmk/additional_module.py:583
msgid "修复成功: "
msgstr "Fix successful: "

#: src/pytexmk/additional_module.py:589
#: src/pytexmk/additional_module.py:585
msgid "修复失败: "
msgstr "Fix failed: "

#: src/pytexmk/additional_module.py:590
#: src/pytexmk/additional_module.py:586
msgid "[bold green]修复 PDF 结束[/bold green]"
msgstr "[bold green]PDF fix complete[/bold green]"

#: src/pytexmk/additional_module.py:598
#: src/pytexmk/additional_module.py:594
msgid "[bold red]正在退出 PyTeXMK..."
msgstr "[bold red]Exiting PyTeXMK..."
10 changes: 5 additions & 5 deletions src/pytexmk/locale/en/compile.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-09-02 09:31+0800\n"
"POT-Creation-Date: 2024-10-06 21:53+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -103,10 +103,10 @@ msgstr ""
"missing: "

#: src/pytexmk/compile_module.py:535
msgid "glossaries、nomencl 和 makeidx 以外宏包,无法进行编译索引"
msgstr ""
"Cannot compile index with packages other than glossaries, nomencl, and "
"makeidx"
#, fuzzy
msgid ""
"使用 glossariesnomencl 和 makeidx 以外宏包或未设置索引,因此不编译索引"
msgstr "Index not compiled because a package other than glossaries, nomencl, or makeidx is used or the index is not set up."

#: src/pytexmk/compile_module.py:591
msgid "DVIPDFMX 编译失败,请查看日志文件以获取详细信息: "
Expand Down

0 comments on commit af316d6

Please sign in to comment.