Re: [PATCH] tools/docs/checktransupdate.py: use metadata to lookup origin path
From: Jonathan Corbet
Date: Mon Mar 09 2026 - 10:10:30 EST
Haoyang LIU <tttturtleruss@xxxxxxxxx> writes:
> The get_origin_path() function assumes that translation files have the
> 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
Honestly, rather than trying to work around such things, I think it
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.
Thanks,
jon