saynijb Posted April 21, 2014 Share Posted April 21, 2014 Bonjour, je n'arrive pas à trouver le mot "reviews" dans les traductions.ce mot apparaît lors du rollover dans le listing produit.Voici un exemple en image. Merci pour votre aide. Link to comment Share on other sites More sharing options...
icstra Posted April 21, 2014 Share Posted April 21, 2014 (edited) Bonjour, essayez de récupérer le dossier translations du module Productcomments dans modules et le copier dans productcomments du thème Edited April 21, 2014 by icstra (see edit history) Link to comment Share on other sites More sharing options...
loulou66 Posted April 21, 2014 Share Posted April 21, 2014 (edited) Coucou Oui ya un pti prob de traduction mais aussi de declaration dans le tpl edites le fichier themes/default-bootstrap/modules/productcomments/productcomments_reviews.tpl remplacer <span>{l s='%s Review(s)'|sprintf:$averageTotal mod='productcomments'} </span> par {if $nbComments > 1} <span class="nb-comments">{$nbComments} {l s='Reviews' mod='productcomments'}</span> {else} <span class="nb-comments">{$nbComments} {l s='Review' mod='productcomments'}</span> {/if} puis aller dans la traduction du module via la page config du module et traduire review = commentaire et reviews = commentaires vider le cache smarty et navigateur Ps pour les traduction il faut aller dans BO=>localisation=>traduction puis choisir traduction des modules installés @++ Loulou66 Edited April 21, 2014 by loulou66 (see edit history) 1 Link to comment Share on other sites More sharing options...
myselfidem Posted April 22, 2014 Share Posted April 22, 2014 (edited) Merci beaucoup pour l'astuce loulou66. Cela fonctionne très bien ! J'ai pour ma part supprimé les   et laissé un espace ! Et l'espace est respecté. Edited April 22, 2014 by myselfidem (see edit history) Link to comment Share on other sites More sharing options...
saynijb Posted April 27, 2014 Author Share Posted April 27, 2014 Coucou Oui ya un pti prob de traduction mais aussi de declaration dans le tpl edites le fichier themes/default-bootstrap/modules/productcomments/productcomments_reviews.tpl remplacer <span>{l s='%s Review(s)'|sprintf:$averageTotal mod='productcomments'} </span> par {if $nbComments > 1} <span class="nb-comments">{$nbComments} {l s='Reviews' mod='productcomments'}</span> {else} <span class="nb-comments">{$nbComments} {l s='Review' mod='productcomments'}</span> {/if} puis aller dans la traduction du module via la page config du module et traduire review = commentaire et reviews = commentaires vider le cache smarty et navigateur Ps pour les traduction il faut aller dans BO=>localisation=>traduction puis choisir traduction des modules installés @++ Loulou66 Merci pour cette réponse, j'ai fait cela, Lorsque j'ai 1 review celà note review lorsque j'en ai plusieurs, ça note bien reviews au pluriel. Parcontre celà n'apparait toujours pas dans BO=>localisation=>traduction Que puise-je faire ? Link to comment Share on other sites More sharing options...
loulou66 Posted April 27, 2014 Share Posted April 27, 2014 Coucou @Sanijb quand tu est dans BO=>localisation=>traduction dans la 1er liste déroulantes tu choisis traduction des modules installés ton thème et la langue dans les listes en dessous puis modifié a droite dans la page qui s'affiche vers le bas de la pages tu devrait trouver DEFAULT-BOOTSTRAP - PRODUCTCOMMENTS_REVIEWS ou tu auras 2 champs à traduire @++ Loulou66 Link to comment Share on other sites More sharing options...
saynijb Posted April 27, 2014 Author Share Posted April 27, 2014 Coucou @Sanijb quand tu est dans BO=>localisation=>traduction dans la 1er liste déroulantes tu choisis traduction des modules installés ton thème et la langue dans les listes en dessous puis modifié a droite dans la page qui s'affiche vers le bas de la pages tu devrait trouver DEFAULT-BOOTSTRAP - PRODUCTCOMMENTS_REVIEWS ou tu auras 2 champs à traduire @++ Loulou66 merci, je l'ai changé en dur dans le code du coup, tant pis pour la trad ... Link to comment Share on other sites More sharing options...
happinesshome Posted May 19, 2014 Share Posted May 19, 2014 bonjour, dans le fichier TPL, moi j'ai : {if isset($nbComments) && $nbComments > 0} <div class="comments_note" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"> <div class="star_content clearfix"> {section name="i" start=0 loop=5 step=1} {if $averageTotal le $smarty.section.i.index} <div class="star"></div> {else} <div class="star star_on"></div> {/if} {/section} <meta itemprop="worstRating" content = "0" /> <meta itemprop="ratingValue" content = "2" /> <meta itemprop="bestRating" content = "5" /> </div> <span class="nb-comments">{l s='%s Review(s)'|sprintf:$nbComments mod='productcomments'}</span> </div> {/if} aucune trace de vos lignes de commande par contre dans la traduction j'ai un petit triangle jaune pour cette traduction ! Link to comment Share on other sites More sharing options...
myselfidem Posted May 19, 2014 Share Posted May 19, 2014 (edited) Dans le fichier productcomments_reviews.tpl de votre dossier themes\votre_dossier\modules\productcomments\ pour PrestaShop 1.6.0.6 Vous pouvez modifier les lignes comme ci-dessous, comme l'a déjà expliqué lolou66 ! : </div> <!--<span class="nb-comments">{l s='%s Review(s)'|sprintf:$nbComments mod='productcomments'}</span>--> {if $nbComments > 1} <span class="nb-comments">{$nbComments} {l s='Reviews' mod='productcomments'}</span> {else} <span class="nb-comments">{$nbComments} {l s='Review' mod='productcomments'}</span> {/if} </div> Edited May 19, 2014 by myselfidem (see edit history) Link to comment Share on other sites More sharing options...
happinesshome Posted May 19, 2014 Share Posted May 19, 2014 oui j'ai bie nlu mais regardez je n'ai pas cette ligne : <span>{l s='%s Review(s)'|sprintf:$averageTotal mod='productcomments'} </span> moi celle qui ressemble c'est ca : <span class="nb-comments">{l s='%s Review(s)'|sprintf:$nbComments mod='productcomments'}</span> mais ca reste différent ! Link to comment Share on other sites More sharing options...
myselfidem Posted May 19, 2014 Share Posted May 19, 2014 Qu'importe ! Copiez les deux lignes suivantes ; ) Link to comment Share on other sites More sharing options...
loulou66 Posted May 19, 2014 Share Posted May 19, 2014 coucou oui c 'est pti bug il faut remplacer comme la dit @myselfidem pour la traduction du mot review sans 'S' quand il n' y a qu'un commentaire et avec un 'S' quand il y en a plusieurs @++ Loulou66 Link to comment Share on other sites More sharing options...
happinesshome Posted May 19, 2014 Share Posted May 19, 2014 Hé bien cela fonctionne ! une toute dernière chose serait 'il possible de centrer le "XXX Commentaires" par exemple ? Link to comment Share on other sites More sharing options...
happinesshome Posted May 19, 2014 Share Posted May 19, 2014 oups non pardon il est bien centré merci à vous !! c chouette ! Link to comment Share on other sites More sharing options...
Stéph59 Posted May 27, 2014 Share Posted May 27, 2014 Bonjour, Merci! Cela fonctionne très bien :-) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now