You are here:  » Translation problem in merchant-, category- and brand results


Translation problem in merchant-, category- and brand results

Submitted by JayJayS on Fri, 2015-06-12 01:29 in

The translation doesn´t work on merchant-, category- and brand result pages in the page title and pt_ba row class element.
Waht´s the problem ?

Submitted by support on Fri, 2015-06-12 07:22

Hello JayJay,

To change the text in the search results title, if you edit search.php and look for the following code around line 308:

  $banner["h2"] = translate("Product search results for")."<strong>".htmlspecialchars($q,ENT_QUOTES,$config_charset)."</strong>&nbsp;";

...and REPLACE with:

  $title_q = str_replace(
    array("merchant",
          "category",
          "brand",
          "voucher"),
    array(translate("merchant"),
          translate("category"),
          translate("brand"),
          translate("voucher"))
          ,$q);
  $banner["h2"] = translate("Product search results for")."<strong>".htmlspecialchars($title_q,ENT_QUOTES,$config_charset)."</strong>&nbsp;";

..and then look for the following code at line 399:

  $header["title"] = $q;

...and REPLACE with:

  $header["title"] = $title_q;

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by JayJayS on Fri, 2015-06-12 08:20

It doesn´t work.
Only the title tag from the startpage works. But isn´t optimal.

Submitted by JayJayS on Fri, 2015-06-12 08:33

One problem was untranslated tags "Brand A-Z", "Merchant A-Z" and "Category A-Z" - resolved !

Submitted by support on Fri, 2015-06-12 09:21

Thanks for the update JayJay - let me know if you're still missing a translation anywhere and I'll check it out further for you...

Cheers,
David.
--
PriceTapestry.com