CRAZY Halloween Deal: 45% OFF for All Products & Subscriptions
Your Cart is currently empty!
Product update
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum

We are here to serve :)

Our support team is currently online to solve your issues.

Our support team is currently offline

Our support heroes might not be around this hour. Please expect some delays.

Our support is available from

Monday - Friday 8am - 5:30pm GMT+7

Your time: 00:00:00
Our time: 00:00:00

Welcome, Guest

Translation of SJ Responsive Content for K2
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Translation of SJ Responsive Content for K2

Translation of SJ Responsive Content for K2 4 years, 10 months ago #21972


I've just intalled SJ Responsive Content for K2 on my site and I like it very much. Unfortunatelly, I have some trouble with translating "Load More" button to Polish. So here's what I did:

1. I copied this file:




(I plan to make my site multilingual soon, that's why I didn't edit the original en-GB.mod_sj_k2_responsive_content.ini file.)

2. I edited pl-PL.mod_sj_k2_responsive_content.ini file:

(line 135) LOAD_MORE_LABEL="Load More "


LOAD_MORE_LABEL="Pokaż więcej "

It didn't work.

3. Then I found this "Load more" text in file modules/mod_sj_k2_responsive_content/tmpl/default.php

(line 75) $('.loader-label','#resp_content_button_<?php echo $module->id; ?>').html('Load More');
(line 243) <span class="loader-label" >Load More</span>

And I changed it to:

$('.loader-label','#resp_content_button_<?php echo $module->id; ?>').html('<?php echo JText::_(LOAD_MORE_LABEL) ?>');
<span class="loader-label" ><?php echo JText::_('LOAD_MORE_LABEL'); ?></span>

Now it seems to work fine, both in Polish and English, but there's still some problem with Polish chacters encoding - I get "Wczytaj wi�cej" message, and it should be "Wczytaj więcej". Could you please help me with this issue?

And here's my test site:
Last Edit: 4 years, 10 months ago by cli.

Re: Translation of SJ Responsive Content for K2 4 years, 10 months ago #21973

Ok, it's done. I saved the ini file with ANSI encoding and it should be UTF-8. Now everything works fine. Anyway I had to do the same trick with "Loading..." text. So if anyone's interesed, heres what I did:

1. I added this lines:

LOADING_LABEL="Loading..." in modules/mod_sj_k2_responsive_content/language/en-GB/en-GB.mod_sj_k2_responsive_content.ini


LOADING_LABEL="Wczytuję..." in modules/mod_sj_k2_responsive_content/language/pl-PL/pl-PL.mod_sj_k2_responsive_content.ini

2. I edited modules/mod_sj_k2_responsive_content/tmpl/default.php

(line 71) (line 71) $('.loader-label','#resp_content_button_<?php echo $module->id; ?>').html('Loading...');


$('.loader-label','#resp_content_button_<?php echo $module->id; ?>').html('<?php echo JText::_(LOADING_LABEL) ?>');

It would be nice to have all this labels translatable by default - maybe in the next version of this module.
Last Edit: 4 years, 10 months ago by cli.
  • Page:
  • 1
Time to create page: 0.43 seconds


Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Suggested Posts

Result not found!

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes

H A L L O W E E N S A L E!

45% OFF

Everything at SmartAddons

Code: SPOOKY19