Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / Documentation / translations / zh_CN / doc-guide / checktransupdate.rst
blobd20b4ce66b9fd0316c1296e218512ee0ccff0de4
1 .. SPDX-License-Identifier: GPL-2.0
3 .. include:: ../disclaimer-zh_CN.rst
5 :Original: Documentation/doc-guide/checktransupdate.rst
7 :译者: 慕冬亮 Dongliang Mu <dzm91@hust.edu.cn>
9 检查翻译更新
11 这个脚本帮助跟踪不同语言的文档翻译状态,即文档是否与对应的英文版本保持更新。
13 工作原理
14 ------------
16 它使用 ``git log`` 命令来跟踪翻译提交的最新英文提交(按作者日期排序)和英文文档的
17 最新提交。如果有任何差异,则该文件被认为是过期的,然后需要更新的提交将被收集并报告。
19 实现的功能
21 - 检查特定语言中的所有文件
22 - 检查单个文件或一组文件
23 - 提供更改输出格式的选项
24 - 跟踪没有翻译过的文件的翻译状态
26 用法
27 -----
31     ./scripts/checktransupdate.py --help
33 具体用法请参考参数解析器的输出
35 示例
37 -  ``./scripts/checktransupdate.py -l zh_CN``
38    这将打印 zh_CN 语言中需要更新的所有文件。
39 -  ``./scripts/checktransupdate.py Documentation/translations/zh_CN/dev-tools/testing-overview.rst``
40    这将只打印指定文件的状态。
42 然后输出类似如下的内容:
46     Documentation/dev-tools/kfence.rst
47     No translation in the locale of zh_CN
49     Documentation/translations/zh_CN/dev-tools/testing-overview.rst
50     commit 42fb9cfd5b18 ("Documentation: dev-tools: Add link to RV docs")
51     1 commits needs resolving in total
53 待实现的功能
55 - 文件参数可以是文件夹而不仅仅是单个文件