forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: breagan1 on November 16, 2004, 04:31:03 pm

Title: Change "# views" to "viewed # times"
Post by: breagan1 on November 16, 2004, 04:31:03 pm
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?
Title: Re: Change "# views" to "viewed # times"
Post by: Casper on November 16, 2004, 05:58:22 pm
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)

Code: [Select]
$lang_get_pic_data = array(
  'n_comments' => '%s comments',
  'n_views' => '%s views',
  'n_votes' => '(%s votes)',
);

So you could change it to;

Code: [Select]
$lang_get_pic_data = array(
  'n_comments' => '%s comments',
  'n_views' => 'Viewed %s times',
  'n_votes' => '(%s votes)',
);
Title: Re: Change "# views" to "viewed # times"
Post by: breagan1 on November 16, 2004, 06:40:31 pm
It worked, thanks! :)