Emacs po-mode
  Home FAQ Contact Sign in
gnu.emacs.help only
 
Advanced search
POPULAR GROUPS

more...

gnu.emacs.help Profile…
 Up
Emacs po-mode         


Author: turakas
Date: Aug 12, 2008 13:44

I sent this e-mail directly to help-gnu-emacs@gnu.org, but it looks
like it got lost. So I post it to gnu.emacs.help again.

Hey,

I hope there are some emacs users who occasionally do translating too.
Anyway I have some misunderstanding with emacs po-mode.

In emacs when I translate the following string, it puts it all into
one line:
Code:

msgid ""
"If enabled, closing Sonata will minimize it to the system tray. Note
that "
"it's currently impossible to detect if there actually is a system
tray, so "
"only check this if you have one."
msgstr ""
"Kui lubatud, Sonata minimeerib end süsteemsesse salve. Kahjuks hetkel
on võimatu tuvastada, kas süsteemne salv on ka olemas, niiet luba
ainult siis, kui tead, et su töölaual on salv."
Show full article (1.93Kb)
6 Comments
Re: Emacs po-mode         


Author: Dmitry Dzhus
Date: Aug 12, 2008 14:43

turakas@gmail.com wrote:
> Notice those "\n"

This is an expected behaviour (see gettext manual, 8.3.4):

«Right now, in PO mode, strings are single line or multi-line. A string
goes multi-line if and only if it has _embedded_ newlines…»

If you need to just _wrap_ long single-line `msgstr` contents, use
`po-wrap` function described here:
http://www.gnu.org/software/trans-coord/manual/gnun/html_node/New-Translation.ht....
It has to process the whole file, though.

I've already pointed out in `gnu.utils.bug` that `po-wrap` function is
worth including in po-mode (at least until normalization issues stated
in gettext manual are resolved).
--
Happy Hacking.

http://sphinx.net.ru
no comments
Re: Emacs po-mode         


Author: turakas
Date: Aug 13, 2008 10:51

> On 13 aug, 00:43, Dmitry Dzhus sphinx.net.ru> wrote:
Thanks for you answer. Since I can't speak lisp, I didn't know I
needed to use M-x po-wrap.

But I have another question too. It is related to emacs po-mode, so I
post it to this thread.
I have a string:

msgid "Search:\t"

There is that TAB space (\t). When I insert \t manually, emacs writes \
\t:

msgstr "Otsi:\\t"

How can I make emacs write only \t so my translation looks like that:

msgstr "Otsi:\t"

mihkel
1 Comment
Re: Emacs po-mode         


Author: Kevin Rodgers
Date: Aug 13, 2008 18:39

turakas@gmail.com wrote:
>> On 13 aug, 00:43, Dmitry Dzhus sphinx.net.ru> wrote:
> Thanks for you answer. Since I can't speak lisp, I didn't know I
> needed to use M-x po-wrap.
>
> But I have another question too. It is related to emacs po-mode, so I
> post it to this thread.
> I have a string:
>
> msgid "Search:\t"
>
> There is that TAB space (\t). When I insert \t manually, emacs writes \
> \t:
>
> msgstr "Otsi:\\t"
>
> How can I make emacs write only \t so my translation looks like that:
>
> msgstr "Otsi:\t"
Show full article (0.64Kb)
no comments
Re: Emacs po-mode         


Author: turakas
Date: Aug 13, 2008 20:26

> Just a guess: C-q \ t

This seems to do the same as just writing \t.
no comments
Re: Emacs po-mode         


Author: Dmitry Dzhus
Date: Aug 14, 2008 06:25

turakas@gmail.com wrote:
> But I have another question too. It is related to emacs po-mode, so I
> post it to this thread.
> I have a string:
>
> msgid "Search:\t"
>
> There is that TAB space (\t). When I insert \t manually, emacs writes \
> \t:
>
> msgstr "Otsi:\\t"
>
> How can I make emacs write only \t so my translation looks like that:
>
> msgstr "Otsi:\t"

Insert raw tabulation instead of \t in msgstr: C-q TAB.
--
Happy Hacking.
Show full article (0.51Kb)
no comments
Re: Emacs po-mode         


Author: turakas
Date: Aug 14, 2008 08:15

> Insert raw tabulation instead of \t in msgstr: C-q TAB.

This one works. Thanks again.
no comments

RELATED THREADS
SubjectArticles qty Group
Re: .emacs in the Windows version of Emacsgnu.emacs.help ·