Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiline definitions #279

Open
roptat opened this issue Oct 30, 2020 · 0 comments
Open

Multiline definitions #279

roptat opened this issue Oct 30, 2020 · 0 comments

Comments

@roptat
Copy link

roptat commented Oct 30, 2020

(Sorry if this is a duplicate, I think I remember submitting this issue already, but I can't find it anymore...)

In texinfo, a definition can span multiple lines, like so:

@deffn {Monadic Procedure} interned-file @var{file} [@var{name}] @
         [#:recursive? #t] [#:select? (const #t)]
Return the name of @var{file} once interned in the store.  Use
@var{name} as its store name, or the basename of @var{file} if
@var{name} is omitted.
@end deffn

In this case, we get two strings to translate:

msgid "{Monadic Procedure} interned-file @var{file} [@var{name}] @"
msgstr ""

msgid ""
"[#:recursive? #t] [#:select? (const #t)] Return the name of @var{file} once "
"interned in the store.  Use @var{name} as its store name, or the basename of"
" @var{file} if @var{name} is omitted."
msgstr ""

However, the @ at the end of the line really means "continue to the next line as if no line break". The po file should rather be:

msgid ""
"{Monadic Procedure} interned-file @var{file} [@var{name}] @\n"
"[#:recursive? #t] [#:select? (const #t)]"
msgstr ""

msgid ""
"Return the name of @var{file} once "
"interned in the store.  Use @var{name} as its store name, or the basename of"
" @var{file} if @var{name} is omitted."
msgstr ""

(or no newline and no @)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants