From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.devel Subject: Re: Emacs i18n Date: Fri, 8 Mar 2019 10:48:46 +0900 Message-ID: References: <87o97aq6gz.fsf@jidanni.org> <87tvgoud56.fsf@mail.linkov.net> <83o96wk2mi.fsf@gnu.org> <87k1hjfvjd.fsf@mail.linkov.net> <871s3p0zdz.fsf@mail.linkov.net> <83h8ckezyt.fsf@gnu.org> <83o96qegv1.fsf@gnu.org> <32b1ab1b-bef4-629a-8830-b1dcc6915087@cs.ucla.edu> <83a7iae9va.fsf@gnu.org> <05ed2dec-2a84-f7dc-1af5-c9d923992785@cs.ucla.edu> <87bm2p56gu.fsf@mail.linkov.net> <838sxrdgco.fsf@gnu.org> <83mum6bv11.fsf@gnu.org> <87zhq6nwsi.fsf@mail.linkov.net> Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="125070"; mail-complaints-to="usenet@blaine.gmane.org" To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 08 02:50:40 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h24ek-000WQ6-0o for ged-emacs-devel@m.gmane.org; Fri, 08 Mar 2019 02:50:38 +0100 Original-Received: from localhost ([127.0.0.1]:34802 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h24ei-0007mX-O4 for ged-emacs-devel@m.gmane.org; Thu, 07 Mar 2019 20:50:36 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40963) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h24dA-0007kE-MR for emacs-devel@gnu.org; Thu, 07 Mar 2019 20:49:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h24d6-0003JU-R2 for emacs-devel@gnu.org; Thu, 07 Mar 2019 20:48:58 -0500 Original-Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]:44145) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h24d4-0003Dt-Ov for emacs-devel@gnu.org; Thu, 07 Mar 2019 20:48:56 -0500 Original-Received: by mail-pf1-x42c.google.com with SMTP id a3so12882986pff.11 for ; Thu, 07 Mar 2019 17:48:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=jOM33IXc+JZtPmE9QbV7oMghXJTZzsGaCDX2Jl+grMo=; b=Xnn/immapxgeQNRiwC29ViVvvsF+pr+/O3zbfbMuc55jsZGZkKG/MTGOPgsgel3VxE Xp9YMaYrf+a+aChwO1rgaaDxHyCVceZdq/fuSV1s1vrUv7946ToCWJnBQ0lNiml3vXrO GuGAmbfHHKDeZus9bh7d25Ip21RwAsPJ7QTeeVZf8GSL7zS1EgyQrh3sivp9fF+DgbJJ FukJmAONv7M6zwEZM0UzYK+Xm0TjKSHHsWj0DTHZRdAQwd8nsYoyeIrowP3i3/l0k9lh VlHfri5CM18EQT8mWtpHUQZclRlxhika/jVACwvPR7OU2Zvnpr2VW0gmGr5SZqHqIjFv I8aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=jOM33IXc+JZtPmE9QbV7oMghXJTZzsGaCDX2Jl+grMo=; b=nQyxgzJ+UXOYxeVazkWNSUShSK1A7Md2l5lkadJAUEu5okLACDG6wytF6e7/tTzJCY 1vfY5mX51TKYXsiLNF746xfY0L4c60KdtXAYJTsYX+qgBw4Wb+e46P1KJw8wIifxqTP8 iE4c0pYJkqwams5SIl0t0mpl7Vn27j9eGH3Zojj/ro7PjXhVl2nvR/SQBo3PcIiLmfTv S0CQqWM6lCLxOu+wMhsHmYk9LU5W23LOibD0ksqLyNMEndwYqn4e0xVpq0iwQGFLp4jd ImTj3/IEDSXQe4taV+3eUU/y9rGKgZG+xqV+2qbWbVI7H7QT21Z8pEWrg9fgp8abJBXi k3ug== X-Gm-Message-State: APjAAAWnyQ6C5+lXMHYR4T7snZMyHPn4OcPyS+67CLhl/+YABnGie3TU K0TCjsoiH/8j1qjTbNO2shQ/M5znLu0oMA== X-Google-Smtp-Source: APXvYqzpsnM8H/KIBXWjp2sfnKY/hwV9Iyop1zBHeu9mwQ0XJQxwNVAXMlPq+05OR2eUCRAvLBdBaQ== X-Received: by 2002:a17:902:59c1:: with SMTP id d1mr15781506plj.324.1552009731663; Thu, 07 Mar 2019 17:48:51 -0800 (PST) Original-Received: from [10.116.109.8] ([61.199.159.182]) by smtp.gmail.com with ESMTPSA id i72sm15647778pfj.147.2019.03.07.17.48.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Mar 2019 17:48:50 -0800 (PST) In-Reply-To: <87zhq6nwsi.fsf@mail.linkov.net> X-Mailer: Apple Mail (2.3445.102.3) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::42c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:233900 Archived-At: > On Mar 8, 2019, at 7:29, Juri Linkov wrote: >=20 > The PO format is best suited for translation of one-liners like > messages and menu items, but I doubt that the PO format would be the = most efficient implementation for multi-line doc strings since gettext = uses the whole text of the doc string as a key to translation. > Whereas more efficient would be to use a Lisp symbol (function or = variable name) as a translation key. po4a is a commonly used perl utility that creates po files from a number = of documentation formats including texinfo. The msgid is indeed the = paragraph itself but nobody sees any "efficiency" issue in the process. Since the emacs code is not a documentation format, there would be a = need to find a different way to extract the doc strings, but using each = doc string paragraph as a msgid is not a problem in itself. Let's not forget that most if not all issues regarding formats and = processes on the l10n side have mostly been solved decades ago. I think what really needs to be discussed is: =E2=80=A2 which strings do we extract =E2=80=A2 how to rewrite the mix of code and strings =E2=80=A2 how to extract the resulting strings =E2=80=A2 how to process the translations for display in emacs Jean-Christophe Helary ----------------------------------------------- http://mac4translators.blogspot.com @brandelune