You are here:  » Ebay Search results translation


Ebay Search results translation

Submitted by IG on Wed, 2018-11-21 19:46 in

Dear David

The search results of the ebay tab show something like this:

Seller location: Großbritannien Shipping to: Worldwide
Listed in: Mobile & Smart Phones

Can any of this information be translated? How?

Kind regards,
IG

Submitted by support on Thu, 2018-11-22 08:17

Hi,

Sure - to integrate with includes/translate.php translation; if you edit html/searchresults_ebay.php and look for the following code at line 62:

      $description .= "Seller location: <strong>".$item["LOCATION"]."</strong>";

...and REPLACE with:

      $description .= translate("Seller location").": <strong>".$item["LOCATION"]."</strong>";

And then the following code at line 66:

        $description .= " Shipping to: <strong>".$item["SHIPPINGINFO/SHIPTOLOCATIONS"]."</strong>";

...and REPLACE with:

        $description .= " ".translate("Shipping to").": <strong>".$item["SHIPPINGINFO/SHIPTOLOCATIONS"]."</strong>";

And then the following code at line 74:

      $description .= "Bids: <strong>".$item["SELLINGSTATUS/BIDCOUNT"]."</strong> ".ebayTimeLeft($item["SELLINGSTATUS/TIMELEFT"]);

...and REPLACE with:

      $description .= translate("Bids").": <strong>".$item["SELLINGSTATUS/BIDCOUNT"]."</strong> ".ebayTimeLeft($item["SELLINGSTATUS/TIMELEFT"]);

And finally the following code at line 81:

      $description .= "Listed in: <strong>".$item["PRIMARYCATEGORY/CATEGORYNAME"]."</strong>";

...and REPLACE with:

      $description .= translate("Listed in").": <strong>".$item["PRIMARYCATEGORY/CATEGORYNAME"]."</strong>";

Then add the required translations to includes/translate.php as normal e.g.

  $translate["Seller location"] = "[translatiom here]";
  $translate["Shipping to"] = "[translatiom here]";
  $translate["Bids"] = "[translatiom here]";
  $translate["Listed in"] = "[translatiom here]";
  $translate["Time remaining"] = "[translatiom here]";

("Time remaining" is already hooked into the translate() function)

Cheers,
David.
--
PriceTapestry.com