Dedecms How to modify a total of 0 page/0 records for the English version?
Source: Internet
Author: User
KeywordsEnglish Dedecms total 0 pages 0 records
Wind Letter Net (ithov.com) original article: Recently, in testing a website function, found below the search results for Chinese "a total of 0 pages/0 records", but the customer's website for the English version, so we need to search the results of the information should also be displayed as English, OK, We started to modify the Dedecms file to achieve the results we need!
"Total 0 page/0 record" We need to modify the include/datalistcp.class.php file, but please note that many other pages will be displayed in English after the file has been modified.
Locate the file on line 30th:
$lang _pre_page = ' prev '; $lang _next_page = ' next page '; $lang _index_page = ' home '; $lang _end_page = ' last '; $lang _record_number = ' record '; $lang _page = ' page '; $lang _total = ' total ';
Modified to:
$lang _pre_page = ' Previous '; $lang _next_page = ' Next '; $lang _index_page = ' home '; $lang _end_page = ' End '; $lang _record_number = ' Records '; $lang _page = ' page '; $lang _total = ' total ';
After saving, we test the search results! Successfully achieved the results we need.
modifying include/arc.searchview.class.php files
Locate the file on line No. 820:
if ($totalpage <=1 && $this->totalresult>0) { Return "A total of 1 pages/". $this->totalresult. " Record "; } if ($this->totalresult = = 0) { Return "A total of 0 pages/". $this->totalresult. " Record "; }
Modified to:
if ($totalpage <=1 && $this->totalresult>0) { Return "Total 1 page/". $this->totalresult. " Records "; } if ($this->totalresult = = 0) { Return "Total 0 page/". $this->totalresult. " Records "; }
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.