<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Change language dynamically in quote template in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Change-language-dynamically-in-quote-template/m-p/936505#M38180</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Changing the language dynamically in a quote template can be achieved through various methods, depending on the platform or tool you are using for creating and managing your templates. Here is a general guide on how you might approach this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The &lt;A href="https://branchcodehub.com/fnb-branch-code/" target="_blank" rel="noopener"&gt;fnb branch code&lt;/A&gt; is a simple number given to its different branches when one has to make online payments.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 09 Mar 2024 15:37:39 GMT</pubDate>
    <dc:creator>john533</dc:creator>
    <dc:date>2024-03-09T15:37:39Z</dc:date>
    <item>
      <title>Change language dynamically in quote template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Change-language-dynamically-in-quote-template/m-p/898604#M37268</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;I need help with the following code in my cloned basic.html template file:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;section aria-label="line-items"&amp;gt;
   {% if LOCALE == "de" %}
      {% module "line_items_table"
      path="../modules/line_items_table"
      display_heading="true"
      line_item_column=[ 
      {
      "column_title": "Produktbeschreibung",
      "column_property": "description"
      },
      {
      "column_title": "Gesamt &amp;lt;br&amp;gt; (EUR)",
      "column_property": "amount1"
      }
      ]
      %}
   {% elif LOCALE == "en-us" %}
      {% module "line_items_table"
      path="../modules/line_items_table"
      display_heading="true"
      line_item_column=[
      {
      "column_title": "Product",
      "column_property": "description"
      },
      {
      "column_title": "Total &amp;lt;br&amp;gt; (EUR)",
      "column_property": "amount1"
      }
      ]
      %}
   {% endif %}
&amp;lt;/section&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The variable LOCALE is set in base.html:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% set LOCALE = QUOTE.hs_locale || 'de' %}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My intention behind this is to change language of the line item columns title depending on the quote language, which can be set by the end user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In reality it always goes for the english titles, even when LOCALE is not "en-us".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 200px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/106139i02A9ECAED8679753/image-size/small?v=v2&amp;amp;px=200" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A screenshot of {{LOCALE}} and the column titles (I cut down the code sample for clarity reasons)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The weird thing is, I have a similar use case before that and this works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried to tinker around with&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{# Retrieve translations for the template #}
{% set template_translations = load_translations('../_locales', html_lang, 'de') %}&lt;/LI-CODE&gt;&lt;P&gt;But this does not let me edit the translation file and by cloning and importing the file I only had errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate you help, thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 08:44:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Change-language-dynamically-in-quote-template/m-p/898604#M37268</guid>
      <dc:creator>tnguyen_cbb</dc:creator>
      <dc:date>2023-12-28T08:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Change language dynamically in quote template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Change-language-dynamically-in-quote-template/m-p/898613#M37269</link>
      <description>&lt;P&gt;Certainly! If you're dealing with numbered or bulleted lists in a Word document, you can easily remove the numbering or bullets by selecting the list, going to the "Home" tab, and clicking the "Numbering" or "Bullets" button. In HTML and CSS, for ordered lists (`&amp;lt;ol&amp;gt;`), you can remove numbering by either eliminating the `type` attribute or setting it to `"none"`. For unordered lists (`&amp;lt;ul&amp;gt;`), you can remove bullets by removing the `list-style-type` property or setting it to `"none"` in your CSS. In Markdown, for ordered lists, you can switch from numbers to hyphens, asterisks, or plus signs. For unordered lists, you can remove the bullets by using hyphens, asterisks, or plus signs without any numbers. Adjust these approaches based on your specific context or tool. If you need assistance with web design services, feel free to explore our offerings at &lt;A href="https://seatechinnovations.net/bellevue-web-design/" target="_blank" rel="noopener"&gt;Bellevue Web Designer Services&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Dec 2023 01:18:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Change-language-dynamically-in-quote-template/m-p/898613#M37269</guid>
      <dc:creator>Scofeild618</dc:creator>
      <dc:date>2023-12-31T01:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Change language dynamically in quote template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Change-language-dynamically-in-quote-template/m-p/898619#M37270</link>
      <description>&lt;P&gt;I think you answered the wrong question. My question is related to language not list style types.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 09:04:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Change-language-dynamically-in-quote-template/m-p/898619#M37270</guid>
      <dc:creator>tnguyen_cbb</dc:creator>
      <dc:date>2023-12-28T09:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Change language dynamically in quote template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Change-language-dynamically-in-quote-template/m-p/899316#M37294</link>
      <description>&lt;P&gt;I apologize for the confusion. To dynamically change the language of line item column titles based on the quote language in your HTML template, it seems like your approach with the LOCALE variable is correct. However, if it's consistently defaulting to English titles, there might be an issue with the LOCALE variable assignment or the way it's being retrieved.&lt;/P&gt;&lt;P&gt;Firstly, double-check how the LOCALE variable is set in your base.html file:&lt;/P&gt;&lt;P&gt;```html&lt;BR /&gt;{% set LOCALE = QUOTE.hs_locale || 'de' %}&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;Ensure that QUOTE.hs_locale contains the correct language code.&lt;/P&gt;&lt;P&gt;If the LOCALE variable is correctly set, try simplifying the conditional statements in your template:&lt;/P&gt;&lt;P&gt;```html&lt;BR /&gt;&amp;lt;section aria-label="line-items"&amp;gt;&lt;BR /&gt;{% if LOCALE == "de" %}&lt;BR /&gt;{% set column_titles = ["Produktbeschreibung", "Gesamt &amp;lt;br&amp;gt; (EUR)"] %}&lt;BR /&gt;{% elif LOCALE == "en-us" %}&lt;BR /&gt;{% set column_titles = ["Product", "Total &amp;lt;br&amp;gt; (EUR)"] %}&lt;BR /&gt;{% endif %}&lt;/P&gt;&lt;P&gt;{% module "line_items_table"&lt;BR /&gt;path="../modules/line_items_table"&lt;BR /&gt;display_heading="true"&lt;BR /&gt;line_item_column=[&lt;BR /&gt;{&lt;BR /&gt;"column_title": column_titles[0],&lt;BR /&gt;"column_property": "description"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"column_title": column_titles[1],&lt;BR /&gt;"column_property": "amount1"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;%}&lt;BR /&gt;&amp;lt;/section&amp;gt;&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;This simplifies the code and might help identify any issues with the LOCALE variable or conditional logic.&lt;/P&gt;&lt;P&gt;If the problem persists, consider outputting the value of {{ LOCALE }} and other relevant variables for debugging purposes. You can use console.log or other debugging techniques based on your platform.&lt;/P&gt;&lt;P&gt;I hope this provides more clarity, and I appreciate your patience.&lt;/P&gt;</description>
      <pubDate>Sun, 31 Dec 2023 01:16:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Change-language-dynamically-in-quote-template/m-p/899316#M37294</guid>
      <dc:creator>Scofeild618</dc:creator>
      <dc:date>2023-12-31T01:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Change language dynamically in quote template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Change-language-dynamically-in-quote-template/m-p/936505#M38180</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Changing the language dynamically in a quote template can be achieved through various methods, depending on the platform or tool you are using for creating and managing your templates. Here is a general guide on how you might approach this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The &lt;A href="https://branchcodehub.com/fnb-branch-code/" target="_blank" rel="noopener"&gt;fnb branch code&lt;/A&gt; is a simple number given to its different branches when one has to make online payments.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Mar 2024 15:37:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Change-language-dynamically-in-quote-template/m-p/936505#M38180</guid>
      <dc:creator>john533</dc:creator>
      <dc:date>2024-03-09T15:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Change language dynamically in quote template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Change-language-dynamically-in-quote-template/m-p/1080395#M41511</link>
      <description>&lt;P&gt;Depending on the platform or tool you are using to create and manage your templates, there are a number of ways to dynamically change the language in a quotation template. This is a straightforward number that is provided to its many branches when one needs to make payments online. Here is a broad advice on how you could approach it.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Dec 2024 08:03:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Change-language-dynamically-in-quote-template/m-p/1080395#M41511</guid>
      <dc:creator>mike533</dc:creator>
      <dc:date>2024-12-07T08:03:27Z</dc:date>
    </item>
  </channel>
</rss>

