help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Help with emacs scripting


From: Doug Lewan
Subject: RE: Help with emacs scripting
Date: Tue, 10 Apr 2012 16:06:07 +0000

Daniel,

This is probably not hard, but more information would be useful.

. Are the .xsl and .php files similarly named? "bob.xsl" and "bob.php"?
. Do you already have a regular expression to find the strings? Maybe you have 
a "good" sample of strings to look for.
. Does the location of the DEFINE() in the PHP file matter? Could it be 
replacing something else? (Or interfering with something else?)

,Doug



From: Daniel Sousa
Sent: Monday, 2012 April 09 05:38
To: address@hidden
Subject: Help with emacs scripting

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 <xsl:value-of select="/xml/lang/foo" /> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]