Discussion:
[LyX/master] Add support for the pdfcomment package.
Kornel Benko
2014-07-03 11:22:26 UTC
Permalink
commit d333d7d6961590527a7ecb281a8bdd490c729a7a
Date: Thu Jul 3 11:30:56 2014 +0200
Add support for the pdfcomment package.
Fixes: #6975.
I am trying to translate the provided strings, but failing on one
lib/layouts/pdfcomment.module:113 "Insert the tooltip text here"

The reason is, that it is converted to "text here" while processing with
# python2 .../po/lyx_pot.py ... -t layouts ...

Manipulating this text leads to unpredictable results. Only omitting the last words (text here)
helps.

E.g.
"Insert the tooltip" => "Insert the tooltip"
"Insert the tooltip a b c d e f g h" ==> "a b c d e f g h"
"Insert.the tooltip a b c d e f g h" ==> "a b c d e f g h"
"Insert the tooltip.a b c d e f g h" ==> "b c d e f g h"

I cannot make any sense here.

The created file is layouts_l10n.pot, search for '#: lib/layouts/pdfcomment.module:113'

Kornel
Kornel Benko
2014-07-03 11:33:18 UTC
Permalink
Post by Kornel Benko
commit d333d7d6961590527a7ecb281a8bdd490c729a7a
Date: Thu Jul 3 11:30:56 2014 +0200
Add support for the pdfcomment package.
Fixes: #6975.
I am trying to translate the provided strings, but failing on one
lib/layouts/pdfcomment.module:113 "Insert the tooltip text here"
The reason is, that it is converted to "text here" while processing with
# python2 .../po/lyx_pot.py ... -t layouts ...
Manipulating this text leads to unpredictable results. Only omitting the last words (text here)
helps.
E.g.
"Insert the tooltip" => "Insert the tooltip"
"Insert the tooltip a b c d e f g h" ==> "a b c d e f g h"
"Insert.the tooltip a b c d e f g h" ==> "a b c d e f g h"
"Insert the tooltip.a b c d e f g h" ==> "b c d e f g h"
I cannot make any sense here.
The created file is layouts_l10n.pot, search for '#: lib/layouts/pdfcomment.module:113'
Kornel
OK, changing the regex for using tooltip helps.

Kornel
Jürgen Spitzmüller
2014-07-03 11:37:09 UTC
Permalink
Post by Kornel Benko
OK, changing the regex for using tooltip helps.
With this, we also translate commented out Tooltip tags, but I think this is
not such a problem. The change seems necessary anyway.

Jürgen
Kornel Benko
2014-07-03 11:45:39 UTC
Permalink
Post by Jürgen Spitzmüller
Post by Kornel Benko
OK, changing the regex for using tooltip helps.
With this, we also translate commented out Tooltip tags, but I think this is
not such a problem. The change seems necessary anyway.
JÃŒrgen
If we comment the tooltip like
' # Tooltip "something" '
then the line would not be triggered. From what I understood '#' is not a char belonging to '\s', am I wrong?

Kornel
Jürgen Spitzmüller
2014-07-03 13:10:57 UTC
Permalink
Post by Kornel Benko
If we comment the tooltip like
' # Tooltip "something" '
then the line would not be triggered. From what I understood '#' is not a
char belonging to '\s', am I wrong?
You're right.

Jürgen
Post by Kornel Benko
Kornel
Loading...