ldybiec
Forum Replies Created
-
Could you help me with function parse_url because I can’t do it.
I have one more problem, because when I click the button “EN” in url add a new value “?wmc-currency=GBP” but when I click button “PL” currency doesn’t change becuse is added to the previous value, so url always appends add new value to old. How can I change code i weglot.php that i will change language old value currency will delete and will add new value. Can you open page asgym.pl and help me?
Everything of working, thank you so much
Thanks it works, but I have yet problem because when i click button”EN” i would like add on url “& wmc-currency=GBP” and when i click button “PL” will add “wmc-currency=PLN”.
I wrote variable “$value1 = ‘&wmc-currency=GBP’ ;” in weglot.php and I added in code
$list .= '<li class="wg-li ' . $flag_class . $d . '"> <a data-wg-notranslate href="' . $link .$value1 .'">' . ($withname ? ($full ? WGUtils::getLangNameFromCode( $d,false ) : strtoupper( $d )) : '') . '</a></li>';it’s working, but on once side. Can you help me?
- This reply was modified 8 years, 3 months ago by ldybiec.
Exactly I would like have button “PL” on left side and button “EN” on right Side always
- This reply was modified 8 years, 3 months ago by ldybiec.
Could you help me, because i don’t have much skills. I find file weglot.php and i wrote at he end “Weglot::Instance()->getCurrentLang();” but i don’t know where i musy write document.getElementsByTagName(‘html’)[0].getAttribute(‘lang’);
plugin multi currency works local.
- This reply was modified 8 years, 3 months ago by ldybiec.