Change "# views" to "viewed # times" Change "# views" to "viewed # times"
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Change "# views" to "viewed # times"

Started by breagan1, November 16, 2004, 04:31:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

breagan1

The visitors to my gallery have been confused by the view counter under the thumbnails. They think "8 views" means that there are 8 views of that particular photo.  How can I change this to read "viewed 8 times"?  If I go to the "include" folder and "function.inc" I find "n_views".  But if I change this wording it disappears under the thumbnails.  What else do I need to change?

Casper

You don't change the functions.inc.php at all.  You should undo any changes you made to that.

Open lang/your_lang.php and edit this section (english.php shown)

$lang_get_pic_data = array(
  'n_comments' => '%s comments',
  'n_views' => '%s views',
  'n_votes' => '(%s votes)',
);


So you could change it to;

$lang_get_pic_data = array(
  'n_comments' => '%s comments',
  'n_views' => 'Viewed %s times',
  'n_votes' => '(%s votes)',
);
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

breagan1