2017-08-07 6 views
1

私はjoomlaサイトにいくつかの要素を含むテーブルを表示しています。このモジュールをjoomla jtextヘルパーで英語にローカライズしたいと思います。 デフォルトのコードは次のとおりです。テーブルのあるPHPで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">'. 'عنوان محصول'.'</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>' ;} ?> 

私はそれが次のコードを使用した多言語にするためにオーバーライド機能を使用するためのjtextするペルシャ語の単語を変更しようとしましたが、私はあなたのattentoinのエラー

<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

私はあなたが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

ありがとう、どういたしまして –

+0

あなたの助けが非常に便利です!答えが正しい場合はそれを受け入れてください – Rinos

+0

確かに、ありがとうございます –

関連する問題