[Skip to main content](#vessel-content)

#   Social Plugin - Opengraph for multilingual sites

##

- **[Sandra74](/forum/user/60896-sandra74 "View Sandra74's Profile")**
- [![Sandra74's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60896-sandra74 "View Sandra74's Profile") Topic Author
- [ Offline](/forum/user/60896-sandra74)

Less More

- Posts: 197
- Thank you received: 18
-
-

3 years 8 months ago [\#349814](#349814) by [Sandra74](/forum/user/60896-sandra74 "View Sandra74's Profile")  *[Social Plugin - Opengraph for multilingual sites](/forum/26-product-category-display/906024-social-plugin-opengraph-for-multilingual-sites#349814 "-- url of the page with the problem -- :   rolex.jewelrygoldfinger.com/fr/collection/datejust/m278275-0010  -- HikaShop version -- : 4.7.1 -- Joomla version -- : 4.2.8 -- PHP version -- : 8.1.14  Hi,  My website is in 2 languages.  The information displayed in English (US) on Facebook are correct but when I share a page in French, the information displayed are in English and not in French.  Could you please tell me how I can have the card displayed in the correct language?  Thanks in advance  Sandra")* was created by *[Sandra74](/forum/user/60896-sandra74 "View Sandra74's Profile")*

-- url of the page with the problem -- : [ rolex.jewelrygoldfinger.com/fr/collection/datejust/m278275-0010](https://rolex.jewelrygoldfinger.com/fr/collection/datejust/m278275-0010)
-- HikaShop version -- : 4.7.1
-- Joomla version -- : 4.2.8
-- PHP version -- : 8.1.14

Hi,

My website is in 2 languages.

The information displayed in English (US) on Facebook are correct but when I share a page in French, the information displayed are in English and not in French.

Could you please tell me how I can have the card displayed in the correct language?

Thanks in advance

Sandra

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDYwMjQtc29jaWFsLXBsdWdpbi1vcGVuZ3JhcGgtZm9yLW11bHRpbGluZ3VhbC1zaXRlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

3 years 8 months ago [\#349819](#349819) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Social Plugin - Opengraph for multilingual sites](/forum/26-product-category-display/906024-social-plugin-opengraph-for-multilingual-sites#349819 "-- url of the page with the problem -- :   rolex.jewelrygoldfinger.com/fr/collection/datejust/m278275-0010  -- HikaShop version -- : 4.7.1 -- Joomla version -- : 4.2.8 -- PHP version -- : 8.1.14  Hi,  My website is in 2 languages.  The information displayed in English (US) on Facebook are correct but when I share a page in French, the information displayed are in English and not in French.  Could you please tell me how I can have the card displayed in the correct language?  Thanks in advance  Sandra")*

Hi,

That's strange. The opengraph meta tags added to the headers of the page do seem to be added by the social plugin.
However, as I can see with the Google plus javascript, it sees the current language as being French:
[ i.imgur.com/KRc7R1i.png](https://i.imgur.com/KRc7R1i.png)
Also, this works fine on my end. I do get the current language text in there.
Another strange thing is that the description meta tag uses the product description. However, if I look at the HTML of your page, the description starts with the text Code:

Rolex DATEJUST 31 Oyster, 31 mm, Everose gold

on that page:
[ i.imgur.com/YnNY9a7.png](https://i.imgur.com/YnNY9a7.png)
And not with the text Code:

Discover the Rolex Datejust watch in Gold and Coloured dial, Dark dial

I can see in the meta tags.
Where does that text comes from ? Or was the layout of the page changed so that something else is displayed in the description area instead of just the description ?

And how do you manage the translations ? Are you using Falang ? Or only the native translation system in HikaShop ?

We might need a backend and FTP access in order to dig into the matter to better understand what's going on...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDYwMjQtc29jaWFsLXBsdWdpbi1vcGVuZ3JhcGgtZm9yLW11bHRpbGluZ3VhbC1zaXRlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Sandra74](/forum/user/60896-sandra74 "View Sandra74's Profile")**
- [![Sandra74's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60896-sandra74 "View Sandra74's Profile") Topic Author
- [ Offline](/forum/user/60896-sandra74)

Less More

- Posts: 197
- Thank you received: 18
-
-

3 years 8 months ago [\#349864](#349864) by [Sandra74](/forum/user/60896-sandra74 "View Sandra74's Profile")  Replied by *[Sandra74](/forum/user/60896-sandra74 "View Sandra74's Profile")* on topic *[Social Plugin - Opengraph for multilingual sites](/forum/26-product-category-display/906024-social-plugin-opengraph-for-multilingual-sites#349864 "-- url of the page with the problem -- :   rolex.jewelrygoldfinger.com/fr/collection/datejust/m278275-0010  -- HikaShop version -- : 4.7.1 -- Joomla version -- : 4.2.8 -- PHP version -- : 8.1.14  Hi,  My website is in 2 languages.  The information displayed in English (US) on Facebook are correct but when I share a page in French, the information displayed are in English and not in French.  Could you please tell me how I can have the card displayed in the correct language?  Thanks in advance  Sandra")*

Hi Nicolas,

I edited the plugin so that it uses the meta title and the meta description of the product (as on the site, the title is a language string and the description doesn't contain the needed information).

Regarding the translations, I'm using the Hikashop System.

I can grant you FTP and admin access without any issue.
I have the same issue on another site set up in the same way: [ tudor.jewelrygoldfinger.com/fr/collectio...ack-bay/m79230r-0012](https://tudor.jewelrygoldfinger.com/fr/collection/black-bay/m79230r-0012)

Thanks in advance for your help

Sandra

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDYwMjQtc29jaWFsLXBsdWdpbi1vcGVuZ3JhcGgtZm9yLW11bHRpbGluZ3VhbC1zaXRlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

3 years 8 months ago [\#349866](#349866) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Social Plugin - Opengraph for multilingual sites](/forum/26-product-category-display/906024-social-plugin-opengraph-for-multilingual-sites#349866 "-- url of the page with the problem -- :   rolex.jewelrygoldfinger.com/fr/collection/datejust/m278275-0010  -- HikaShop version -- : 4.7.1 -- Joomla version -- : 4.2.8 -- PHP version -- : 8.1.14  Hi,  My website is in 2 languages.  The information displayed in English (US) on Facebook are correct but when I share a page in French, the information displayed are in English and not in French.  Could you please tell me how I can have the card displayed in the correct language?  Thanks in advance  Sandra")*

Hi,

Then the issue must come from the code you modified.
I looked at your previous messages on the forum and found this:
[ www.hikashop.com/forum/product-category-...cription.html#349369](https://www.hikashop.com/forum/product-category-display/905920-how-to-edit-open-graph-title-and-description.html#349369)
This is fine, but it will only handle the translations if you're using Falang.
Without Falang, you need to use instead the code: Code:

$ret-&gt;name = hikashop_translate($element-&gt;product_page_title); $ret-&gt;description = hikashop_translate($element-&gt;product_meta_description);

This is not needed for the product_name and product_description as it is handled automatically when the product data is loaded.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDYwMjQtc29jaWFsLXBsdWdpbi1vcGVuZ3JhcGgtZm9yLW11bHRpbGluZ3VhbC1zaXRlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Sandra74](/forum/user/60896-sandra74 "View Sandra74's Profile")**
- [![Sandra74's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60896-sandra74 "View Sandra74's Profile") Topic Author
- [ Offline](/forum/user/60896-sandra74)

Less More

- Posts: 197
- Thank you received: 18
-
-

3 years 8 months ago [\#349880](#349880) by [Sandra74](/forum/user/60896-sandra74 "View Sandra74's Profile")  Replied by *[Sandra74](/forum/user/60896-sandra74 "View Sandra74's Profile")* on topic *[Social Plugin - Opengraph for multilingual sites](/forum/26-product-category-display/906024-social-plugin-opengraph-for-multilingual-sites#349880 "-- url of the page with the problem -- :   rolex.jewelrygoldfinger.com/fr/collection/datejust/m278275-0010  -- HikaShop version -- : 4.7.1 -- Joomla version -- : 4.2.8 -- PHP version -- : 8.1.14  Hi,  My website is in 2 languages.  The information displayed in English (US) on Facebook are correct but when I share a page in French, the information displayed are in English and not in French.  Could you please tell me how I can have the card displayed in the correct language?  Thanks in advance  Sandra")*

Thanks a lot.

It's now correctly displayed in French.
But not anymore in en-US, which now displays the French version too.
(en-US is my default language)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDYwMjQtc29jaWFsLXBsdWdpbi1vcGVuZ3JhcGgtZm9yLW11bHRpbGluZ3VhbC1zaXRlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

3 years 8 months ago [\#349884](#349884) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Social Plugin - Opengraph for multilingual sites](/forum/26-product-category-display/906024-social-plugin-opengraph-for-multilingual-sites#349884 "-- url of the page with the problem -- :   rolex.jewelrygoldfinger.com/fr/collection/datejust/m278275-0010  -- HikaShop version -- : 4.7.1 -- Joomla version -- : 4.2.8 -- PHP version -- : 8.1.14  Hi,  My website is in 2 languages.  The information displayed in English (US) on Facebook are correct but when I share a page in French, the information displayed are in English and not in French.  Could you please tell me how I can have the card displayed in the correct language?  Thanks in advance  Sandra")*

Hi,

I can see the fix works fine for both languages on [ tudor.jewelrygoldfinger.com/fr/collectio...ack-bay/m79230r-0012](https://tudor.jewelrygoldfinger.com/fr/collection/black-bay/m79230r-0012)
So I think it's just that you have the French translation for the meta description in the en-US translation popup.
You need to check the en-US translations for the page title and meta description of that product.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDYwMjQtc29jaWFsLXBsdWdpbi1vcGVuZ3JhcGgtZm9yLW11bHRpbGluZ3VhbC1zaXRlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Sandra74](/forum/user/60896-sandra74 "View Sandra74's Profile")**
- [![Sandra74's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60896-sandra74 "View Sandra74's Profile") Topic Author
- [ Offline](/forum/user/60896-sandra74)

Less More

- Posts: 197
- Thank you received: 18
-
-

3 years 8 months ago [\#349892](#349892) by [Sandra74](/forum/user/60896-sandra74 "View Sandra74's Profile")  Replied by *[Sandra74](/forum/user/60896-sandra74 "View Sandra74's Profile")* on topic *[Social Plugin - Opengraph for multilingual sites](/forum/26-product-category-display/906024-social-plugin-opengraph-for-multilingual-sites#349892 "-- url of the page with the problem -- :   rolex.jewelrygoldfinger.com/fr/collection/datejust/m278275-0010  -- HikaShop version -- : 4.7.1 -- Joomla version -- : 4.2.8 -- PHP version -- : 8.1.14  Hi,  My website is in 2 languages.  The information displayed in English (US) on Facebook are correct but when I share a page in French, the information displayed are in English and not in French.  Could you please tell me how I can have the card displayed in the correct language?  Thanks in advance  Sandra")*

For the American version, it's displayed in French, as you can see on my screenshot.

In fact, I have no content in the 'en-US' pop-up, I have the US version on the main screen, else it would have meant entering the english version twice,

- [ ![Sanstitre.png](/forum/attachment/56629) ](/forum/attachment/56629 "Sanstitre.png") [ ](/forum/attachment/56629?download=1 "Sanstitre.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDYwMjQtc29jaWFsLXBsdWdpbi1vcGVuZ3JhcGgtZm9yLW11bHRpbGluZ3VhbC1zaXRlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

3 years 8 months ago [\#349895](#349895) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Social Plugin - Opengraph for multilingual sites](/forum/26-product-category-display/906024-social-plugin-opengraph-for-multilingual-sites#349895 "-- url of the page with the problem -- :   rolex.jewelrygoldfinger.com/fr/collection/datejust/m278275-0010  -- HikaShop version -- : 4.7.1 -- Joomla version -- : 4.2.8 -- PHP version -- : 8.1.14  Hi,  My website is in 2 languages.  The information displayed in English (US) on Facebook are correct but when I share a page in French, the information displayed are in English and not in French.  Could you please tell me how I can have the card displayed in the correct language?  Thanks in advance  Sandra")*

Hi,

But then, you confirm that it fixes the problem on the other website, right ?
Then, I can only think it's a setup issue on that website.
Could you provide a backend access so that I could check the situation ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDYwMjQtc29jaWFsLXBsdWdpbi1vcGVuZ3JhcGgtZm9yLW11bHRpbGluZ3VhbC1zaXRlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Sandra74](/forum/user/60896-sandra74 "View Sandra74's Profile")**
- [![Sandra74's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60896-sandra74 "View Sandra74's Profile") Topic Author
- [ Offline](/forum/user/60896-sandra74)

Less More

- Posts: 197
- Thank you received: 18
-
-

3 years 8 months ago [\#349910](#349910) by [Sandra74](/forum/user/60896-sandra74 "View Sandra74's Profile")  Replied by *[Sandra74](/forum/user/60896-sandra74 "View Sandra74's Profile")* on topic *[Social Plugin - Opengraph for multilingual sites](/forum/26-product-category-display/906024-social-plugin-opengraph-for-multilingual-sites#349910 "-- url of the page with the problem -- :   rolex.jewelrygoldfinger.com/fr/collection/datejust/m278275-0010  -- HikaShop version -- : 4.7.1 -- Joomla version -- : 4.2.8 -- PHP version -- : 8.1.14  Hi,  My website is in 2 languages.  The information displayed in English (US) on Facebook are correct but when I share a page in French, the information displayed are in English and not in French.  Could you please tell me how I can have the card displayed in the correct language?  Thanks in advance  Sandra")*

Hi Nicolas,

Nope, it doesn't work on the other site either.

Your backend access is still enable. I'll send you again your credentials.

Thanks

Sandra

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDYwMjQtc29jaWFsLXBsdWdpbi1vcGVuZ3JhcGgtZm9yLW11bHRpbGluZ3VhbC1zaXRlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

3 years 8 months ago [\#349911](#349911) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Social Plugin - Opengraph for multilingual sites](/forum/26-product-category-display/906024-social-plugin-opengraph-for-multilingual-sites#349911 "-- url of the page with the problem -- :   rolex.jewelrygoldfinger.com/fr/collection/datejust/m278275-0010  -- HikaShop version -- : 4.7.1 -- Joomla version -- : 4.2.8 -- PHP version -- : 8.1.14  Hi,  My website is in 2 languages.  The information displayed in English (US) on Facebook are correct but when I share a page in French, the information displayed are in English and not in French.  Could you please tell me how I can have the card displayed in the correct language?  Thanks in advance  Sandra")*

Hi,

Then we'll also need a FTP access in order to do some debugging. Could you also provide one please ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDYwMjQtc29jaWFsLXBsdWdpbi1vcGVuZ3JhcGgtZm9yLW11bHRpbGluZ3VhbC1zaXRlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Sandra74](/forum/user/60896-sandra74 "View Sandra74's Profile")**
- [![Sandra74's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60896-sandra74 "View Sandra74's Profile") Topic Author
- [ Offline](/forum/user/60896-sandra74)

Less More

- Posts: 197
- Thank you received: 18
-
-

3 years 8 months ago [\#349920](#349920) by [Sandra74](/forum/user/60896-sandra74 "View Sandra74's Profile")  Replied by *[Sandra74](/forum/user/60896-sandra74 "View Sandra74's Profile")* on topic *[Social Plugin - Opengraph for multilingual sites](/forum/26-product-category-display/906024-social-plugin-opengraph-for-multilingual-sites#349920 "-- url of the page with the problem -- :   rolex.jewelrygoldfinger.com/fr/collection/datejust/m278275-0010  -- HikaShop version -- : 4.7.1 -- Joomla version -- : 4.2.8 -- PHP version -- : 8.1.14  Hi,  My website is in 2 languages.  The information displayed in English (US) on Facebook are correct but when I share a page in French, the information displayed are in English and not in French.  Could you please tell me how I can have the card displayed in the correct language?  Thanks in advance  Sandra")*

FTP access credentials sent.

Thanks

Sandra

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDYwMjQtc29jaWFsLXBsdWdpbi1vcGVuZ3JhcGgtZm9yLW11bHRpbGluZ3VhbC1zaXRlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

3 years 8 months ago [\#349936](#349936) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Social Plugin - Opengraph for multilingual sites](/forum/26-product-category-display/906024-social-plugin-opengraph-for-multilingual-sites#349936 "-- url of the page with the problem -- :   rolex.jewelrygoldfinger.com/fr/collection/datejust/m278275-0010  -- HikaShop version -- : 4.7.1 -- Joomla version -- : 4.2.8 -- PHP version -- : 8.1.14  Hi,  My website is in 2 languages.  The information displayed in English (US) on Facebook are correct but when I share a page in French, the information displayed are in English and not in French.  Could you please tell me how I can have the card displayed in the correct language?  Thanks in advance  Sandra")*

Hi,

I'm not sure why it does this. I had to reset the language overrides with this code before the first call to hikashop_translate : Code:

$lang = JFactory::getLanguage(); $configClass = hikashop_config(); $override_path = hikashop_getLanguagePath(JPATH_ROOT).DS.'overrides'.DS.$lang-&gt;getTag().'.override.ini'; if(file_exists($override_path) &amp;&amp; $lang-&gt;getTag() != 'en-GB' &amp;&amp; $configClass-&gt;get('multi_language_edit') &amp;&amp; $configClass-&gt;get('language_files_forced_reload', 1)) { $resetOverride = function() { $this-&gt;override = array(); $this-&gt;strings = array(); if(!empty($this-&gt;paths)) { foreach($this-&gt;paths as $extension =&gt; $files) { if(!empty($files)) { foreach($files as $file =&gt; $result) { if(!$result) continue; if(strpos($file, '/overrides/en-GB')) continue; $strings = $this-&gt;parse($file); $this-&gt;strings = array_replace($this-&gt;strings, $strings); } } } } }; $lang = JFactory::getLanguage(); $resetOverrideCB = $resetOverride-&gt;bindTo($lang, 'JLanguage'); $resetOverrideCB(); } $lang-&gt;load(HIKASHOP_COMPONENT,JPATH_SITE); if(file_exists($override_path)) { hikashop_loadTranslationFile($override_path); }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDYwMjQtc29jaWFsLXBsdWdpbi1vcGVuZ3JhcGgtZm9yLW11bHRpbGluZ3VhbC1zaXRlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Sandra74](/forum/user/60896-sandra74 "View Sandra74's Profile")**
- [![Sandra74's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60896-sandra74 "View Sandra74's Profile") Topic Author
- [ Offline](/forum/user/60896-sandra74)

Less More

- Posts: 197
- Thank you received: 18
-
-

3 years 8 months ago [\#349962](#349962) by [Sandra74](/forum/user/60896-sandra74 "View Sandra74's Profile")  Replied by *[Sandra74](/forum/user/60896-sandra74 "View Sandra74's Profile")* on topic *[Social Plugin - Opengraph for multilingual sites](/forum/26-product-category-display/906024-social-plugin-opengraph-for-multilingual-sites#349962 "-- url of the page with the problem -- :   rolex.jewelrygoldfinger.com/fr/collection/datejust/m278275-0010  -- HikaShop version -- : 4.7.1 -- Joomla version -- : 4.2.8 -- PHP version -- : 8.1.14  Hi,  My website is in 2 languages.  The information displayed in English (US) on Facebook are correct but when I share a page in French, the information displayed are in English and not in French.  Could you please tell me how I can have the card displayed in the correct language?  Thanks in advance  Sandra")*

Hi Nicolas,

Thanks a lot! It now works like a charm.

Thanks again for your help

Sandra

The following user(s) said Thank You: [Philip](/forum/user/34318-philip "View Philip's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDYwMjQtc29jaWFsLXBsdWdpbi1vcGVuZ3JhcGgtZm9yLW11bHRpbGluZ3VhbC1zaXRlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.091 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
