translate.php
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!
Can you tell us how to activate this feature please. I can't see a toggle in config.php
Best wishes
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.
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ür Ihre Preissuche nach";
$translate["product not found"] = "Produkt nicht gefunden";
$translate["Product Rating"] = "Produktbewertung";
$translate["Product reviews for"] = "Produktberichte für";
$translate["Product search results for"] = "Ergebnisse fü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ö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ü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 überprüft. Danke fü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ür Ihren Beitrag.";
function translate($text)
{
global $translate;
return (isset($translate[$text])?$translate[$text]:$text);
}
?>
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);
}
?>
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égorie";
$translate["category"] = "catégorie";
$translate["Comments"] = "Commentaires";
$translate["Compare Prices"] = "Comparer les prix";
$translate["Featured Products"] = "Produits à la une";
$translate["from"] = "sur";
$translate["go to"] = "aller sur";
$translate["High to Low"] = "Dé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écédent";
$translate["Price"] = "Prix";
$translate["Price search results for"] = "Résultats de la recherche pour le prix";
$translate["product not found"] = "pas de résulat pour le produit";
$translate["Product Rating"] = "Evaluation du produit";
$translate["Product reviews for"] = "Avis sur le produit";
$translate["Product search results for"] = "Ré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ésultats de";
$translate["Stockist"] = "Marchands";
$translate["Submit"] = "Envoyer";
$translate["This reviewer did not leave any comments"] = "";
$translate["to"] = "à";
$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îtra après avoir été apprové. Merci pour votre contribution.";
function translate($text)
{
global $translate;
return (isset($translate[$text])?$translate[$text]:$text);
}
?>
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);
}
?>
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!