2017-08-07 1 views
1

J'ai un module dans mon site joomla qui montre une table avec un élément, je veux localiser ce module pour la langue anglaise avec joomla jtext helper; le code par défaut est:en utilisant jtext en php avec la table

<table dir="rtl" id="gold-table" class="table table-hover table-responsive" style="margin-bottom: 0"><thead><tr><?php 



if($title == 'true' ){echo '<th data-field="forks_count" data-sortable="true">'. 'عنوان محصول'.'</th>' ;} 

if($code == 'true') {echo '<th>'. 'کد محصول'.'</th>' ;} 

if($cat == 'true') {echo '<th>'. 'مجموعه محصول'.'</th>' ;} 

if($grade == 'true') {echo '<th>'. 'گرید محصول'.'</th>' ;} 

if($unit == 'true') {echo '<th>'. 'واحد قیمت گذاری'.'</th>' ;} 

if($packing == 'true') {echo '<th>'. 'بسته بندی محصول'.'</th>' ;} 

if($ryal == 'true') {echo '<th>'. 'قیمت ریالی'.'</th>' ;} 

if($dollar == 'true') {echo '<th>'. 'قیمت دلاری'.'</th>' ;} 

if($pdate == 'true') {echo '<th>'. 'تاریخ'.'</th>' ;} ?> 

j'ai essayé de changer les mots persans à JText pour l'utilisation de dispositif de priorité pour le rendre multilingue avec le code suivant, mais je suis erreur

<table dir="rtl" id="gold-table" class="table table-hover table-responsive" style="margin-bottom: 0"><thead><tr><?php 



if($title == 'true' ){echo '<th data-field="forks_count" data-sortable="true">'. 'JText::_('COM_PROD_TITLE');'.'</th>' ;} 

if($code == 'true') {echo '<th>'. 'JText::_('COM_PROD_SKU');'.'</th>' ;} 

if($cat == 'true') {echo '<th>'. 'JText::_('COM_PROD_CAT');'.'</th>' ;} 

if($grade == 'true') {echo '<th>'. 'JText::_('COM_PROD_GRADE');'.'</th>' ;} 

if($unit == 'true') {echo '<th>'. 'JText::_('COM_PROD_UNIT');'.'</th>' ;} 

if($packing == 'true') {echo '<th>'. 'JText::_('COM_PROD_PAKING');'.'</th>' ;} 

if($ryal == 'true') {echo '<th>'. 'JText::_('COM_PROD_IRR');'.'</th>' ;} 

if($dollar == 'true') {echo '<th>'. 'JText::_('COM_PROD_DLR');'.'</th>' ;} 

if($pdate == 'true') {echo '<th>'. 'JText::_('COM_PROD_DATE');'.'</th>' ;} ?> 

Merci pour votre attentoin.

Répondre

0

Je pense que vous ne délimitent JText:

<table dir="rtl" id="gold-table" class="table table-hover table-responsive" style="margin-bottom: 0"><thead><tr><?php 

if($title == 'true' ){echo '<th data-field="forks_count" data-sortable="true">'. JText::_('COM_PROD_TITLE').'</th>' ;} 

if($code == 'true') {echo '<th>'. JText::_('COM_PROD_SKU').'</th>' ;} 

if($cat == 'true') {echo '<th>'. JText::_('COM_PROD_CAT').'</th>' ;} 

if($grade == 'true') {echo '<th>'. JText::_('COM_PROD_GRADE').'</th>' ;} 

if($unit == 'true') {echo '<th>'. JText::_('COM_PROD_UNIT').'</th>' ;} 

if($packing == 'true') {echo '<th>'. JText::_('COM_PROD_PAKING').'</th>' ;} 

if($ryal == 'true') {echo '<th>'. JText::_('COM_PROD_IRR').'</th>' ;} 

if($dollar == 'true') {echo '<th>'. JText::_('COM_PROD_DLR').'</th>' ;} 

if($pdate == 'true') {echo '<th>'. JText::_('COM_PROD_DATE').'</th>' ;} ?> 
+0

Merci, votre aide est très utile –

+0

Vous êtes les bienvenus! S'il vous plaît si la réponse est correcte acceptez-le – Rinos

+0

Bien sûr, merci beaucoup –