<?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 Multilingual Content Forms in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Multilingual-Content-Forms/m-p/490296#M24939</link>
    <description>&lt;P&gt;I am a complete noob in codes etc.&lt;/P&gt;&lt;P&gt;I am building a website in WordPress (with Elementor) and I would like to integrate a multilingual Contact form from Hubspot based on the language that the visitor will choose.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried different things but I was not able to solve this and the English form is the one appearing all the time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe I need a conditional code to say something like : If the visitor chooses EN and is using [if lte IE 8], use this form OR if the visitor choses FR, then use that code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anybody suggest anything for this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Sep 2021 01:59:47 GMT</pubDate>
    <dc:creator>RafaelBran</dc:creator>
    <dc:date>2021-09-06T01:59:47Z</dc:date>
    <item>
      <title>Multilingual Content Forms</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Multilingual-Content-Forms/m-p/490296#M24939</link>
      <description>&lt;P&gt;I am a complete noob in codes etc.&lt;/P&gt;&lt;P&gt;I am building a website in WordPress (with Elementor) and I would like to integrate a multilingual Contact form from Hubspot based on the language that the visitor will choose.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried different things but I was not able to solve this and the English form is the one appearing all the time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe I need a conditional code to say something like : If the visitor chooses EN and is using [if lte IE 8], use this form OR if the visitor choses FR, then use that code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anybody suggest anything for this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 01:59:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Multilingual-Content-Forms/m-p/490296#M24939</guid>
      <dc:creator>RafaelBran</dc:creator>
      <dc:date>2021-09-06T01:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Multilingual Content Forms</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Multilingual-Content-Forms/m-p/491124#M24940</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/78983"&gt;@Indra&lt;/a&gt; , &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could either of you help our friend &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/230633"&gt;@RafaelBran&lt;/a&gt;&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 16:29:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Multilingual-Content-Forms/m-p/491124#M24940</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2021-09-07T16:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multilingual Content Forms</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Multilingual-Content-Forms/m-p/491268#M24949</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/230633"&gt;@RafaelBran&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What plugin do you use for the multilingual content tot display? If it's wpml you van use this tot target your language:&lt;/P&gt;
&lt;P&gt;if( 'en' == ICL_LANGUAGE_CODE ) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;//english&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;You can also use the object:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;global $sitepress;&lt;/P&gt;
&lt;P&gt;//get current language&lt;/P&gt;
&lt;P&gt;echo $sitepress-&amp;gt;get_current_language()&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 20:38:42 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Multilingual-Content-Forms/m-p/491268#M24949</guid>
      <dc:creator>Indra</dc:creator>
      <dc:date>2021-09-07T20:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Multilingual Content Forms</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Multilingual-Content-Forms/m-p/491323#M24950</link>
      <description>&lt;P&gt;Hello, First of all, thank you for taking the time to answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, to answer the question, I think I have none of this. I am basically using WeGlot to translate our website and I can only enbed the code through elementor.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So when I am on the websote in French and I want to paste the html code to the French form, it brings me to the English website every time which is not mirrored.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 21:59:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Multilingual-Content-Forms/m-p/491323#M24950</guid>
      <dc:creator>RafaelBran</dc:creator>
      <dc:date>2021-09-07T21:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multilingual Content Forms</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Multilingual-Content-Forms/m-p/491466#M24953</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/230633"&gt;@RafaelBran&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With WeGlot i'm not familiar, but if you say you place the French code on the French page it looks like a bug inside WeGlot.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An alternative that you could do is check the page language and set the form if it's a certain language.&lt;/P&gt;
&lt;P&gt;You can checkout this example:&amp;nbsp;&lt;A href="https://codepen.io/ind88/pen/GRErWPm" target="_blank"&gt;https://codepen.io/ind88/pen/GRErWPm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The code is like this&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;HTML:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Page language:&amp;amp;nbsp;&amp;lt;strong class="output"&amp;gt;&amp;lt;/strong&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;Javascript&amp;amp;colon;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;// Get page language
var lang = document.documentElement.lang;

// Get output for demo usage
var el = document.querySelector('.output');
// Set output
el.innerHTML = lang;
// Debug info
console.log('Page language' + lang);

// If conditions
if(lang == 'fr'){
  // Your French code
} else {
  // fallback or default
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 05:49:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Multilingual-Content-Forms/m-p/491466#M24953</guid>
      <dc:creator>Indra</dc:creator>
      <dc:date>2021-09-08T05:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Multilingual Content Forms</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Multilingual-Content-Forms/m-p/655594#M29213</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/78983"&gt;@Indra&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;I have exactly the same problem on our website. Could you help us out? As we use weglot for translating the whole website, but just the Hubspot form is not translated. I would very highly appreciate help in this regard.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jun 2022 08:36:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Multilingual-Content-Forms/m-p/655594#M29213</guid>
      <dc:creator>DGuas</dc:creator>
      <dc:date>2022-06-26T08:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Multilingual Content Forms</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Multilingual-Content-Forms/m-p/656396#M29230</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/230633"&gt;@RafaelBran&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you have problems translating within WordPress combining WeGlot, I would suggest searching on there website for support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps this page will help you translating custom parts:&amp;nbsp;&lt;A href="https://developers.weglot.com/wordpress/filters/translations-filters" target="_blank"&gt;https://developers.weglot.com/wordpress/filters/translations-filters&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first option I mentioned with javascript should also still work if you don't want to work with filters because it's checking the page language.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 06:16:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Multilingual-Content-Forms/m-p/656396#M29230</guid>
      <dc:creator>Indra</dc:creator>
      <dc:date>2022-06-28T06:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Multilingual Content Forms</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Multilingual-Content-Forms/m-p/658538#M29283</link>
      <description>&lt;P&gt;Thanks for taking the time to loop back here,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/78983"&gt;@Indra&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":raising_hands:"&gt;🙌&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 23:52:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Multilingual-Content-Forms/m-p/658538#M29283</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2022-06-30T23:52:07Z</dc:date>
    </item>
  </channel>
</rss>

