From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7E1552BE026 for ; Mon, 9 Mar 2026 17:05:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773075915; cv=none; b=SHYRgXtz1T9c8dU9KS8zlvJR69veNz9W0KrI2a1Gjo1wavDxEZSaRXOreQ3jrDgUlg7U1/E+wOUEIm/EmGQTiN8huQnjbfsveBKSKpqlK08PAlyzqIHIdRK0rT3kf1ZM9z4K7tTdarY26QYXeFr/DGH0Pdxn1znP4O+8DUQ2+IU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773075915; c=relaxed/simple; bh=VXvv3WCzsyfPONIhVrXFc/XZlCVdvgotiBS6dOrdCEk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=RM7S+xS962pYlrV/h7avc8d129bGn3bpRDnZ3iAYzwIHCHtJvo9pdPEEjOuTFZpm6hNwaiQTul5ODdLtg1iUR0NJclPHqmXjzIyoICOxRjzFEqvXl68ZvoJyGK1TItKYQmKzSQL2cWJMujsvsld4vQcsuVbVK+Az68VBm6l1m+U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=GTuTjQJ+; arc=none smtp.client-ip=209.85.214.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GTuTjQJ+" Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-2a9296b3926so91238675ad.1 for ; Mon, 09 Mar 2026 10:05:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773075912; x=1773680712; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=D2aJcP1eqTkoObRnwc3YqPHSFgBzdgVjK1dLwC/F/iY=; b=GTuTjQJ+bDWOzol6WmG2rbJlIbk5Q3VLJtQNI3jTSqSP852CzqdiFtKydzrUcH8/y+ oFccCJzRIvflgsreWdrb1zb/8JJylyPIGrpZdm3ZXADlgG4wNTdOFkutXnhck5+PVGuD y65CblohXjaeixEhKfgBtFpv1wPlWqtm71obYwSddHgldWc4Gr4SW3C5TfUl04RLSvKr AWfDj1WSoJT06vJqhtcW6ew2umhq5dNRuSbcIfDCYfyda935iRtdJ+lLlKdL9OPbzjd1 PgZA4ERjyJRrabrYrtd1qZyIFrXGQdhK46g5DCfP7xPxtPoQ+lHBWGK9idx92s0AiE8K 3Aew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773075912; x=1773680712; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=D2aJcP1eqTkoObRnwc3YqPHSFgBzdgVjK1dLwC/F/iY=; b=pa7pFtfk/DsJM4z1Igx/pPpJT0aHruKsJDFLkWCW2rWthoZF5jI3UUE5AR3mclBcsZ BEGrr7sbfmiavyvx4T0xK4hTVu+JGUn+p9IGP6QLBxzGQ7W3wVAIj0torMxWX3bxhTdl 3iPmUEqhFZzibmCd5/6UW8UcOJbPDFbRuBhddzovI95BM4oxoHpUDPsjckzgxiBMePhA 2pfGbjKOxwF2h6nJt4ZbX7oCSYIW3nLBNsSsHdfwXiJ+dzg6bIr1YaaQrZWQ11bLezL7 qpvIHudzrpb56zdf6OgN3pgQoUGCiBhtOeq2iLIYYEcL2wAh1LbpUe52bC0tCPqaNF8Z /xdg== X-Forwarded-Encrypted: i=1; AJvYcCWr++8w31bFCUA0IPEemhYCL/rpi3is91En0qGV0X82oqueVb8yhUblfwhS7PTxydaVGpf/Urqkk/ufz+Y=@vger.kernel.org X-Gm-Message-State: AOJu0YySqWVarq9boNjuxCOzV2CA+OeF2ut6GaQnjNp+no6LS+sIfw3A FA5jAVjlnT8dWYcBy40rREHXQ02uQKZrgkVOkjGumvWAGx18GeLiy1VU X-Gm-Gg: ATEYQzwZSVflaoq02764crqNABKtBJOPVBzkB0Ej+tZtDkt7J6LDmmoqW0F+wHlGTUm NsSyNs0yDLo793rH+puBCU0JzpXvpFkqnMYAtPfnp2Bp9XDh7o5XWG74wy8PLix2PnffWQCKMZX N0bSv1X/2FdaR6hvHtvqeh8MNFIUnmN44V0BLnLq6eQ+NFJUEppU5kl6SgOzqayiC8JJnYrpSqB sUJilMv5QXfBfZZPdnntIwbclQ67logpSRfpD9aeY9U/y9VyFZkYFPOHL+pF5LBaXjXPUIyDaBl 14n3V7uYoxWXsNaIYJVl4RuoJ45uO+KXgNIXUw7v/njnCxHT0BVpe8YJ4z6E6TwMjSVHpHkAy8q HYDCjSxhBkksbwvBHUS2fivykAM243tsrDlXhwmIraG/Z1z8eN22p1SPO4YSNDKC+zuZMwvEXv4 /LFTxEq4abvtQuAQ38n84YC74bQhhmO6d5dMtcXY3MM7hCG4xaS8vF7QWVQYs6B/lnRzCkqPxde kfMha71KMZ73SZOkh4= X-Received: by 2002:a17:902:f78f:b0:2ae:5d7a:b6a1 with SMTP id d9443c01a7336-2ae8248140dmr106622625ad.25.1773075911665; Mon, 09 Mar 2026 10:05:11 -0700 (PDT) Received: from [198.18.0.1] (ec2-54-255-20-216.ap-southeast-1.compute.amazonaws.com. [54.255.20.216]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2ae83f7837bsm122545135ad.48.2026.03.09.10.05.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 Mar 2026 10:05:10 -0700 (PDT) Message-ID: <2bd7d364-6e23-4980-9852-b1561ac17709@gmail.com> Date: Tue, 10 Mar 2026 01:05:08 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] tools/docs/checktransupdate.py: use metadata to lookup origin path To: Jonathan Corbet , Dongliang Mu , Yanteng Si , Alex Shi , Mauro Carvalho Chehab , Shuah Khan Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260309095832.41209-1-tttturtleruss@gmail.com> <87pl5dxfep.fsf@trenco.lwn.net> From: Haoyang Liu In-Reply-To: <87pl5dxfep.fsf@trenco.lwn.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 3/9/2026 10:10 PM, Jonathan Corbet wrote: > Haoyang LIU 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. 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