Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wfXX6-005VME-1B for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Jul 2026 06:37:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wfXX4-005sH2-0G for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Jul 2026 06:37:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wfXX3-005sGt-2S for pgsql-hackers@lists.postgresql.org; Fri, 03 Jul 2026 06:37:49 +0000 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wfXX1-00000001Qsr-1hkt for pgsql-hackers@lists.postgresql.org; Fri, 03 Jul 2026 06:37:49 +0000 Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-84592b55832so154221b3a.3 for ; Thu, 02 Jul 2026 23:37:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783060665; x=1783665465; darn=lists.postgresql.org; h=content-transfer-encoding:mime-version:user-agent:from:subject:to :message-id:date:from:to:cc:subject:date:message-id:reply-to; bh=nXEK8th+qk23SgCV3tlqXcd2dYspZB/aeOREzugb6IA=; b=itC8XggLm26wMkNuaAGCs0d3FMU5IcwToDoamUDTAuK/Oe5FFVJbfFZX8L8zcJG1H+ Vv8LDaOthpiHXA975xciR8b0EjuuNDogESAJ9hBW18E/GLVLbyUb8A+tSY1eABuB8bae KezCUarTInVS3SlGTQbEFOfeadP7T0WbHyeRe59xrU3grpesbP4rIJOFfm4vUK5WnhZ/ oh8U7lW9aX1vyQiBIKmYHQfWf2kkitZcQzN0EuAHr6nbsje/VMuKfLguREcDct8zHg35 uKF6Elhdr8fAtsktXuna3T6bi5okFQaHWt/efC18DRO5CSQw+PZDw498tnM3fd1ES9ei Betg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783060665; x=1783665465; h=content-transfer-encoding:mime-version:user-agent:from:subject:to :message-id:date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=nXEK8th+qk23SgCV3tlqXcd2dYspZB/aeOREzugb6IA=; b=LX6zmwrgLLVe1+/OEEHu1+rRy/JkjSg+OneU5wslxuY0vj7K2OpIC2gZB+MwCNCos7 RzaOaVa1oraxPkmk9t9eVOPxAbqN5bFjq7/IAr3ac0BDLRcSYeV5dkBrGpkkfbcF8YQF VyYHoHpsEQkV8oxUrPDwXVBmIKBpX0Hg2wK+6RJ6OAdCz1fEcn8hGyMDV57h+OMs7QXw UGTU7sPquHNSjo8OGfLAE13siSQZi0XhDeNkFXVO3vWqZtq4p4F0Cpow0/aeaCEzNeUK x8FiRRyBhR2KAm42P5bCncjp+Q/k72JSa8Ez7aTBm9OoywrNYpHyqcXofmQfSs4jqmE/ Braw== X-Gm-Message-State: AOJu0YyxmjaKsEM+bRkVFh/AZJbu8US9+/4++sz1XvYjiosEZ+fwJ6Ha iQjZuKRQ2jLg0r1r055pJ2YFQ6m+Gt2/VXn3jXpbTAAvviFJJvUbta8PVeRvsQ== X-Gm-Gg: AfdE7ckFOdGwdapq8o7mkhdkuTL34PzrVl2XH8Z7QAslAmHPuZZ13/JN7A5ZIO09Hso iLjCjHdXNCPBNDL16mot0Y+REKR39nHe2Z0AykiLDfp8q5h/RTP4P6q4O01nHUKe6GeQq8ffRao kAAzYduDeCVk/bNthsPnPzxHidWzDQizug1yfybGiX17sjE/3/3IwDXVjgblFXpEo7iFbyxe78q IISKbGXWw3G5GbHvGJjVeqdtIxtzWndTZEdyctrwJYwq5A+9mnenFgHPz8xnfgGOpA2hh/7wcbs OfDgt1lq0Hdc8czG0HXDZlAuJcqlh3/DneghRU5RYw3C6+8kqTOsQ4oPFebupNCgc7lau1v181U e8vOSEMX8nIzN4qXfRpdvYQ4QhYRzv4Nkb/y6uGwaWQ/3fNG31e1C/WwoWmtX1OGemkPK/y+KDN XntH8URzel3IxusJBYGDLA9oY8wsCqJxEifK5NxpyGGZ1Dh6Jq/Vpq8mp2D8U1 X-Received: by 2002:aa7:9063:0:b0:845:e1a3:1076 with SMTP id d2e1a72fcca58-847c098898cmr9504500b3a.56.1783060664712; Thu, 02 Jul 2026 23:37:44 -0700 (PDT) Received: from localhost (KD036014041111.ppp-bb.dion.ne.jp. [36.14.41.111]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-847e7adb4b0sm580444b3a.59.2026.07.02.23.37.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2026 23:37:43 -0700 (PDT) Date: Fri, 03 Jul 2026 15:37:42 +0900 (JST) Message-Id: <20260703.153742.1355839543750682384.horikyota.ntt@gmail.com> To: pgsql-hackers@lists.postgresql.org Subject: Mark class_descr strings for translation From: Kyotaro Horiguchi User-Agent: Mew version 6.8 on Emacs 29.4 Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Fri_Jul__3_15_37_42_2026_665)--" Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ----Next_Part(Fri_Jul__3_15_37_42_2026_665)-- Content-Type: Text/Plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit Hello, While working on the translation, I encountered the following message. pg_depend.c:809 > if (!HeapTupleIsValid(tuple)) > ereport(ERROR, > (errcode(ERRCODE_UNDEFINED_OBJECT), > errmsg("referenced %s was concurrently dropped", > get_object_class_descr(classId)))); As you can see, it is a user-facing message, which embeds the return value from get_object_class_descr(), which returns ObjectPropertyType.class_descr, which is described as "for internal error messages" in objectaddress.c. As a result, the resulting message in Japanese becomes rather unnatural. > 参照先の foreign-data wrapper は並行して削除されました The attached patch marks the class_descr strings for translation, so that the message can be translated. I'm not entirely sure whether this is the right direction, but since class_descr is already used in messages intended to be read by humans, even if they are not necessarily user-facing, it seems reasonable to me. With that change, the message above becomes: > 参照先の外部データラッパは並行して削除されました One concern I have is that this may be somewhat easy to overlook, since it requires remembering to wrap the return value in _() rather than translating a string literal. That said, I don't expect this pattern to be used very often, so I don't think it is a significant problem. By the way, I also noticed that we have two spellings, "foreign-data wrapper" and "foreign data wrapper". I looked through the documentation for the canonical spelling, but found both spellings used on the same page, so I couldn't determine which one is preferred. Regards, -- Kyotaro Horiguchi NTT Open Source Software Center ----Next_Part(Fri_Jul__3_15_37_42_2026_665)-- Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="v1-0001-Mark-object-class-descriptions-for-translation.patch"