From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: Help with emacs scripting Date: Thu, 12 Apr 2012 18:36:03 +0200 Message-ID: <4F870473.4060500@easy-emacs.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1334248594 16158 80.91.229.3 (12 Apr 2012 16:36:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 12 Apr 2012 16:36:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 12 18:36:33 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SIN0X-00014h-7R for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Apr 2012 18:36:29 +0200 Original-Received: from localhost ([::1]:60857 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIN0W-00052c-Kj for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Apr 2012 12:36:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIN0Q-0004zo-Lc for help-gnu-emacs@gnu.org; Thu, 12 Apr 2012 12:36:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SIN0K-0004OB-5u for help-gnu-emacs@gnu.org; Thu, 12 Apr 2012 12:36:22 -0400 Original-Received: from moutng.kundenserver.de ([212.227.17.10]:64958) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIN0J-0004Nj-So for help-gnu-emacs@gnu.org; Thu, 12 Apr 2012 12:36:16 -0400 Original-Received: from [192.168.178.27] (brln-4db9e0c4.pool.mediaWays.net [77.185.224.196]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0MJW8Z-1SJkyk0Qdn-00325y; Thu, 12 Apr 2012 18:36:13 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.28) Gecko/20120306 SUSE/3.1.20 Thunderbird/3.1.20 In-Reply-To: X-Provags-ID: V02:K0:PCX6oeyIOsWj+rtlLz6zosY+b3XOZtrt4jLni+Wye3G sg9RlAmAu0vhAFGVujDHBm/6UGb0RwkSIPCVajdMyquAeMbE2I QSXNxjZUcobuDspY31iahNI0+qefutlbWL0E8JJU/8SAOyN0Hw AWXBwqPrw0umVsdDYGqM6RJLWm/SUwND5OQXSiShABBoYLFRWt X9eACerOB2dkn1ZfQiHmyz33C13mjIAgGqvEPyufKNLjimXTYL RxaEXKnvBlSYZgd7QFapEBOnjPewm8szikJGMNkoZy+AErK4H8 6hgIqOSdOu5s6aUPNbffgPnqpAE45MUFnCQBE1pGE4cqIn039t trOa5e7lPAhi9FsKiGfxunxVYD5wREirPMrKdw1dm X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.227.17.10 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84442 Archived-At: Am 12.04.2012 18:10, schrieb Daniel Sousa: > I'm majoring in applied math and computation, I know pretty well that > computers are dumb xD > > I think neither of you have understood what I wanted, so I'll give you an > example. > I have a lot of .xsl that generate pages and I want to make those pages > translatable. I migth have the file, for exemple, welcome.xsl: > > > > > >

Bem-vindo

>
>
    > >
  • Coisa
  • >
    >
>
>
> And I wanted to make this translatable, so I change this to > > > > > >

>
>
    > >
  • select="name" />
  • >
    >
>
>
> And I create a languages/pt.php with: > define('_LANG_WELCOME','Bem-vindo'); > define('_LANG_STUFF','Coisa'); > > I have a piece of php code that puts in the xml all the constants that > begin with "_LANG". > > I have a lot of these .xsl and I need to go manually through them all to > find the strings that I want to make translatable. What I want this script > to do is, on my input put that /> thing on the place I select and append to the language file the > repective define();. > looks like a task for that: from a dired-buffer M-x dired-mark-files-regexp RET ... with marked files than M-x dired-do-query-replace-regexp RET ...