JoomDev: (SOLVED) Translate "Read More" (1/1)
Welcome, Guest
Username: Password: Remember me

TOPIC: (SOLVED) Translate "Read More"

Translate "Read More" 2 weeks 4 days ago #5207

  • egrueda
  • egrueda's Avatar
  • Offline
  • New Member
  • Posts: 5
  • Thank you received: 1
  • Karma: 0
Using SP Page Builder in frontpage to show "Latest blog posts" as shown in demo and quickstart.
I've installed my spanish translation, but I can't get that string translated.
When I try to debug joomla translation, I doesn't seem to be a translation string.
How can I make it to translate that?
Attachments:
The topic has been locked.

Translate "Read More" 2 weeks 4 days ago #5208

  • egrueda
  • egrueda's Avatar
  • Offline
  • New Member
  • Posts: 5
  • Thank you received: 1
  • Karma: 0
More information:

The string comes from templates/jd_dallas/sppagebuilder/addons/articles/site.php
if($show_readmore) {
    $output .= '<a class="sppb-readmore" href="'. $item->link .'" itemprop="url">'. $readmore_text .'</a>';
}

But don't know where should I fix that "$readmore_text" string
The topic has been locked.

Translate "Read More" 2 weeks 3 days ago #5209

  • chandandeep
  • chandandeep's Avatar
  • Offline
  • Administrator
  • Posts: 1535
  • Thank you received: 265
  • Karma: 42
Hi,

No need to install translate the "Read more". You can easily change the text In the Articles Add-ons. See the screenshot.

Screenshot: www.screencast.com/t/ZklXbsQGzb0r

Thanks,
Chandan
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The topic has been locked.
The following user(s) said Thank You: egrueda

Translate "Read More" 2 weeks 3 days ago #5210

  • egrueda
  • egrueda's Avatar
  • Offline
  • New Member
  • Posts: 5
  • Thank you received: 1
  • Karma: 0
Thanks, Chandandeep, didn't see that opion
But for a multilingual site, that's a problem, as I must enter a fixed language string :-/
Any clues how to make it multilingual?
The topic has been locked.

Translate "Read More" 2 weeks 3 days ago #5211

  • chandandeep
  • chandandeep's Avatar
  • Offline
  • Administrator
  • Posts: 1535
  • Thank you received: 265
  • Karma: 42
Please see the video.
www.screencast.com/t/qo8gEhUR
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The topic has been locked.
The following user(s) said Thank You: egrueda

Translate "Read More" 2 weeks 3 days ago #5212

  • egrueda
  • egrueda's Avatar
  • Offline
  • New Member
  • Posts: 5
  • Thank you received: 1
  • Karma: 0
Thanks, Chandandeep, I know I can change that string.
But my site is in two languages, spanish and english, so a fixed string breaks one of the two langugages :-(
I know this is an issue with ja builder, but maybe you know any trick to show that string in both languages.
Thanks again
The topic has been locked.

Translate "Read More" 2 weeks 3 days ago #5213

  • chandandeep
  • chandandeep's Avatar
  • Offline
  • Administrator
  • Posts: 1535
  • Thank you received: 265
  • Karma: 42
No problem.

Find this code
$output .= '<a class="sppb-readmore" href="'. $item->link .'" itemprop="url">'. $readmore_text .'</a>';
And replace with it.
$output .= '<a class="sppb-readmore" href="'. $item->link .'" itemprop="url">'. $JText::_('COM_SPPB_READMORE') .'</a>';

For English language
COM_SPPB_READMORE="Read More"

For Other language
COM_SPPB_READMORE="YOUR TEXT"

Thanks,
Chandan
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The topic has been locked.
The following user(s) said Thank You: egrueda

Translate "Read More" 2 weeks 3 days ago #5214

  • egrueda
  • egrueda's Avatar
  • Offline
  • New Member
  • Posts: 5
  • Thank you received: 1
  • Karma: 0
Great anwer! Perfect solution! :) :cheer:
The topic has been locked.
The following user(s) said Thank You: chandandeep

Translate "Read More" 2 weeks 3 days ago #5215

  • chandandeep
  • chandandeep's Avatar
  • Offline
  • Administrator
  • Posts: 1535
  • Thank you received: 265
  • Karma: 42
Great!

Let us know if you have any question for me.

If you like our support and products, tweet us at @JoomDev and let the world know about it.

Thanks,
Chandan
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The topic has been locked.
Time to create page: 0.334 seconds