Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2011-03-05 02:30:00

videohard
Member
Registered: 2011-03-03
Posts: 6

[FIXED] The word "Watch" is hardcoded in view.php

The word "Watch" is hardcoded in view.php and goes in every video meta description. I think it should be editable in the language files since "Watch" is only used in english.

Offline

#2 2011-03-05 03:12:05

videohard
Member
Registered: 2011-03-03
Posts: 6

Re: [FIXED] The word "Watch" is hardcoded in view.php

Also I think you forgot to add "day-days" to the language files. Years, minutes, hours, seconds are there but couldn't find day/days.

Offline

#3 2011-03-05 10:10:42

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [FIXED] The word "Watch" is hardcoded in view.php

Ohh...will fix both asap. If you want to apply the fix before the next update here's what you can do:

1. Edit modules/video/components/view.php and replace this line:

$this->tpl->meta_desc   = 'Watch '.$video['title'].'. '.$this->tpl->cfg['meta_desc'];

with:

$this->tpl->meta_desc = __('watch').' '.$video['title'].' '.$this->tpl->cfg['meta_desc'];

After this go to Admin -> Extend -> Language Manager -> * (all languages) -> Files -> video -> add the watch = Watch translation here.

2. For the day/days problem go to Admin -> Extend -> Language Manager -> * (all languages) -> Files -> global and add: day = day, days = days

Both bugs will be fixed in the next update.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

Board footer

Powered by FluxBB