all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Limiting work on translated strings in po files with GNU Emacs
@ 2005-09-14 10:52 Alexander Shopov
  0 siblings, 0 replies; only message in thread
From: Alexander Shopov @ 2005-09-14 10:52 UTC (permalink / raw)


Hi guys,
I am using the po-mode of GNU Emacs to make translations of gettext-ized 
packages.
Sometimes I do massive search and replace, changing or seeking in the 
translated strings.
Po-mode does not let me do that - entering po-mode leads to making the 
whole buffer readonly. Translations are edited then one by one.
When I press E in po-mode, I get to have the whole buffer in read-write 
mode.
What I want to have is the po-mode buffer magically enter a state where 
most commands like query-replace, query, or their regexp versions, work 
only on the translated strings (msgstr), as if the original text 
extracted from the file (msgid) do not exist at all. Still - they should 
pe preferably shown.

For example, given a buffer that contains:

msgid "Apple"
msgid_plural "Apples"
msgstr[0] "Elp"
"pa"
msgstr[1] "Sel"
"lpa"

line 1 and 2 should be readonly and not queriable, seekable, etc.
line 3,4,5,6 should be seekable and modifiable.
It will be even better if only the translated strings should be 
modifiable, taking account of the possible ways of breaking the line. 
This is optional as the translation can be reformatted.

Best regards:
al_shopov

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

only message in thread, other threads:[~2005-09-14 10:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-14 10:52 Limiting work on translated strings in po files with GNU Emacs Alexander Shopov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.