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

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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