From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id CA0893858D1E for ; Thu, 19 Oct 2023 21:53:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CA0893858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CA0893858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697752428; cv=none; b=dvQpm0OctcbO1tCDHu55xKnEmHNZMZYOjZ0hHkPTsW26ZdS8CXXZpw92SxWpZ9iDYChpa+ua7mcV9mXGC5cefoc2tJH37JIilP/nswaPRrH5MD/nv7yMsKkBQt3VQpt9jbPdJoA+DipmAKwSBsESfn5+j9Qq0W+lHIIYlBrhn/g= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697752428; c=relaxed/simple; bh=MVW3kaaVInuBLau0LGAOh3Oz4AA3T8Fuc9ViHPipTSg=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=izQiKUwR8ZeDYLMVS+dy/qyQNEG54NKfAmVtfpUAT1IAZOjOhb6sGbYPbkpTqetc4sheUdvMB5KVCdP6RxkMZueeLXXHF7YzsN9nmuYcGIuH5xuXpQFTsTc1w5BPFUf4Ww9I7gc/5P5hatZ+KQVmnugAhD55n/3act2Z2CJnfsk= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697752426; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jm+Ta0eXpBhtfSIIBB2Bn2Qkj6xwj7S9XMBUQ+iRVCk=; b=JG8xNrEjV5K8zFZRyQRBp9l28plmqmfjhL+Rvw8ujOsLFC6whLGlLvcFWs/4/pUG6gD0VA 1AQkOXyy3MLJDC2jEJWAYMwcG+muk58Ek2KhWnw7rIjrQBJvS8nlWQgPblgwF8U7/H9GeS ewbWqDpbwpYRUMorgNQoi5WQRAqfS/4= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-199-wzV1ixWPMwilaIkM8l0NsA-1; Thu, 19 Oct 2023 17:53:40 -0400 X-MC-Unique: wzV1ixWPMwilaIkM8l0NsA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 991DC29AA3B4; Thu, 19 Oct 2023 21:53:39 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.3]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5CEA91C060AE; Thu, 19 Oct 2023 21:53:39 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 39JLrauS3774070 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 19 Oct 2023 23:53:37 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 39JLraTR3774069; Thu, 19 Oct 2023 23:53:36 +0200 Date: Thu, 19 Oct 2023 23:53:35 +0200 From: Jakub Jelinek To: waffl3x Cc: Jason Merrill , "gcc-patches@gcc.gnu.org" Subject: Re: [PATCH v3 1/2] c++: Initial support for P0847R7 (Deducing This) [PR102609] Message-ID: Reply-To: Jakub Jelinek References: <0cc5b21d-4b27-4964-bec3-544c86307c74@redhat.com> MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Thu, Oct 19, 2023 at 09:31:06PM +0000, waffl3x wrote: > Ah alright, I see what you're saying, I see what the difference is now. > It's a shame we can't have the translated string insert a %s and format > into that :^). Ah well, I guess this code is just doomed to look poor > then, what can you do. Consider e.g. de.po: msgid "Generate code to check exception specifications." msgstr "Code zur Überprüfung von Exception-Spezifikationen erzeugen." If you try to construct the above from 2 parts as "%s to check exception specifications.", _("Generate code") then the german translator will need to give up, because the verb needs to go last and noun first, so translating "Generate code" to "Code erzeugen" and the rest can't be done, you want to put one word in one place and another at another. A lot of languages have quite strict rules on order of words in sentence, unlike say Latin with its comparatively free word order. You could be lucky, but without knowing at least all the currently supported languages it can be hard to prove it is ok. Furthermore, it could prevent some other language translations from being added. Jakub