[IMP] extension: mark HTML content as translatable

This commit is contained in:
Martin Trigaux 2021-06-14 14:17:59 +02:00
parent 3a915ce2d1
commit 207bfd6684
4 changed files with 40 additions and 40 deletions

View File

@ -1,9 +1,9 @@
<div class="o_get_help container-fluid d-lg-flex">
<div class="col-12 col-lg-10">
<h5><i class="i-o-help me-2"></i>Get Help</h5>
<h5><i class="i-o-help me-2"></i>{{ _("Get Help") }}</h5>
<div>
<a href="https://odoo.com/help" target="_blank" class="btn btn-outline-secondary mb-2">Contact Support</a>
<a href="https://www.odoo.com/forum/help-1" target="_blank" class="btn btn-outline-secondary mb-2">Ask the Odoo Community</a>
<a href="https://odoo.com/help" target="_blank" class="btn btn-outline-secondary mb-2">{{ _("Contact Support") }}</a>
<a href="https://www.odoo.com/forum/help-1" target="_blank" class="btn btn-outline-secondary mb-2">{{ _("Ask the Odoo Community") }}</a>
</div>
</div>
<div class="col-12 col-lg-2 mt-5 mt-lg-0 text-center">

View File

@ -8,5 +8,5 @@
<div class="d-none d-lg-flex ms-auto">
{%- include "layout_templates/language_switcher.html" %}
{%- include "layout_templates/version_switcher.html" %}
<a class="btn btn-primary fw_semibold" href="https://odoo.com/trial">Try Odoo for FREE</a>
<a class="btn btn-primary fw_semibold" href="https://odoo.com/trial">{{ _('Try Odoo for FREE') }}</a>
</div>

View File

@ -1,64 +1,64 @@
<div id="o_content">
<section class="o_content_fw_banner row">
<div class="col-lg-6">
<h1 class="text-white">Odoo Documentation</h1>
<p class="text-white">The comprehensive guide for Odoo users. Easily find the tutorial and helpful tips that suit your needs.</p>
<h1 class="text-white">{{ _("Odoo Documentation") }}</h1>
<p class="text-white">{{ _("The comprehensive guide for Odoo users. Easily find the tutorial and helpful tips that suit your needs.") }}</p>
<div class="mt-3">
<a href="https://odoo.com/trial" class="btn btn-primary mb-2">Try Odoo for FREE</a>
<a href="https://odoo.com/trial" class="btn btn-primary mb-2">{{ _("Try Odoo for FREE") }}</a>
</div>
</div>
</section>
<section>
<div class="row gx-lg-5">
<div class="col-lg-6">
<h2><i class="i-doc-apps d-lg-none me-2"></i>Applications</h2>
<p class="text-muted">Master any app thanks to their end-user guides. Our wide array of functional workflows and processes are designed to help you unleash Odoo's potential.</p>
<h5 class="text-muted pt-3 text-uppercase fw_semibold">Top Links</h5>
<h2><i class="i-doc-apps d-lg-none me-2"></i>{{ _("Applications") }}</h2>
<p class="text-muted">{{ _("Master any app thanks to their end-user guides. Our wide array of functional workflows and processes are designed to help you unleash Odoo's potential.") }}</p>
<h5 class="text-muted pt-3 text-uppercase fw_semibold">{{ _("Top Links") }}</h5>
<ul class="list-unstyled">
<li>
<a href="{{ pathto('applications/finance/accounting/overview/main_concepts/intro') }}" class="stretched-link">
Introduction to Odoo Accounting
{{ _("Introduction to Odoo Accounting") }}
</a>
</li>
<li>
<a href="{{ pathto('applications/inventory_and_mrp/inventory/overview/concepts/double-entry') }}" class="stretched-link">
Introduction to Inventory Management
{{ _("Introduction to Inventory Management") }}
</a>
</li>
<li>
<a href="{{ pathto('applications/general/base_import/import_faq') }}" class="stretched-link">Import data into Odoo
<a href="{{ pathto('applications/general/base_import/import_faq') }}" class="stretched-link">{{ _("Import data into Odoo") }}
</a>
</li>
<li>
<a href="{{ pathto('applications/productivity/discuss/email_servers') }}" class="stretched-link">
Use my mail server to send and receive emails in Odoo
{{ _("Use my mail server to send and receive emails in Odoo") }}
</a>
</li>
</ul>
</div>
<div class="col-lg-6">
<h2 class="border-top pt-4 pt-lg-0"><i class="i-doc-admin d-lg-none me-2"></i>Administration</h2>
<p class="text-muted">Easily setup your first Odoo installation. From downloads to day-to-day database administration, the dedicated tutorials have got you covered.</p>
<h5 class="text-muted pt-3 text-uppercase fw_semibold">Top Links</h5>
<h2 class="border-top pt-4 pt-lg-0"><i class="i-doc-admin d-lg-none me-2"></i>{{ _("Administration") }}</h2>
<p class="text-muted">{{ _("Easily setup your first Odoo installation. From downloads to day-to-day database administration, the dedicated tutorials have got you covered.") }}</p>
<h5 class="text-muted pt-3 text-uppercase fw_semibold">{{ _("Top Links") }}</h5>
<ul class="list-unstyled">
<li>
<a href=" {{ pathto('administration/install') }} " class="stretched-link">
Installing Odoo
{{ _("Installing Odoo") }}
</a>
</li>
<li>
<a href="{{ pathto('administration/deployment/deploy') }}" class="stretched-link">
Deploying Odoo
{{ _("Deploying Odoo") }}
</a>
</li>
<li>
<a href="{{ pathto('administration/update') }}" class="stretched-link">
Updating Odoo
{{ _("Updating Odoo") }}
</a>
</li>
<li>
<a href="{{ pathto('administration/odoo_sh/overview/introduction') }}" class="stretched-link">
Introduction to Odoo.sh
{{ _("Introduction to Odoo.sh") }}
</a>
</li>
</ul>
@ -66,50 +66,50 @@
</div>
<div class="row gx-lg-5">
<div class="col-lg-6">
<h2 class="border-top pt-4"><i class="i-doc-dev d-lg-none me-2"></i>Developer</h2>
<p class="text-muted">Learn to develop in Odoo by reading the framework references and programmer tutorials.</p>
<h5 class="text-muted pt-3 text-uppercase fw_semibold">Top Links</h5>
<h2 class="border-top pt-4"><i class="i-doc-dev d-lg-none me-2"></i>{{ _("Developer") }}</h2>
<p class="text-muted">{{ _("Learn to develop in Odoo by reading the framework references and programmer tutorials.") }}</p>
<h5 class="text-muted pt-3 text-uppercase fw_semibold">{{ _("Top Links") }}</h5>
<ul class="list-unstyled">
<li>
<a href="{{ pathto('developer/reference/orm') }}" class="stretched-link">
ORM API
{{ _("ORM API") }}
</a>
</li>
<li>
<a href="{{ pathto('developer/howtos/backend') }}" class="stretched-link">
Building a Module
{{ _("Building a Module") }}
</a>
</li>
<li>
<a href="{{ pathto('developer/webservices/odoo') }}" class="stretched-link">
External API
{{ _("External API") }}
</a>
</li>
<li>
<a href="{{ pathto('developer/reference/cmdline') }}" class="stretched-link">
Command-line interface
{{ _("Command-line interface") }}
</a>
</li>
</ul>
</div>
<div class="col-lg-6">
<h2 class="border-top pt-4"><i class="i-doc-services d-lg-none me-2"></i>Services</h2>
<p class="text-muted">Find out how to open a support ticket should you need to contact a Customer Service Representative.</p>
<h5 class="text-muted pt-3 text-uppercase fw_semibold">Top Links</h5>
<h2 class="border-top pt-4"><i class="i-doc-services d-lg-none me-2"></i>{{ _("Services") }}</h2>
<p class="text-muted">{{ _("Find out how to open a support ticket should you need to contact a Customer Service Representative.") }}</p>
<h5 class="text-muted pt-3 text-uppercase fw_semibold">{{ _("Top Links") }}</h5>
<ul class="list-unstyled">
<li>
<a href="{{ pathto('services/support/where_can_i_get_support') }}" class="stretched-link">
Where to find help?
{{ _("Where to find help?") }}
</a>
</li>
<li>
<a href="{{ pathto('services/support/supported_versions') }}" class="stretched-link">
Supported versions
{{ _("Supported versions") }}
</a>
</li>
<li>
<a href="{{ pathto('legal') }}" class="stretched-link">
Legal
{{ _("Legal") }}
</a>
</li>
</ul>
@ -117,18 +117,18 @@
</div>
<div class="row gx-lg-5">
<div class="col-lg-6">
<h2 class="border-top pt-4"><i class="i-doc-contribute d-lg-none me-2"></i>Contributing</h2>
<p class="text-muted">You want to contribute to Odoo but don't know where to start? The tutorials and guidelines are there to help you make Odoo even better.</p>
<h5 class="text-muted pt-3 text-uppercase fw_semibold">Top Links</h5>
<h2 class="border-top pt-4"><i class="i-doc-contribute d-lg-none me-2"></i>{{ _("Contributing") }}</h2>
<p class="text-muted">{{ _("You want to contribute to Odoo but don't know where to start? The tutorials and guidelines are there to help you make Odoo even better.") }}</p>
<h5 class="text-muted pt-3 text-uppercase fw_semibold">{{ _("Top Links") }}</h5>
<ul class="list-unstyled">
<li>
<a href="{{ pathto('contributing/documentation') }}" class="stretched-link">
Write documentation
{{ _("Write documentation") }}
</a>
</li>
<li>
<a href="{{ pathto('contributing/documentation/content_guidelines') }}" class="stretched-link">
Content guidelines
{{ _("Content guidelines") }}
</a>
</li>
</ul>

View File

@ -1,4 +1,4 @@
<div class="o_page_toc_nav mt-1">
<h3>On this page</h3>
<h3>{{ _("On this page") }}</h3>
{{ toc }} {# this is the page TOC (or local toc) #}
</div>