unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Alexander Shopov <ash@contact.bg>
Subject: Limiting work on translated strings in po files with GNU Emacs
Date: Wed, 14 Sep 2005 13:52:07 +0300	[thread overview]
Message-ID: <432800D7.9000207@contact.bg> (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

                 reply	other threads:[~2005-09-14 10:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=432800D7.9000207@contact.bg \
    --to=ash@contact.bg \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).