×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Comments count - one space less

Comments count - one space less 11 years 6 months ago #20716

  • GrzesiekRadom
  • GrzesiekRadom's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Hi

I`ve edited language files to change comments view on the main page (featured view).

I want to have:
skomentuj (0)

I have now:
skomentuj (0 )

So last one has one space after comments count (0_). How can I delete it?

Skomentuj mean add comment.

My site is www.oJezu.pl

Regards

Grzesiek
Attachments:

Comments count - one space less 11 years 6 months ago #20718

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
So in the lang file you've made the translation for comments = '' ?

What would be better is a template override of the readmore file. I've described how to make an override in the docs:
compojoom.com/support/documentation/ccomment/ch07#idp231888

you should remove <?php echo $this->commentTranslation; ?> and the space in the file before it.

cheers,
Daniel

Comments count - one space less 11 years 6 months ago #20723

  • GrzesiekRadom
  • GrzesiekRadom's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Should working but it`s not.

When I`am doing what You say, site crashes and I have error:
Parse error: syntax error, unexpected T_STRING in /homez.650/dobrylot/www/ojezu/components/com_comment/templates/default/readmore.php on line 1


I`ve edited readmore.php and after Your changes have:

<?php/** * @author Daniel Dimitrov - compojoom.com * @date: 11.04.13 * * @copyright Copyright (C) 2008 - 2013 compojoom.com . All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */defined('_JEXEC') or die('Restricted access'); ?><a href="<?php echo $this->link; ?>#!/ccomment" class="btn ccomment-readmore"> <?php echo JText::_('COM_COMMENT_WRITECOMMENT'); ?> (<?php echo $this->count; ?>)</a><?php if ($this->config->get('template_params.preview_visible', 0)) : ?> <?php echo $this->loadTemplate('preview'); ?><?php endif; ?>

Whats wrong?
  • Page:
  • 1
Time to create page: 0.264 seconds