[FIX] legal: fix some broken links (pdfs, translations)
1) PDF files are generated and stored at the root of the CURRENT_BRANCH
directory. The links to those files are generated at different levels of
the doctree, which makes it impossible to use a relative path.
For example the same "Enterprise Agreement" doc in EN is published on:
- /16.0/legal/terms/enterprise.html
- /16.0/fr/legal/terms/enterprise.html
As a workaround, use absolute links for the PDFs. They won't work
locally for now. Can be improved later, as long as we don't break
those links located in various depths of the troctree.
2) The legal constracts aren't translated in all availables languages
(yet), so those links are 404s now. Introduced a conf.py variable
`legal_translations` with the list of languages where translated
contracts are indeed available, and falling back to the EN version
otherwise. Some languages don't have *all* the contracts translated, so
some 404 may remain temporarily.
Forward-port of f69dba70be
This commit is contained in:
@@ -6,7 +6,7 @@ Odoo Enterprise Subscription Agreement
|
||||
|
||||
.. only:: html
|
||||
|
||||
`Download PDF <../../odoo_enterprise_agreement.pdf>`_
|
||||
`Download PDF <https://www.odoo.com/documentation/{CURRENT_BRANCH}/odoo_enterprise_agreement.pdf>`_
|
||||
|
||||
.. note:: Version 10a - 2022-10-27
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ Odoo Enterprise Abonnementsvertrag
|
||||
|
||||
.. only:: html
|
||||
|
||||
`Download PDF <odoo_enterprise_agreement_de.pdf>`_
|
||||
`Download PDF <https://www.odoo.com/documentation/{CURRENT_BRANCH}/odoo_enterprise_agreement_de.pdf>`_
|
||||
.. warning::
|
||||
Dies ist eine deutsche Übersetzung des "Odoo Enterprise Subscription Agreement". Diese
|
||||
Übersetzung soll das Verständnis erleichtern, hat aber keinen rechtlichen Wert. Der einzige
|
||||
|
||||
@@ -7,7 +7,7 @@ Acuerdo de suscripción de Odoo Enterprise
|
||||
|
||||
.. only:: html
|
||||
|
||||
`Download PDF <odoo_enterprise_agreement_es.pdf>`_
|
||||
`Download PDF <https://www.odoo.com/documentation/{CURRENT_BRANCH}/odoo_enterprise_agreement_es.pdf>`_
|
||||
.. warning::
|
||||
Esta es una traducción al español del "Odoo Enterprise Subscription Agreement".
|
||||
Esta traducción se proporciona con la esperanza de que facilite la comprensión, pero no tiene
|
||||
|
||||
@@ -6,7 +6,7 @@ Odoo Enterprise Subscription Agreement (FR)
|
||||
|
||||
.. only:: html
|
||||
|
||||
`Download PDF <odoo_enterprise_agreement_fr.pdf>`_
|
||||
`Download PDF <https://www.odoo.com/documentation/{CURRENT_BRANCH}/odoo_enterprise_agreement_fr.pdf>`_
|
||||
.. warning::
|
||||
Ceci est une traduction en français du contrat “Odoo Enterprise Subscription Agreement”.
|
||||
Cette traduction est fournie dans l’espoir qu’elle facilitera sa compréhension, mais elle
|
||||
|
||||
@@ -7,7 +7,7 @@ Odoo Enterprise Subscription Agreement (NL)
|
||||
|
||||
.. only:: html
|
||||
|
||||
`Download PDF <odoo_enterprise_agreement_nl.pdf>`_
|
||||
`Download PDF <https://www.odoo.com/documentation/{CURRENT_BRANCH}/odoo_enterprise_agreement_nl.pdf>`_
|
||||
.. warning::
|
||||
Dit is een Nederlandse vertaling van de "Odoo Enterprise Subscription Agreement".
|
||||
Deze vertaling wordt verstrekt in de hoop dat deze het begrip zal vergemakkelijken,
|
||||
|
||||
@@ -6,7 +6,7 @@ Odoo Partnership Agreement (ES)
|
||||
|
||||
.. only:: html
|
||||
|
||||
`Download PDF <odoo_partnership_agreement_es.pdf>`_
|
||||
`Download PDF <https://www.odoo.com/documentation/{CURRENT_BRANCH}/odoo_partnership_agreement_es.pdf>`_
|
||||
.. warning::
|
||||
Esta es una traducción al español del "Odoo Partnership Agreement".
|
||||
Esta traducción se proporciona con la esperanza de que facilitará la comprensión,
|
||||
|
||||
@@ -6,7 +6,7 @@ Odoo Partnership Agreement (FR)
|
||||
|
||||
.. only:: html
|
||||
|
||||
`Download PDF <odoo_partnership_agreement_fr.pdf>`_
|
||||
`Download PDF <https://www.odoo.com/documentation/{CURRENT_BRANCH}/odoo_partnership_agreement_fr.pdf>`_
|
||||
.. warning::
|
||||
Ceci est une traduction en français du contrat “Odoo Partnership Agreement”.
|
||||
Cette traduction est fournie dans l’espoir qu’elle facilitera sa compréhension, mais elle
|
||||
|
||||
Reference in New Issue
Block a user