Closed rffontenelle closed 10 months ago
Hi @rffontenelle I've made you an admininstrator.
A
Done, added to placeholders to the Transifex organization's PO translation validations.
This applies both to Sphinx UI strings (%r
and {some-name}
were not considered placeholders until now) ...
... and sphinx documentation strings:
For roles that links to another page/website and are commonly translated, e.g. check :ref:`this website <http://example.com>`.
, I matched 1) fully the occurrence without space e.g. go to :ref:`html-options`.
, and 2) matched simply the role name when its content has space (see ref in the screenshot above)
It would really nice to have custom placeholders to ease Sphinx documentation translation.
Adding custom placeholders causes the matched expression to be highlighted, be assigned unique numbers in that string, and to be warned if translation differs from the source string. I use it a lot in Python docs translation in Transifex, and I highly recommend to Sphinx docs.
Example of placeholders set in Python docs:
Setting this requires:
I might have found some commands to print the candidates for custom placeholders:
These commands will print these:
Starting pattern for two-part roles (ending pattern is
`
)Starting pattern for one-part roles (ending pattern is
`
)Starting pattern for command-line arguments and literal text (ending pattern is
``
)