From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.blogging,gmane.emacs.devel Subject: Re: i18n Date: Mon, 01 Feb 2010 23:45:48 +0200 Organization: JURTA Message-ID: <877hqwn4g3.fsf@mail.jurta.org> References: <1e7a74211001281954h1295a717id942a4405dc98b25@mail.gmail.com> <87vdekbt60.fsf@everybody.org> <1e7a74211001310729s6b0c506cv41cdea9b19274fba@mail.gmail.com> <87fx5l8kat.fsf@everybody.org> <877hqxqqxz.fsf@xemacs.org> <87hbq1rw4n.fsf@mail.jurta.org> <87vdehozth.fsf@xemacs.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1265064663 22725 80.91.229.12 (1 Feb 2010 22:51:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Feb 2010 22:51:03 +0000 (UTC) Cc: emacsweblogs@nongnu.org, emacs-devel@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacsweblogs-bounces+geb-emacsweblogs=m.gmane.org@nongnu.org Mon Feb 01 23:50:59 2010 Return-path: Envelope-to: geb-emacsweblogs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Nc56h-0005oF-BB for geb-emacsweblogs@m.gmane.org; Mon, 01 Feb 2010 23:50:59 +0100 Original-Received: from localhost ([127.0.0.1]:46897 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nc56g-0007aX-Oh for geb-emacsweblogs@m.gmane.org; Mon, 01 Feb 2010 17:50:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nc55l-0007NS-2B for emacsweblogs@nongnu.org; Mon, 01 Feb 2010 17:50:01 -0500 Original-Received: from [199.232.76.173] (port=34978 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nc55k-0007Mr-8C for emacsweblogs@nongnu.org; Mon, 01 Feb 2010 17:50:00 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nc55h-0006DR-5V for emacsweblogs@nongnu.org; Mon, 01 Feb 2010 17:49:59 -0500 Original-Received: from smtp-out4.starman.ee ([85.253.0.6]:57400 helo=mx2.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nc55g-0006Cp-OX for emacsweblogs@nongnu.org; Mon, 01 Feb 2010 17:49:56 -0500 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Original-Received: from mail.starman.ee (82.131.53.239.cable.starman.ee [82.131.53.239]) by mx2.starman.ee (Postfix) with ESMTP id 1751B3F40A7; Tue, 2 Feb 2010 00:49:49 +0200 (EET) In-Reply-To: <87vdehozth.fsf@xemacs.org> (Stephen J. Turnbull's message of "Mon, 01 Feb 2010 22:22:50 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacsweblogs@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: emacsweblogs.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacsweblogs-bounces+geb-emacsweblogs=m.gmane.org@nongnu.org Errors-To: emacsweblogs-bounces+geb-emacsweblogs=m.gmane.org@nongnu.org Xref: news.gmane.org gmane.emacs.blogging:93 gmane.emacs.devel:120800 Archived-At: > The problem is that the *human* translators need the markers to know > what to translate. I like very much how the translation process is organized in Drupal. In addition to using gettext, at the time an untranslated string is displayed it dynamically gets added to the database. Later it can be translated using UI to search for untranslated strings and translate them. It's possible to export translated strings in the .po format. http://drupal.org/handbook/modules/locale But in the source code, strings are still explicitly marked by special markers. An alternative to marking translatable strings is to use a regexp-based approach like is used by `debug-ignored-errors'. For a message format like "Can't find the %s manpage" it uses a regexp to match its variable part like "^Can't find the .* manpage$". However, performance wise this approach doesn't seem optimal. -- Juri Linkov http://www.jurta.org/emacs/