unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* search/replace in gettext files
@ 2007-04-22 18:19 Tim Morley
  0 siblings, 0 replies; only message in thread
From: Tim Morley @ 2007-04-22 18:19 UTC (permalink / raw)
  To: help-gnu-emacs

Hi.

Not sure if this group is the ideal place for this question, but 
couldn't find a newsgroup dedicated to GNU gettext questions. Please do 
point me in the right direction if there's a better place.

My question: I'd like to be able to do a global search and replace 
operation on the translations held in a tree of .po files. The original 
English strings mustn't be changed, so I need something that will parse 
the files, pick out the translated text, and perform the search/replace 
only on those elements.

I'm aware of msgexec, and I attempted this:

   ~$ msgexec -i temp.po sed s/foo/bar/g

but the result was just a list of the changed items sent to stdout, not 
the whole original file with the each 'foo' changed to 'bar' as I need.

Any suggestions or advice gratefully received.

Thanks in advance.


Tim

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-04-22 18:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-22 18:19 search/replace in gettext files Tim Morley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).