Hi Thomas,

It's a good question. I have no answer for that yet.
There is a similar issue:
https://bitbucket.org/birkenfeld/sphinx/issue/1265/crash-when-translating-link-to-another

As a workaround, the anonymous target notation could be used.

---------

`this is one`__ and `this is two`__ is the sequential anonymous link target.
It works fine with i18n translation if you keep link target order.

.. __: http://example.com/one
.. __: http://example.com/two

---------

It works fine, but there is one limitation.
The translator must keep link target order.

Any help/suggestion/patch is welcome :)

Regards,
--
Takayuki SHIMIZUKAWA
http://about.me/shimizukawa


2013/11/16 ThomasG <[email protected]>:
> Hi all,
>
> I'm looking to a way to use an explicit title with a long link that point to
> an external URL.
> The context is within an existing sphinx project based on Sphinx where I'm
> starting to use internationalization.
>
> For the moment, the doc uses:
>
> `My title is cool`_
>
> and make a reference
> .. _`My title is cool`:
> http://hyperlongurlhyperlongurlhyperlongurlhyperlongurlhyperlongurlhyperlongurlhyperlongurlhyperlongurlhyperlongurlhyperlongurlhyperlongurlhyper.org
>
> But when I make the translation using i18n, the .po file looks
>
> #: myfile/mynewfile.txt:120
> # 0b980b6a3364440bb7bf15ca94a1256c
> msgid "`My title is cool`_"
> msgstr "`Mon titre est cool`_"
>
> For this reason, English (original) doc is ok but French loses the link
> after I applied internationalization
>
> I know I can do as an alternative:
> `Link text <http://example.com/>`_ but I have a lot of URL with 350
> characters so inline url not the way I want when I need to update links.
>
> Do you know a better way to solve my use case or I'm stuck with the inline
> markup solution?
>
> Thanks for any feedback
> Cheers
>
> Thomas
>
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sphinx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sphinx-users.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to