*

7ala

  • ****
  • 144 posts
Language change code
« on: March 31, 2021, 10:55:28 AM »
welcome everybody
Please
Multilingual site Most of the sites link change the language in this way
http: // localhost / en
http: // localhost / ru
And so on
But osclass Different I couldn't access the language change code

I try
<a href="<? php echo osc_base_url (); ?>&lang=en_US"></a>
<a href="<? php echo osc_base_url (); ?>&lang=ru_RU"></a>

Unfortunately, it is unsuccessful

How to get the language link
       
 this works
 <a href="<?php echo osc_item_url_ns(osc_item_id());?>&lang=en_US"></a>
 <a href="<?php echo osc_item_url_ns(osc_item_id());?>&lang=ru_RU"></a>

Because the code is only on the product item

On the home page does not work
<a herf="<? php echo osc_base_url (); ?>&lang=en_US"></a>
<a herf="<? php echo osc_base_url (); ?>&lang=ru_RU"></a>

Thank you

*

MB Themes

Re: Language change code
« Reply #1 on: March 31, 2021, 12:41:47 PM »
@7ala
Osclass does not support language code in URL, except static pages I think
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

7ala

  • ****
  • 144 posts
Re: Language change code
« Reply #2 on: March 31, 2021, 01:09:10 PM »
This works if I add it ?

&lang=ru_RU"

?&lang=ru_RU"

<a herf="<? php echo osc_base_url (); ?>?&lang=ru_RU"></a>

But the problem is that the site appears half translator and the other half not

I don't know what the problem is

*

MB Themes

Re: Language change code
« Reply #3 on: March 31, 2021, 01:47:29 PM »
I do not think it will work
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots