mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
test_intl:external_link test case correction to fit to reST syntax.
This commit is contained in:
@@ -25,8 +25,8 @@ msgstr "EXTERNAL LINK TO Python_."
|
||||
msgid "Internal link to `i18n with external links`_."
|
||||
msgstr "`EXTERNAL LINKS`_ IS INTERNAL LINK."
|
||||
|
||||
msgid "Inline link by `Sphinx <http://sphinx-doc.org>`_."
|
||||
msgstr "INLINE LINK BY `SPHINX <http://sphinx-doc.org>`_."
|
||||
msgid "Inline link by `Sphinx Site <http://sphinx-doc.org>`_."
|
||||
msgstr "INLINE LINK BY `THE SPHINX SITE <http://sphinx-doc.org>`_."
|
||||
|
||||
msgid "Unnamed link__."
|
||||
msgstr "UNNAMED LINK__."
|
||||
@@ -37,11 +37,11 @@ msgstr "LINK TARGET SWAPPED TRANSLATION"
|
||||
msgid "link to external1_ and external2_."
|
||||
msgstr "LINK TO external2_ AND external1_."
|
||||
|
||||
msgid "link to `Sphinx <http://sphinx-doc.org>`_ and `Python <http://python.org>`_."
|
||||
msgstr "LINK TO `THE PYTHON <http://python.org>`_ AND `THE SPHINX <http://sphinx-doc.org>`_."
|
||||
msgid "link to `Sphinx Site <http://sphinx-doc.org>`_ and `Python Site <http://python.org>`_."
|
||||
msgstr "LINK TO `THE PYTHON SITE <http://python.org>`_ AND `THE SPHINX SITE <http://sphinx-doc.org>`_."
|
||||
|
||||
msgid "Multiple references in the same line"
|
||||
msgstr "MULTIPLE REFERENCES IN THE SAME LINE"
|
||||
|
||||
msgid "Link to `Sphinx <http://sphinx-doc.org>`_, `Python <http://python.org>`_, Python_, Unnamed__ and `i18n with external links`_."
|
||||
msgstr "LINK TO `EXTERNAL LINKS`_, Python_, `THE SPHINX <http://sphinx-doc.org>`_, UNNAMED__ AND `THE PYTHON <http://python.org>`_."
|
||||
msgid "Link to `Sphinx Site <http://sphinx-doc.org>`_, `Python Site <http://python.org>`_, Python_, Unnamed__ and `i18n with external links`_."
|
||||
msgstr "LINK TO `EXTERNAL LINKS`_, Python_, `THE SPHINX SITE <http://sphinx-doc.org>`_, UNNAMED__ AND `THE PYTHON SITE <http://python.org>`_."
|
||||
|
||||
@@ -8,11 +8,11 @@ External link to Python_.
|
||||
|
||||
Internal link to `i18n with external links`_.
|
||||
|
||||
Inline link by `Sphinx <http://sphinx-doc.org>`_.
|
||||
Inline link by `Sphinx Site <http://sphinx-doc.org>`_.
|
||||
|
||||
Unnamed link__.
|
||||
|
||||
.. _Python: http://python.org
|
||||
.. _Python: http://python.org/index.html
|
||||
.. __: http://google.com
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ link target swapped translation
|
||||
|
||||
link to external1_ and external2_.
|
||||
|
||||
link to `Sphinx <http://sphinx-doc.org>`_ and `Python <http://python.org>`_.
|
||||
link to `Sphinx Site <http://sphinx-doc.org>`_ and `Python Site <http://python.org>`_.
|
||||
|
||||
.. _external1: http://example.com/external1
|
||||
.. _external2: http://example.com/external2
|
||||
@@ -30,6 +30,6 @@ link to `Sphinx <http://sphinx-doc.org>`_ and `Python <http://python.org>`_.
|
||||
Multiple references in the same line
|
||||
=====================================
|
||||
|
||||
Link to `Sphinx <http://sphinx-doc.org>`_, `Python <http://python.org>`_, Python_, Unnamed__ and `i18n with external links`_.
|
||||
Link to `Sphinx Site <http://sphinx-doc.org>`_, `Python Site <http://python.org>`_, Python_, Unnamed__ and `i18n with external links`_.
|
||||
|
||||
.. __: http://google.com
|
||||
|
||||
@@ -235,7 +235,7 @@ def test_i18n_keep_external_links(app):
|
||||
assert_elem_text_refs(
|
||||
para0[0],
|
||||
['EXTERNAL LINK TO', 'Python', '.'],
|
||||
['http://python.org'])
|
||||
['http://python.org/index.html'])
|
||||
|
||||
# internal link check
|
||||
assert_elem_text_refs(
|
||||
@@ -246,7 +246,7 @@ def test_i18n_keep_external_links(app):
|
||||
# inline link check
|
||||
assert_elem_text_refs(
|
||||
para0[2],
|
||||
['INLINE LINK BY', 'SPHINX', '.'],
|
||||
['INLINE LINK BY', 'THE SPHINX SITE', '.'],
|
||||
['http://sphinx-doc.org'])
|
||||
|
||||
# unnamed link check
|
||||
@@ -263,16 +263,16 @@ def test_i18n_keep_external_links(app):
|
||||
['http://example.com/external2', 'http://example.com/external1'])
|
||||
assert_elem_text_refs(
|
||||
para1[1],
|
||||
['LINK TO', 'THE PYTHON', 'AND', 'THE SPHINX', '.'],
|
||||
['LINK TO', 'THE PYTHON SITE', 'AND', 'THE SPHINX SITE', '.'],
|
||||
['http://python.org', 'http://sphinx-doc.org'])
|
||||
|
||||
# multiple references in the same line
|
||||
para2 = secs[2].findall('paragraph')
|
||||
assert_elem_text_refs(
|
||||
para2[0],
|
||||
['LINK TO', 'EXTERNAL LINKS', ',', 'Python', ',', 'THE SPHINX',
|
||||
',', 'UNNAMED', 'AND', 'THE PYTHON', '.'],
|
||||
['i18n-with-external-links', 'http://python.org',
|
||||
['LINK TO', 'EXTERNAL LINKS', ',', 'Python', ',',
|
||||
'THE SPHINX SITE', ',', 'UNNAMED', 'AND', 'THE PYTHON SITE', '.'],
|
||||
['i18n-with-external-links', 'http://python.org/index.html',
|
||||
'http://sphinx-doc.org', 'http://google.com',
|
||||
'http://python.org'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user