From: Yanteng Si <hidden> Date: 2021-05-12 08:33:14
v3:
* Pick Alex'S review-by tag.
v2:
Some bad translations have been modified as suggested by Alex.Thank you for your review.
https://lore.kernel.org/linux-doc/CAEensMwq=i+nek6sNeqOJJMY648Q9ZF8cTKpXdJVuqdQQnMWUw@mail.gmail.com/T/#t
v1:
This patch translates Documentation/core-api/workqueue.rst into Chinese.
Signed-off-by: Yanteng Si <redacted>
Reviewed-by: Alex Shi <redacted>
---
.../translations/zh_CN/core-api/index.rst | 5 +
.../translations/zh_CN/core-api/workqueue.rst | 336 ++++++++++++++++++
2 files changed, 341 insertions(+)
create mode 100644 Documentation/translations/zh_CN/core-api/workqueue.rst
Text like the above belongs below the "---" line so I don't have to edit
it out of the changelog by hand.
quoted
This patch translates Documentation/core-api/workqueue.rst into Chinese.
Signed-off-by: Yanteng Si <redacted>
Reviewed-by: Alex Shi <redacted>
I fixed that typo too - it appears to originate from Alex...:)
Actually, I've dropped this back out; it creates vast numbers of
warnings:
Documentation/core-api/workqueue:398: ./include/linux/workqueue.h:3: WARNING: Duplicate C declaration, also
defined at translations/zh_CN/core-api/workqueue:3.
This will be the result of the ".. kernel-doc::" directives at the end,
which create new definitions (within sphinx) for all the symbols pulled
in.
In the long term, we may want to try to find some sort of fix for this.
But we're really just recreating a bunch of (English-language)
documentation that's already rendered once; I'm not sure it makes any
real sense to do that. So I would suggest that, for now, when you are
translating documents with kernel-doc directives, you should leave those
directives out. Stick in a note directing readers to the original if
they want to see that material...
Make sense?
Thanks,
jon
This patch translates Documentation/core-api/workqueue.rst into Chinese.
Signed-off-by: Yanteng Si <redacted>
Reviewed-by: Alex Shi <redacted>
I fixed that typo too - it appears to originate from Alex...:)
Sorry for the typo.
Actually, I've dropped this back out; it creates vast numbers of
warnings:
quoted
Documentation/core-api/workqueue:398: ./include/linux/workqueue.h:3: WARNING: Duplicate C declaration, also
defined at translations/zh_CN/core-api/workqueue:3.
This will be the result of the ".. kernel-doc::" directives at the end,
which create new definitions (within sphinx) for all the symbols pulled
in.
In the long term, we may want to try to find some sort of fix for this.
But we're really just recreating a bunch of (English-language)
documentation that's already rendered once; I'm not sure it makes any
real sense to do that. So I would suggest that, for now, when you are
translating documents with kernel-doc directives, you should leave those
directives out. Stick in a note directing readers to the original if
they want to see that material...
Make sense?
Yes, it is a reasonable solution for now.
Thanks
Alex
From: yanteng si <hidden> Date: 2021-05-14 09:09:43
Alex Shi [off-list ref] 于2021年5月14日周五 下午12:53写道:
On 2021/5/14 上午12:18, Jonathan Corbet wrote:
quoted
quoted
quoted
This patch translates Documentation/core-api/workqueue.rst into Chinese.
Signed-off-by: Yanteng Si <redacted>
Reviewed-by: Alex Shi <redacted>
I fixed that typo too - it appears to originate from Alex...:)
Sorry for the typo.
quoted
Actually, I've dropped this back out; it creates vast numbers of
warnings:
quoted
Documentation/core-api/workqueue:398: ./include/linux/workqueue.h:3: WARNING: Duplicate C declaration, also
defined at translations/zh_CN/core-api/workqueue:3.
This will be the result of the ".. kernel-doc::" directives at the end,
which create new definitions (within sphinx) for all the symbols pulled
in.
In the long term, we may want to try to find some sort of fix for this.
But we're really just recreating a bunch of (English-language)
documentation that's already rendered once; I'm not sure it makes any
real sense to do that. So I would suggest that, for now, when you are
translating documents with kernel-doc directives, you should leave those
directives out. Stick in a note directing readers to the original if
they want to see that material...
Make sense?
Yes, it is a reasonable solution for now.
OK, I will.
I will remove them and then direct the reader to the original
document. just like:
.. note:: 抱歉,由于原始文档在此处交叉引用了代码中的注释,而现在并不是翻译这些注释的好时机(将会带来很多编译警告),所以请暂时浏览英文文档,链接在本文档顶部。
Thanks,
Yanteng
This patch translates Documentation/core-api/workqueue.rst into Chinese.
Signed-off-by: Yanteng Si <redacted>
Reviewed-by: Alex Shi <redacted>
I fixed that typo too - it appears to originate from Alex...:)
Sorry for the typo.
quoted
Actually, I've dropped this back out; it creates vast numbers of
warnings:
quoted
Documentation/core-api/workqueue:398: ./include/linux/workqueue.h:3: WARNING: Duplicate C declaration, also
defined at translations/zh_CN/core-api/workqueue:3.
This will be the result of the ".. kernel-doc::" directives at the end,
which create new definitions (within sphinx) for all the symbols pulled
in.
In the long term, we may want to try to find some sort of fix for this.
But we're really just recreating a bunch of (English-language)
documentation that's already rendered once; I'm not sure it makes any
real sense to do that. So I would suggest that, for now, when you are
translating documents with kernel-doc directives, you should leave those
directives out. Stick in a note directing readers to the original if
they want to see that material...
Make sense?
Yes, it is a reasonable solution for now.
OK, I will.
I will remove them and then direct the reader to the original
document. just like:
.. note:: 抱歉,由于原始文档在此处交叉引用了代码中的注释,而现在并不是翻译这些注释的好时机(将会带来很多编译警告),所以请暂时浏览英文文档,链接在本文档顶部。
Jon said just remove kernel-doc, not all line? If so, don't need above explanation.
From: yanteng si <hidden> Date: 2021-05-14 09:47:44
Alex Shi [off-list ref] 于2021年5月14日周五 下午5:30写道:
On 2021/5/14 下午5:09, yanteng si wrote:
quoted
Alex Shi [off-list ref] 于2021年5月14日周五 下午12:53写道:
quoted
On 2021/5/14 上午12:18, Jonathan Corbet wrote:
quoted
quoted
quoted
This patch translates Documentation/core-api/workqueue.rst into Chinese.
Signed-off-by: Yanteng Si <redacted>
Reviewed-by: Alex Shi <redacted>
I fixed that typo too - it appears to originate from Alex...:)
Sorry for the typo.
quoted
Actually, I've dropped this back out; it creates vast numbers of
warnings:
quoted
Documentation/core-api/workqueue:398: ./include/linux/workqueue.h:3: WARNING: Duplicate C declaration, also
defined at translations/zh_CN/core-api/workqueue:3.
This will be the result of the ".. kernel-doc::" directives at the end,
which create new definitions (within sphinx) for all the symbols pulled
in.
In the long term, we may want to try to find some sort of fix for this.
But we're really just recreating a bunch of (English-language)
documentation that's already rendered once; I'm not sure it makes any
real sense to do that. So I would suggest that, for now, when you are
translating documents with kernel-doc directives, you should leave those
directives out. Stick in a note directing readers to the original if
they want to see that material...
Make sense?
Yes, it is a reasonable solution for now.
OK, I will.
I will remove them and then direct the reader to the original
document. just like:
.. note:: 抱歉,由于原始文档在此处交叉引用了代码中的注释,而现在并不是翻译这些注释的好时机(将会带来很多编译警告),所以请暂时浏览英文文档,链接在本文档顶部。
Jon said just remove kernel-doc, not all line? If so, don't need above explanation.
This patch translates Documentation/core-api/workqueue.rst into Chinese.
Signed-off-by: Yanteng Si <redacted>
Reviewed-by: Alex Shi <redacted>
I fixed that typo too - it appears to originate from Alex...:)
Sorry for the typo.
quoted
Actually, I've dropped this back out; it creates vast numbers of
warnings:
quoted
Documentation/core-api/workqueue:398: ./include/linux/workqueue.h:3: WARNING: Duplicate C declaration, also
defined at translations/zh_CN/core-api/workqueue:3.
This will be the result of the ".. kernel-doc::" directives at the end,
which create new definitions (within sphinx) for all the symbols pulled
in.
In the long term, we may want to try to find some sort of fix for this.
But we're really just recreating a bunch of (English-language)
documentation that's already rendered once; I'm not sure it makes any
real sense to do that. So I would suggest that, for now, when you are
translating documents with kernel-doc directives, you should leave those
directives out. Stick in a note directing readers to the original if
they want to see that material...
Make sense?
Yes, it is a reasonable solution for now.
OK, I will.
I will remove them and then direct the reader to the original
document. just like:
.. note:: 抱歉,由于原始文档在此处交叉引用了代码中的注释,而现在并不是翻译这些注释的好时机(将会带来很多编译警告),所以请暂时浏览英文文档,链接在本文档顶部。
Jon said just remove kernel-doc, not all line? If so, don't need above explanation.
just like:
+列表管理函数
+============
+
-+.. kernel-doc:: include/linux/list.h
+ include/linux/list.h
I prefer sth like in this line, does this look fine?
+ check the functions in include/linux/list.h in kernel source code.
From: yanteng si <hidden> Date: 2021-05-14 14:48:52
Alex Shi [off-list ref] 于2021年5月14日周五 下午6:40写道:
On 2021/5/14 下午5:47, yanteng si wrote:
quoted
Alex Shi [off-list ref] 于2021年5月14日周五 下午5:30写道:
quoted
On 2021/5/14 下午5:09, yanteng si wrote:
quoted
Alex Shi [off-list ref] 于2021年5月14日周五 下午12:53写道:
quoted
On 2021/5/14 上午12:18, Jonathan Corbet wrote:
quoted
quoted
quoted
This patch translates Documentation/core-api/workqueue.rst into Chinese.
Signed-off-by: Yanteng Si <redacted>
Reviewed-by: Alex Shi <redacted>
I fixed that typo too - it appears to originate from Alex...:)
Sorry for the typo.
quoted
Actually, I've dropped this back out; it creates vast numbers of
warnings:
quoted
Documentation/core-api/workqueue:398: ./include/linux/workqueue.h:3: WARNING: Duplicate C declaration, also
defined at translations/zh_CN/core-api/workqueue:3.
This will be the result of the ".. kernel-doc::" directives at the end,
which create new definitions (within sphinx) for all the symbols pulled
in.
In the long term, we may want to try to find some sort of fix for this.
But we're really just recreating a bunch of (English-language)
documentation that's already rendered once; I'm not sure it makes any
real sense to do that. So I would suggest that, for now, when you are
translating documents with kernel-doc directives, you should leave those
directives out. Stick in a note directing readers to the original if
they want to see that material...
Make sense?
Yes, it is a reasonable solution for now.
OK, I will.
I will remove them and then direct the reader to the original
document. just like:
.. note:: 抱歉,由于原始文档在此处交叉引用了代码中的注释,而现在并不是翻译这些注释的好时机(将会带来很多编译警告),所以请暂时浏览英文文档,链接在本文档顶部。
Jon said just remove kernel-doc, not all line? If so, don't need above explanation.
just like:
+列表管理函数
+============
+
-+.. kernel-doc:: include/linux/list.h
+ include/linux/list.h
I prefer sth like in this line, does this look fine?
+ check the functions in include/linux/list.h in kernel source code.