Re: [PATCH] tools/docs/checktransupdate.py: use metadata to lookup origin path
From: Haoyang Liu
Date: Mon Mar 09 2026 - 13:12:23 EST
On 3/9/2026 10:10 PM, Jonathan Corbet wrote:
Haoyang LIU <tttturtleruss@xxxxxxxxx> writes:
The get_origin_path() function assumes that translation files have theHonestly, rather than trying to work around such things, I think it
same relative path as their origin files, just with "translations/{locale}"
inserted after "Documentation/". However, this assumption is incorrect
for several translation files where the origin path differs. For example:
translations/zh_CN/dev-tools/gdb-kernel-debugging.rst
-> process/debugging/gdb-kernel-debugging.rst
would be far better to fix the places where the translated structure
differs from the original. Those differences can only lead to
confusion, and I've been trying to avoid creating any more of them.
Dear Jon,
That makes sense. I agree that keeping the translated directory
structure consistent with the original would avoid confusion and
reduce the need for special handling in the script.
I’ll take a look at the places where the structures differ and see
whether they can be aligned with the original layout instead.
Sincerely,
Haoyang
Thanks,
jon
--
Sincerely,
Haoyang