Logo description multilingue

More
8 years 6 months ago #37704 by fredjouan
Salut Cédric,
Sur un site multilingue, pour traduire le logo description, j'ai indiqué dans le libellé de la description (extensions-template-template1) : LOGO_DESC_OVERRIDE
Dans Langues-substitution-nouveau, j'ai indiqué sur chaque langue la cellule à traduire.
Sur le forum, lomart, qui ne connait pas templatecreator me conseille de remplacer le fichier index.php :
Code:
$desclogo = $this->params->get('tpl-desc-logo', '');
Remplacé par :
Code:
$desclogo = JText::_($this->params->get('tpl-desc-logo', ''));
Tu valides ?
Merci d'avance
Fred

Please Log in or Create an account to join the conversation.

More
8 years 6 months ago #37707 by ced1870
salut
oui je valide :) ça devrait marcher
CEd

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
8 years 6 months ago #37752 by fredjouan
La ligne trouvée dans index.php est libellée ainsi :
Code:
<?php if ($this->params->get('bannerlogo_logodescription')) { ?>
Avec cette syntaxe comment place-t-on JText::_ ?
Je viens d'essayer (vraiment une truffe en php !) :
Code:
<?php if JText::_($this->params->get('bannerlogo_logodescription')) { ?>
C'est pas bon...
Fred

Please Log in or Create an account to join the conversation.

More
8 years 6 months ago #37753 by ced1870
essaie ça
Code:
<?php if ($this->params->get('bannerlogo_logodescription')) { ?> <div class="bannerlogodesc"> <div class="inner clearfix"><?php echo htmlspecialchars(JText::_($this->params->get('bannerlogo_logodescription')));?></div> </div> <?php } ?>

Joomlack Webmaster and Developer
The following user(s) said Thank You: fredjouan

Please Log in or Create an account to join the conversation.

More
8 years 6 months ago #37760 by fredjouan
Super, le problème est résolu.
Merci de ton aide.
Fred

Please Log in or Create an account to join the conversation.

Time to create page: 0.202 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 3267 guests and one member online