Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Support / AdsManager Support / Not translating field values in list grid

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

Not translating field values in list grid

More
11 years 7 months ago #10430 by tillhunter
Not translating field values in list grid was created by tillhunter
Hello
I edit list files grid style make description code like that
<div class="desc">
						<div class="desc1">
							<?php 
								$content->ad_price = str_replace ('<br />'," ",$content->ad_price);
								$af_text = JString::substr($content->ad_price, 0, 85);
								echo $af_text;
							?>
							<?php echo JText::_('&#36'); ?>
						</div>
						</br>
						<div class="desc2">
						<?php echo JText::_('AD_YEAR'); ?>
						<?php 
							$content->ad_adyear = str_replace ('<br />',"",$content-> ad_adyear);
							$af_text = JString::substr($content->ad_adyear, 0, 85);
							echo $af_text;
						?>
						</div>
						<div class="desc3">
							<?php echo JText::_('AD_FUEL'); ?>
							<?php 
								$content->ad_adfuel = str_replace ('<br />'," ",$content->ad_adfuel);
								$af_text = JString::substr($content->ad_adfuel, 0, 85);
								echo $af_text;
							?>
						</div>
 
            </div>
And i get view like in attached file.

Problem is that values of fields not translating. You can see it on photo. What i must do?
Best regards
Attachments:
The following user(s) said Thank You: adarr
More
11 years 7 months ago #10437 by loic
Hello,

You could try to add the translate function in the code like this:
$content->ad_adyear = str_replace ('<br />',"",JText::_($content-> ad_adyear));
$af_text = JString::substr($content->ad_adyear, 0, 85);
echo $af_text;

Best regards.
The following user(s) said Thank You: adarr
More
11 years 7 months ago #10447 by tillhunter
Replied by tillhunter on topic Not translating field values in list grid
Thank you very much
The following user(s) said Thank You: adarr
More
11 years 7 months ago #10464 by tompap
Replied by tompap on topic Not translating field values in list grid
You're welcome
The following user(s) said Thank You: adarr
Time to create page: 0.083 seconds
Powered by Kunena Forum