From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Sousa Newsgroups: gmane.emacs.help Subject: Help with emacs scripting Date: Mon, 9 Apr 2012 10:37:57 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d04428dcacb8fd004bd3bc30b X-Trace: dough.gmane.org 1333987968 28256 80.91.229.3 (9 Apr 2012 16:12:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 9 Apr 2012 16:12:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 09 18:12:47 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 1SHHCt-0000fN-9z for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Apr 2012 18:12:43 +0200 Original-Received: from localhost ([::1]:44746 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHHCs-0005jC-F1 for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Apr 2012 12:12:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHB3C-00055f-0e for help-gnu-emacs@gnu.org; Mon, 09 Apr 2012 05:38:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHB39-0007GF-VV for help-gnu-emacs@gnu.org; Mon, 09 Apr 2012 05:38:17 -0400 Original-Received: from sousa.cc ([46.51.181.120]:42702) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHB39-0007G1-PU for help-gnu-emacs@gnu.org; Mon, 09 Apr 2012 05:38:15 -0400 Original-Received: from mail-we0-f169.google.com (mail-we0-f169.google.com [74.125.82.169]) by sousa.cc (Postfix) with ESMTPSA id 2652920B39 for ; Mon, 9 Apr 2012 09:38:12 +0000 (UTC) Original-Received: by werj55 with SMTP id j55so3178864wer.0 for ; Mon, 09 Apr 2012 02:38:12 -0700 (PDT) Original-Received: by 10.180.104.230 with SMTP id gh6mr14354573wib.22.1333964292460; Mon, 09 Apr 2012 02:38:12 -0700 (PDT) Original-Received: by 10.223.63.70 with HTTP; Mon, 9 Apr 2012 02:37:57 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 46.51.181.120 X-Mailman-Approved-At: Mon, 09 Apr 2012 12:12:38 -0400 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:84394 Archived-At: --f46d04428dcacb8fd004bd3bc30b Content-Type: text/plain; charset=ISO-8859-1 I'm new to emacs and I have not used it much, but I think that it could really help me on the task I'm currently doing. I need to change a web app to make it translatable. Now I have to change a bunch of .xsl files. What I need to do is find the strings, then replace them by something like and add to a .php something like DEFINE("_LANG_FOO","bar"); I think it would be really easy to create an emacs script to automatically do this, but I don't know how to do it. Can anyone help me? Best regards, Daniel Sousa --f46d04428dcacb8fd004bd3bc30b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I'm new to emacs and I have not used it much, but I think that it could= really help me on the task I'm currently doing.

I n= eed to change a web app to make it translatable. Now I have to change a bun= ch of .xsl files. What I need to do is find the strings, then replace them = by something like=A0<xsl:value-of select=3D"/xml/lang/foo" /&g= t; and add to a .php something like=A0DEFINE("_LANG_FOO","ba= r");

I think it would be really easy to create an emacs scri= pt to automatically do this, but I don't know how to do it. Can anyone = help me?

Best regards,
Daniel Sousa --f46d04428dcacb8fd004bd3bc30b--