On Wed, 2011-05-11 at 10:52 +0530, Balachandran Sivakumar wrote:
> I haven't worked much on translation as such. But if you choose
> type it as "somestring" and then use substitute option for
> substituting "somestring" with {% trans "somestring" %}, then you can
> do either
>
> 1) M-x replace-string
> Give the string you want to replace, sometring in this case
> and then the string to replace it with, {% trans "somestring" %} in
> this case. This would replace All occurrences of somestring with {%
> trans "somestring" %}.
>
> 2) M-x query-replace
> Same as above, except that it highlights each occurrence one
> by one and asks if you need to replace. You can press 'y' or 'n' and
> keep going.
>
>
> Sorry if you meant something else and the reply is not relevant.
> Thanks
>
>
I meant something else. Marking strings for translation means each
string is different. At present what I do is:
1. mark the string
2. C-W
3. type _(" this will autocomplete to _("") with the cursor between the
quotes
4. C-y
--
regards
KG
http://lawgon.livejournal.com
Coimbatore LUG rox
http://ilugcbe.techstud.org/
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc