Language support

Fintan
Topic Author
Posts: 2
7 years 8 months ago #52 by Fintan
Language support was created by Fintan
First of all I really like the accordion :)

I am building dual language site with DE as default. I have activated or done all the language changes, so there is no english version yet. I'll do that when I get this solved ;)

How can I get the "read me..." to say "Weiter lesen...."?

There is no de_DE.mod_accordion.ini /langauges/de-DE folder.

And changing the en-GB.mod_accordion.ini file doesn't work either.

I have set the read me text to weiter lesen... in the articles config.

Thank you any help
Cheers

Please Log in or Create an account to join the conversation.

Lodder
Lodder's Avatar
Posts: 1171
7 years 8 months ago #53 by Lodder
Replied by Lodder on topic Language support
Hi Fintan,

Thank you for pointing this out. I forgot to make the "read more" button language based so I'll be sure to integrate it in the next update.

For the time being, if you're using Joomla 2.5, to the the default.php file and on lines 63 to 70, you will see the following code:
if (isset($listitem->link) && $params->get('readmore')) {
	if ($params->get('jj_style') == 'bootstrap') {
		echo '<br /><a class="readmore btn btn-small btn-primary" href="'.$listitem->link.'">' . JText::_('Read more...') . '</a>';
	}
	else {
		echo '<br /><a class="readmore" href="'.$listitem->link.'">' . JText::_('Read more...') . '</a>';
	}
}

Replace all of that with the following:
if (isset($listitem->link) && $params->get('readmore')) {
	if ($params->get('jj_style') == 'bootstrap') {
		echo '<br /><a class="readmore btn btn-small btn-primary" href="'.$listitem->link.'">' . JText::_('MOD_ACCORDION_READ_MORE') . '</a>';
	}
	else {
		echo '<br /><a class="readmore" href="'.$listitem->link.'">' . JText::_('MOD_ACCORDION_READ_MORE') . '</a>';
	}
}

As you can see, I have added MOD_ACCORDION_READ_MORE. Put this in the language files for the accordion and translate accordingly :)

Should you not be able to do this, let me know and I will bring out an update.

Kind regards,
Charlie Lodder

Please Log in or Create an account to join the conversation.

Fintan
Topic Author
Posts: 2
7 years 7 months ago #67 by Fintan
Replied by Fintan on topic Language support
Thank you for the reponse. For some reason I didn't see it earlier.

For the time being, if you're using Joomla 2.5, to the the default.php file and on lines 63 to 70, you will see the following code:


Which default.php do you mean?

As you can see, I have added MOD_ACCORDION_READ_MORE. Put this in the language files for the accordion and translate accordingly


Not sure what you mean here. Please elaborate. I am not the php savvy.

Please Log in or Create an account to join the conversation.

George
George's Avatar
Posts: 134
7 years 7 months ago #68 by George
Replied by George on topic Language support
Hi Fintan,
Not to worry - we'll release an update for the accordion that fixes this error! It will probably be released tomorrow

Regards,
George

Please Log in or Create an account to join the conversation.

Lodder
Lodder's Avatar
Posts: 1171
7 years 7 months ago #69 by Lodder
Replied by Lodder on topic Language support
We have released an update for JJ Accordion with the "Read More" button being language based.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum