Support forum login

©2006-2012 IAAI Software

Contact Us Privacy Policy

translate.php

Submitted by marcelo on Sun, 2006-04-23 18:17.

Hello David,
I does not understand translate.php.
Do I have to do thereby I English words in German language to what receive?
Thanks for your support!
Marcelo

Ps. Translation with Google - SORRY!

Submitted by support on Sun, 2006-04-23 18:59.

Hi Marcelo,

In translate.php, you need to create an array entry for each English text that is in the script, with the value being the translation in your language.

I have used a simple word translator to try and create a German translation for you! It might not be very good so you will probably need some changes!

Save this as includes/translate.php:

<?php
  $translate
["Best Price"] = "Bester Preis";
  
$translate["brand"] = "marke";
  
$translate["Brand"] = "Marke";
  
$translate["Catalogue Product Name"] = "Katalog Produkt Name";
  
$translate["Category"] = "Kategorie";
  
$translate["category"] = "kategorie";
  
$translate["Comments"] = "Anmerkungen";
  
$translate["Compare Prices"] = "Vergleichen Sie Preise";
  
$translate["Featured Products"] = "Gekennzeichnete Produkte";
  
$translate["from"] = "Von";
  
$translate["go to"] = "gehen Sie zu";
  
$translate["High to Low"] = "Hohe zum Tief";
  
$translate["Home"] = "Haupt";
  
$translate["Low to High"] = "Tief zur Hohe";
  
$translate["Merchant"] = "Kaufmann";
  
$translate["merchant"] = "kaufmann";
  
$translate["More Information"] = "Mehr Informationen";
  
$translate["Next"] = "Zunachst";
  
$translate["no results found"] = "keine resultate fanden";
  
$translate["of"] = "von";
  
$translate["Order by"] = "Auftrag vorbei";
  
$translate["Previous"] = "Vorhergehend";
  
$translate["Price"] = "Preis";
  
$translate["Price search results for"] = "Preissuchresultate fur";
  
$translate["product not found"] = "Produkt nicht gefunden";
  
$translate["Product Rating"] = "Produktbewertung";
  
$translate["Product reviews for"] = "Produktberichte fur";
  
$translate["Product search results for"] = "Produktsuchresultate fur";
  
$translate["Rating"] = "Bewertung";
  
$translate["Relevance"] = "Bedeutung";
  
$translate["Review This Product"] = "Wiederholen Sie Dieses Produkt";
  
$translate["Reviews"] = "Berichte";
  
$translate["Search"] = "Suche";
  
$translate["Search or browse by"] = "Suchen Sie oder grasen Sie vorbei";
  
$translate["Show All Prices"] = "Zeigen Sie Alle Preise";
  
$translate["showing"] = "vertretung";
  
$translate["Stockist"] = "Geschaft";
  
$translate["Submit"] = "Submit";
  
$translate["This reviewer did not leave any comments."] = "Dieser Rezensent lies keine Anmerkungen.";
  
$translate["to"] = "zu";
  
$translate["Visit Store"] = "Besuch Geschaft";
  
$translate["Your Comments (optional)"] = "Ihre Anmerkungen (Wahlweise freigestellt)";
  
$translate["Your Rating"] = "Ihre Bewertung";
  
$translate["Your review is pending approval. Thank you for your contribution."] = "Ihr Bericht ist schwebende Zustimmung. Danke fur Ihren Beitrag.";
  
$translate["Your review will appear on the website after it has been approved.  Thank you for your contribution."] = "Ihr Bericht erscheint auf der Web site, nachdem er genehmigt worden ist. Danke für Ihren Beitrag.";
  function 
translate($text)
  {
    global 
$translate;
    return (isset(
$translate[$text])?$translate[$text]:$text);
  }
?>

Hope this helps!

Submitted by marcelo on Sun, 2006-04-23 19:07.

Many Thanks, is perfect!
Marcelo

Submitted by Mark on Sun, 2008-12-14 19:52.

Can you tell us how to activate this feature please. I can't see a toggle in config.php

Best wishes

Submitted by support on Mon, 2008-12-15 03:07.

Hi Mark,

You don't need to turn anything on to use the translations above, just paste the code into (replacing all the existing code) in includes/translate.php and the translations will take effect.

Cheers,
David.

Submitted by huewmed on Mon, 2009-11-09 17:50.

Hi David,

Thought I post a correction of the German translation here, that I made:

includes/translate.php

<?php
  $translate
["More Information"] = "mehr Informationen";
  
$translate["Order by"] = "Sortieren nach";
  
$translate["Relevance"] = "Relevanz";
  
$translate["Best Price"] = "Bester Preis";
  
$translate["brand"] = "Hersteller";
  
$translate["Brand"] = "Hersteller";
  
$translate["Catalogue Product Name"] = "Artikelname";
  
$translate["Category"] = "Kategorie";
  
$translate["category"] = "Kategorie";
  
$translate["Comments"] = "Kommentare";
  
$translate["Compare Prices"] = "Vergleichen Sie Preise";
  
$translate["Featured Products"] = "Hervorgehobene Produkte";
  
$translate["from"] = "bei";
  
$translate["go to"] = "gehen Sie zu";
  
$translate["High to Low"] = "absteigend";
  
$translate["Home"] = "Startseite";
  
$translate["Low to High"] = "aufsteigend";
  
$translate["Merchant"] = "Shop";
  
$translate["merchant"] = "Shop";
  
$translate["Next"] = "weiter";
  
$translate["no results found"] = "keine Ergebnisse gefunden";
  
$translate["of"] = "von";
  
$translate["Previous"] = "Vorherige";
  
$translate["Price"] = "Preis";
  
$translate["Price search results for"] = "Ergebnisse f&uuml;r Ihre Preissuche nach";
  
$translate["product not found"] = "Produkt nicht gefunden";
  
$translate["Product Rating"] = "Produktbewertung";
  
$translate["Product reviews for"] = "Produktberichte f&uuml;r";
  
$translate["Product search results for"] = "Ergebnisse f&uuml;r Ihre Produktsuche nach";
  
$translate["Rating"] = "Bewertung";
  
$translate["Review This Product"] = "Berichten Sie &uuber; das Produkt";
  
$translate["Reviews"] = "Berichte";
  
$translate["Search"] = "Suche";
  
$translate["Search or browse by"] = "Suchen oder st&ouml;bern Sie nach";
  
$translate["Show All Prices"] = "Alle Preise anzeigen";
  
$translate["showing"] = "Suchergebnisse von";
  
$translate["Stockist"] = "Shop";
  
$translate["Submit"] = "Senden";
  
$translate["This reviewer did not leave any comments."] = "Kein Kommentar verf&uuml;gbar";
  
$translate["to"] = "bis";
  
$translate["or"] = "oder";
  
$translate["Visit Store"] = "Shop besuchen";
  
$translate["Your Comments (optional)"] = "Ihre Kommentare (optional)";
  
$translate["Your Rating"] = "Ihre Bewertung";
  
$translate["Your review is pending approval. Thank you for your contribution."] = "Ihr Bericht wird &uuml;berpr&uuml;ft. Danke f&uuml;r Ihren Beitrag.";
  
$translate["Your review will appear on the website after it has been approved.  Thank you for your contribution."] = "Ihr Bericht wird auf der Webseite erscheinen, nachdem er genehmigt wurde. Danke f&uuml;r Ihren Beitrag.";
  function 
translate($text)
  {
    global 
$translate;
    return (isset(
$translate[$text])?$translate[$text]:$text);
  }
?>

Submitted by support on Mon, 2009-11-09 23:23.

Thank you!

Cheers,
David.

Submitted by Misalf on Tue, 2010-07-27 11:39.

Here it is translate.php for Spanish translation:

includes/translate.php

<?php
  $translate
["Best Price"] = "Mejor Precio";
  
$translate["brand"] = "marca";
  
$translate["Brand"] = "Marca";
  
$translate["Catalogue Product Name"] = "Nombre del Producto";
  
$translate["Category"] = "Categoría";
  
$translate["category"] = "categoría";
  
$translate["Comments"] = "Comentarios";
  
$translate["Compare Prices"] = "Compara Precios";
  
$translate["Featured Products"] = "Productos Destacados";
  
$translate["from"] = "en";
  
$translate["go to"] = "ir a";
  
$translate["High to Low"] = "Descendente";
  
$translate["Home"] = "Inicio";
  
$translate["Low to High"] = "Ascendente";
  
$translate["Merchant"] = "Tienda";
  
$translate["merchant"] = "tienda";
  
$translate["More Information"] = "Más info";
  
$translate["Next"] = "Siguiente";
  
$translate["no results found"] = "la búsqueda no obtuvo ningún resultado";
  
$translate["of"] = "de";
  
$translate["Order by"] = "Ordenar por";
  
$translate["Previous"] = "Anterior";
  
$translate["Price"] = "Precio";
  
$translate["Price search results for"] = "Resultados de búsqueda por precios de";
  
$translate["product not found"] = "producto no encontrado";
  
$translate["Product Rating"] = "Valoración";
  
$translate["Product reviews for"] = "Opiniones de";
  
$translate["Product search results for"] = "Resultados de búsqueda por";
  
$translate["Rating"] = "Valoración";
  
$translate["Related Products"] = "Productos similares";
  
$translate["Relevance"] = "Relevancia";
  
$translate["Review This Product"] = "Escribe tu opinión";
  
$translate["Reviews"] = "Opiniones";
  
$translate["Search"] = "Buscar";
  
$translate["Search or browse by"] = "Buscar o seleccionar";
  
$translate["Show All Prices"] = "Ver todos los precios";
  
$translate["showing"] = "mostrando";
  
$translate["Stockist"] = "Disponible en";
  
$translate["Submit"] = "Enviar";
  
$translate["This reviewer did not leave any comments."] = "El usuario no ha dejado ningúna opinión.";
  
$translate["to"] = "a";
  
$translate["Visit Store"] = "Ir a Tienda";
  
$translate["Your Comments (optional)"] = "Tu Comentario (opcional)";
  
$translate["Your Rating"] = "Tu Valoración";
  
$translate["Your review is pending approval. Thank you for your contribution."] = "La opinión está pendiente de revisión. Gracias por tu aportación.";
  
$translate["Your review will appear on the website after it has been approved.  Thank you for your contribution."] = "Tu opinión será publicada después de su aprobación. Gracias por la aportación.";
  function 
translate($text)
  {
    global 
$translate;
    return (isset(
$translate[$text])?$translate[$text]:$text);
  }
?>

Submitted by support on Tue, 2010-07-27 11:42.

Thank you Misalf!

Cheers,
David.

Submitted by popsantiago on Wed, 2010-12-15 21:11.

French translation :

includes/translate.php

<?php
  $translate
["Best Price"] = "Meilleur prix";
  
$translate["Brand"] = "Marque";
  
$translate["brand"] = "marque";
  
$translate["Catalogue Product Name"] = "Nom du produit";
  
$translate["Category"] = "Cat&eacute;gorie";
  
$translate["category"] = "cat&eacute;gorie";
  
$translate["Comments"] = "Commentaires";
  
$translate["Compare Prices"] = "Comparer les prix";
  
$translate["Featured Products"] = "Produits &agrave; la une";
  
$translate["from"] = "sur";
  
$translate["go to"] = "aller sur";
  
$translate["High to Low"] = "D&eacute;croissant";
  
$translate["Home"] = "Accueil";
  
$translate["Low to High"] = "Croissant";
  
$translate["Merchant"] = "Marchand";
  
$translate["merchant"] = "marchand";
  
$translate["More Information"] = "En savoir plus";
  
$translate["Next"] = "Suivant";
  
$translate["no results found"] = "pas de résultat";
  
$translate["of"] = "sur";
  
$translate["Order by"] = "Trier par";
  
$translate["Previous"] = "Pr&eacute;c&eacute;dent";
  
$translate["Price"] = "Prix";
  
$translate["Price search results for"] = "R&eacute;sultats de la recherche pour le prix";
  
$translate["product not found"] = "pas de r&eacute;sulat pour le produit";
  
$translate["Product Rating"] = "Evaluation du produit";
  
$translate["Product reviews for"] = "Avis sur le produit";
  
$translate["Product search results for"] = "R&eacute;sultats de la recherche pour le produit";
  
$translate["Rating"] = "Notes";
  
$translate["Related Products"] = "Produits similaires";
  
$translate["Relevance"] = "Pertinence";
  
$translate["Review This Product"] = "Donner un avis sur le produit";
  
$translate["Reviews"] = "Avis";
  
$translate["Search"] = "Rechercher";
  
$translate["Search or browse by"] = "Rechercher ou organiser par";
  
$translate["Show All Prices"] = "Voir tous les prix";
  
$translate["showing"] = "r&eacute;sultats de";
  
$translate["Stockist"] = "Marchands";
  
$translate["Submit"] = "Envoyer";
  
$translate["This reviewer did not leave any comments"] = "";
  
$translate["to"] = "&agrave;";
  
$translate["Visit Store"] = "Visiter le magasin";
  
$translate["Your Comments (optional)"] = "Votre commentaire (facultatif)";
  
$translate["Your Rating"] = "Votre note";
  
$translate["Your review is pending approval. Thank you for your contribution."] = "Votre avis est en attente d'approbation. Merci pour votre contribution.";
  
$translate["Your review will appear on the website after it has been approved. Thank you for your contribution."] = "Votre avis appara&icirc;tra apr&egrave;s avoir &eacute;t&eacute; approv&eacute;. Merci pour votre contribution.";
  function 
translate($text)
  {
    global 
$translate;
    return (isset(
$translate[$text])?$translate[$text]:$text);
  }
?>

Submitted by support on Thu, 2010-12-16 08:49.

Thanks, popsantiago!

Cheers,
David.
--
PriceTapestry.com

Submitted by quokka on Sun, 2011-09-18 20:43.

Hi..
For anyone interested.. Here is a Dutch translation...
Have fun :)
Bas

<?php
  $translate
["Best Price"] = "Beste prijs";
  $translate["brand"] = "merk";
  $translate["Brand"] = "Merk";
  $translate["Catalogue Product Name"] = "Productnaam";
  $translate["Category"] = "Rubriek";
  $translate["category"] = "rubriek";
  $translate["Comments"] = "Reviews";
  $translate["Compare Prices"] = "Vergelijk prijzen";
  $translate["Featured Products"] = "Aanbevolen producten";
  $translate["from"] = "van";
  $translate["go to"] = "tot";
  $translate["High to Low"] = "Aflopend";
  $translate["Home"] = "Home";
  $translate["Low to High"] = "Aflopend";
  $translate["Merchant"] = "Winkel";
  $translate["merchant"] = "winkel";
  $translate["More Information"] = "Meer info";
  $translate["Next"] = "Volgende";
  $translate["no results found"] = "Helaas, geen resultaten gevonden.";
  $translate["of"] = "van";
  $translate["Order by"] = "Sorteer op";
  $translate["Previous"] = "Vorige";
  $translate["Price"] = "Prijs";
    $translate["Price search results for"] = "Prijsvergelijk resultaten";
  $translate["product not found"] = "product niet gevonden";
  $translate["Product Rating"] = "Waardering";
  $translate["Product reviews for"] = "Review(s) van";
  $translate["Product search results for"] = "Zoekresultaten vooe";
  $translate["Rating"] = "Waardering";
  $translate["Related Products"] = "Vergelijkbare producten";
  $translate["Relevance"] = "Relevantie";
  $translate["Review This Product"] = "Schrijf een review";
  $translate["Reviews"] = "Reviews";
  $translate["Search"] = "Zoek";
  $translate["Search or browse by"] = "Zoek naar, of blader in";
  $translate["Show All Prices"] = "Toon alle prijzen";
  $translate["showing"] = "getoond wordt";
  $translate["Stockist"] = "Voorraad";
  $translate["Submit"] = "Verzend";
  $translate["This reviewer did not leave any comments."] = "Bij deze review is geen tekst geplaatst.";
  $translate["to"] = "aan";
  $translate["Visit Store"] = "Bezoek winkel";
  $translate["Your Comments (optional)"] = "Uw opmerkingen (optioneel)";
  $translate["Your Rating"] = "Uw waardering";
  $translate["Your review is pending approval. Thank you for your contribution."] = "Bedankt, uw review is ter beoordeling voorgelegd aan de redactie.";
  $translate["Your review will appear on the website after it has been approved.  Thank you for your contribution."] = "Na goedkeuring zal uw review op onze website geplaatst worden.";
  function translate($text)
  {
    global $translate;
    return (isset($translate[$text])?$translate[$text]:$text);
  }
?>

Submitted by support on Mon, 2011-09-19 07:53.

Thanks, Bas!

Cheers,
David.
--
PriceTapestry.com