From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Brooks Newsgroups: gmane.emacs.devel Subject: Re: Internationalize Emacs's messages (swahili) Date: Fri, 25 Dec 2020 19:22:32 -0800 Message-ID: <878s9luu87.fsf@db48x.net> References: <87o8ivumn5.fsf@telefonica.net> <87v9d3nkxk.fsf@gnus.org> <83sg7xrgr5.fsf@gnu.org> <83h7odrdwy.fsf@gnu.org> <86sg7w39fh.fsf@163.com> <83pn30pku5.fsf@gnu.org> <86wnx8otoj.fsf@163.com> <834kkbp9vr.fsf@gnu.org> <87czyxuxw6.fsf@db48x.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18192"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: Zhu Zihao , bugs@gnu.support, dimech@gmx.com, abrochard@gmx.com, emacs-devel@gnu.org, Eli Zaretskii , rms@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 26 04:23:21 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kt0Ar-0004cu-TF for ged-emacs-devel@m.gmane-mx.org; Sat, 26 Dec 2020 04:23:21 +0100 Original-Received: from localhost ([::1]:41130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kt0Aq-0000CW-Ry for ged-emacs-devel@m.gmane-mx.org; Fri, 25 Dec 2020 22:23:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58876) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kt0AC-0008ES-EO for emacs-devel@gnu.org; Fri, 25 Dec 2020 22:22:40 -0500 Original-Received: from smtp-out-4.mxes.net ([198.205.123.69]:57972) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kt0AA-0003Zd-M0 for emacs-devel@gnu.org; Fri, 25 Dec 2020 22:22:40 -0500 Original-Received: from Customer-MUA (mua.mxes.net [10.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 21863759FF; Fri, 25 Dec 2020 22:22:33 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mxes.net; s=mta; t=1608952956; bh=u5RORqX3kjD2WUndV1BFseH9o/ZmdsSKl2QpzaKrx5Y=; h=From:To:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=aQRNJw6Ds2u/HtLFFY8YuzXq8yjbcjnO2QhvDc5NgvcdS3y6JlfoOrr7IgVhlCl1R QSz8BKqbmUhxjJOJh17EO2NSLIMRwG5AegdNytIVB0fYJ6VW30vqx/FwKZjOjvdWJQ +594t6KNEXZ7OUBb2beneOqPJ8hJOk98JaYR5S5g= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGOfPtRkwAAABJQ TFRFpKfbdou67PD6JjJgAwUWXGSeIcyLHgAAAkZJREFUOI1VU8Fy6yAMxLi+Q13fCZ3cnQL3dqTc 7RD+/1feStDXVnXHDuvVSivZTMba2GPdw3gyCGcMAFxTyrTd9dwGoxHiZX9PmRFUHYAQlGGtXY+F Uk0SJOxgJiUEnH1qkitT9D+pQub7qGAmUbR6bu3CvI96Yv6QqkBBMrsyfZccr1/RDXGDTLf4P7ZY glVxe2V+/ACXWO1gvDO9/gDRpFFVmPluvLcmBjd5H6d8DEte+Pbk4rcY/Fa5tLKLOtCZsuQKYhpa LOkYDT7hESya7/WIET3lfQBqX0pwFtbI832Is0ayMUR9B+12xjgPCQ089cfwkCkX6L5TPmRelJTh zMS0Sz1PyjLAMCUWjcmgQLWQMds+e3aaauZDf9dU9A2/8kPVF2odCUoMKHkfjJR+mbgC+DRiycw5 3XSqGe6HmhN/AWjHypkAXOAFW5EiuA1ge2GiZuMb0s1fSEXcATeLUfbyEY2L8yPOmdSsdghQXx3K pz2eoeXuYvMCINVFDrCdNfVUp4eJ6cSEbjbgFjBEvonGGTrgv9cHjAc8aVgSAPoxaONbzfwhDIhR at7IIS7fAGiDSwIA9alhhTBzfA7YM2FY6eMwayrIGK8FDFmshmUA43WqhFtpvoqG9HHaJ7fqtgTz 8EWVkgZgtsylFliHDgk0MB7KAEC45C/rgnGvanNLXyzOeTzcT2nw/N44gfrtYXRQLoz9Q3TgmJRx 2Mx/Q51qzpm+l3m8z2SWBqC5+PZXAtNYlGFf/gKfHfjFkDT4x7od7R+w3Ls+ZdQBuQAAAABJRU5E rkJggg== In-Reply-To: (Stefan Monnier's message of "Fri, 25 Dec 2020 21:47:21 -0500") X-Sent-To: Received-SPF: none client-ip=198.205.123.69; envelope-from=db48x@db48x.net; helo=smtp-out-4.mxes.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:261784 Archived-At: Stefan Monnier writes: >> My personal opinion is that gettext is too limited. It works for simple >> things, but provides no help at all for complex things. > > My feeling is that Emacs is so far from those problems that considering > such issues will do little more than delay any actual progress. Possibly, but I'm not so sure. Just looking at the message function for a moment (because it's easy to grep for), there are a nonzero number that do numeric substitions. Here are a few selected examples: ./lisp/sort.el:638: (message "Deleted %d %sduplicate line%s%s" ./lisp/calendar/cal-hebrew.el:188: (message "Hebrew date (until sunset): %s" ./lisp/ido.el:1670: (message "Ido mode %s" (if ido-mode "enabled" "disabled")))) ./lisp/calendar/appt.el:716: (message "Appointment reminders enabled%s" ./lisp/calendar/icalendar.el:2287: (message "Cannot handle COUNT attribute for `%s' events." ./lisp/calendar/calendar.el:2040: (message "Region has %d day%s (inclusive)" ./lisp/calendar/todo-mode.el:725: (message "There is no %s file for %s" ./lisp/calendar/todo-mode.el:5672: (when prompt (message "Press a key (so far `%s'): %s" keys-so-far prompt)) ./lisp/calendar/todo-mode.el:5772: (message (concat "File" (if pl "s" "") " %s ha" (if pl "ve" "s") ./lisp/registry.el:317: (message "reindexing: %d of %d (%.2f%%)" The one from todo-mode.el:5772 is quite interesting; you can see that it's complex because it's handling English plurals. That complexity would be moved into the English translation and out of todo-mode.el entirely. The ones with colons are a way to make the substitution more generic across languages by making plurals less necessary at the cost of being more stilted. db48x