From e0a7fe27e34b7205a7b94ecb30eacdccf03f3d02 Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Wed, 17 Nov 2010 02:01:32 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=88=B0=205.2=20=E6=AD=A3?= =?UTF-8?q?=E5=BC=8F=E7=89=88=E5=90=8E=E7=AC=AC=E4=B8=80=E6=AC=A1=20SVN=20?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit yuchenghu@hawebs.net git-svn-id: https://svn.code.sf.net/p/hawebs/svn@640 a2543c7e-f6e9-4f8a-8bff-1ffc34733512 --- oss/vtiger/trunk/modules/Rss/Delete.php | 31 ++ oss/vtiger/trunk/modules/Rss/Forms.php | 45 ++ oss/vtiger/trunk/modules/Rss/ListView.html | 45 ++ oss/vtiger/trunk/modules/Rss/ListView.php | 92 ++++ oss/vtiger/trunk/modules/Rss/Popup.html | 57 +++ oss/vtiger/trunk/modules/Rss/Popup.php | 50 ++ oss/vtiger/trunk/modules/Rss/Rss.js | 60 +++ oss/vtiger/trunk/modules/Rss/Rss.php | 464 ++++++++++++++++++ oss/vtiger/trunk/modules/Rss/RssAjax.php | 15 + oss/vtiger/trunk/modules/Rss/Save.php | 24 + oss/vtiger/trunk/modules/Rss/Star.php | 24 + oss/vtiger/trunk/modules/Rss/index.php | 27 + .../trunk/modules/Rss/language/en_us.lang.php | 59 +++ .../trunk/modules/Rss/language/zh_cn.lang.php | 58 +++ 14 files changed, 1051 insertions(+) create mode 100644 oss/vtiger/trunk/modules/Rss/Delete.php create mode 100644 oss/vtiger/trunk/modules/Rss/Forms.php create mode 100644 oss/vtiger/trunk/modules/Rss/ListView.html create mode 100644 oss/vtiger/trunk/modules/Rss/ListView.php create mode 100644 oss/vtiger/trunk/modules/Rss/Popup.html create mode 100644 oss/vtiger/trunk/modules/Rss/Popup.php create mode 100644 oss/vtiger/trunk/modules/Rss/Rss.js create mode 100644 oss/vtiger/trunk/modules/Rss/Rss.php create mode 100644 oss/vtiger/trunk/modules/Rss/RssAjax.php create mode 100644 oss/vtiger/trunk/modules/Rss/Save.php create mode 100644 oss/vtiger/trunk/modules/Rss/Star.php create mode 100644 oss/vtiger/trunk/modules/Rss/index.php create mode 100644 oss/vtiger/trunk/modules/Rss/language/en_us.lang.php create mode 100644 oss/vtiger/trunk/modules/Rss/language/zh_cn.lang.php diff --git a/oss/vtiger/trunk/modules/Rss/Delete.php b/oss/vtiger/trunk/modules/Rss/Delete.php new file mode 100644 index 00000000..0d5460f6 --- /dev/null +++ b/oss/vtiger/trunk/modules/Rss/Delete.php @@ -0,0 +1,31 @@ +pquery($del_query, array($_REQUEST['record'])); + + //code added for returning back to the current view after delete from list view +header("Location: index.php?module=".vtlib_purify($_REQUEST['return_module'])."&action=RssAjax&file=ListView&directmode=ajax"); +?> \ No newline at end of file diff --git a/oss/vtiger/trunk/modules/Rss/Forms.php b/oss/vtiger/trunk/modules/Rss/Forms.php new file mode 100644 index 00000000..13c990a2 --- /dev/null +++ b/oss/vtiger/trunk/modules/Rss/Forms.php @@ -0,0 +1,45 @@ +getAllRssFeeds(); +function get_rssfeeds_form() { +global $mod_strings; +global $app_strings; +global $app_list_strings; +global $image_path; + +$oRss = new vtigerRSS(); +$allrsshtml = $oRss->getRSSCategoryHTML(); +//$starred_rss_html = $oRss->getStarredRssFolder(); + +$the_form .= ''; + +$the_form .= $allrsshtml; + +$the_form .= "
"; +return $the_form; +} + +?> diff --git a/oss/vtiger/trunk/modules/Rss/ListView.html b/oss/vtiger/trunk/modules/Rss/ListView.html new file mode 100644 index 00000000..7b6cf842 --- /dev/null +++ b/oss/vtiger/trunk/modules/Rss/ListView.html @@ -0,0 +1,45 @@ + + + + + + +
+ + + + + {RSSFEEDS_TITLE} +
+ {RSSFEEDS} +
+ {RSSDETAILS} +
+
+ diff --git a/oss/vtiger/trunk/modules/Rss/ListView.php b/oss/vtiger/trunk/modules/Rss/ListView.php new file mode 100644 index 00000000..b3f23c1a --- /dev/null +++ b/oss/vtiger/trunk/modules/Rss/ListView.php @@ -0,0 +1,92 @@ +assign("MOD", $mod_strings); +$rss_form->assign("APP", $app_strings); +$rss_form->assign("THEME",$theme); +$rss_form->assign("IMAGE_PATH",$image_path); +$rss_form->assign("MODULE", $currentModule); +$rss_form->assign("CATEGORY", getParenttab()); + +//<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>// +//$url = 'http://forums/rss.php?name=forums&file=rss'; +//$url = 'http://forums/weblog_rss.php?w=202'; +if(isset($_REQUEST[record])) +{ + $recordid = vtlib_purify($_REQUEST['record']); + $url = $oRss->getRssUrlfromId($recordid); + if($oRss->setRSSUrl($url)) + { + $rss_html = $oRss->getSelectedRssHTML($recordid); + }else + { + $rss_html = "".$mod_strings['LBL_ERROR_MSG'].""; + } + $rss_form->assign("TITLE",gerRssTitle($recordid)); + $rss_form->assign("ID",$recordid); +}else +{ + $rss_form->assign("TITLE",gerRssTitle()); + $rss_html = $oRss->getStarredRssHTML(); + $query = "select rssid from vtiger_rss where starred=1"; + $result = $adb->pquery($query, array()); + $recordid = $adb->query_result($result,0,'rssid'); + $rss_form->assign("ID",$recordid); + $rss_form->assign("DEFAULT",'yes'); +} +if($currentModule == "Rss") +{ + require_once("modules/".$currentModule."/Forms.php"); + if (function_exists('get_rssfeeds_form')) + { + $rss_form->assign("RSSFEEDS", get_rssfeeds_form()); + } +} +$rss_form->assign("RSSDETAILS",$rss_html); +//<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>// +if(isset($_REQUEST['directmode']) && $_REQUEST['directmode'] == 'ajax') + $rss_form->display("RssFeeds.tpl"); +else + $rss_form->display("Rss.tpl"); +?> diff --git a/oss/vtiger/trunk/modules/Rss/Popup.html b/oss/vtiger/trunk/modules/Rss/Popup.html new file mode 100644 index 00000000..e538a25f --- /dev/null +++ b/oss/vtiger/trunk/modules/Rss/Popup.html @@ -0,0 +1,57 @@ + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
Add RSS Feed:
RSS Feed URL:
Choose Category: +
Set as Starred
+ + + + +
+ +
+

+ +
+ + diff --git a/oss/vtiger/trunk/modules/Rss/Popup.php b/oss/vtiger/trunk/modules/Rss/Popup.php new file mode 100644 index 00000000..c38da112 --- /dev/null +++ b/oss/vtiger/trunk/modules/Rss/Popup.php @@ -0,0 +1,50 @@ +pquery($query, array()); + $query = 'update vtiger_rss set starred=1 where rssid =?'; + $adb->pquery($query, array($_REQUEST["record"])); + echo vtlib_purify($_REQUEST["record"]); +} +elseif(isset($_REQUEST["rssurl"])) +{ + $newRssUrl = str_replace('##amp##','&',$_REQUEST["rssurl"]); + $setstarred = 0; + $oRss = new vtigerRSS(); + if($oRss->setRSSUrl($newRssUrl)) + { + $result = $oRss->saveRSSUrl($newRssUrl,$setstarred); + if($result == false) + { + echo $mod_strings['UNABLE_TO_SAVE'] ; + }else + { + echo $result; + } + }else + { + echo $mod_strings['NOT_A_VALID']; + + } +} + +?> diff --git a/oss/vtiger/trunk/modules/Rss/Rss.js b/oss/vtiger/trunk/modules/Rss/Rss.js new file mode 100644 index 00000000..d9bf2ac8 --- /dev/null +++ b/oss/vtiger/trunk/modules/Rss/Rss.js @@ -0,0 +1,60 @@ +/********************************************************************************* +** The contents of this file are subject to the vtiger CRM Public License Version 1.0 + * ("License"); You may not use this file except in compliance with the License + * The Original Code is: vtiger CRM Open Source + * The Initial Developer of the Original Code is vtiger. + * Portions created by vtiger are Copyright (C) vtiger. + * All Rights Reserved. +* + ********************************************************************************/ + +function star(id, starred) +{ + location.href = "index.php?module=Rss&action=Star&record="+id+"&starred="+starred; + + var elem = document.getElementById("star-"+id); + if(elem.src.indexOf("onstar.gif") != -1) { + elem.src = "themes/images/offstar.gif"; + }else { + elem.src = "themes/images/onstar.gif"; + } +} +function getRequest() { + if ( !httpRequest ) { + httpRequest = new XMLHttpRequest(); + } + return httpRequest; + } +function makeRequest(targetUrl) { + var httpRequest = getRequest(); + httpRequest.open("GET", targetUrl, false, false, false); + httpRequest.send(""); + switch ( httpRequest.status ) { + case 200: + return httpRequest.responseText; + break; + default: + alert(alert_arr.PROBLEM_ACCESSSING_URL+targetUrl+alert_arr.CODE+httpRequest.status); + return null; + break; + } + } +function verify_data(form) { + var isError = false; + var errorMessage = ""; + if (trim(form.rssurl.value) == "") { + isError = true; + errorMessage += "\nRSS Feed URL"; + } + // Here we decide whether to submit the form. + if (isError == true) { + alert(alert_arr.MISSING_REQUIRED_FIELDS + errorMessage); + return false; + } + return true; +} +function display(url,id) +{ + document.getElementById('rsstitle').innerHTML = document.getElementById(id).innerHTML; + document.getElementById('mysite').src = url; +} diff --git a/oss/vtiger/trunk/modules/Rss/Rss.php b/oss/vtiger/trunk/modules/Rss/Rss.php new file mode 100644 index 00000000..9dfc2b58 --- /dev/null +++ b/oss/vtiger/trunk/modules/Rss/Rss.php @@ -0,0 +1,464 @@ +rss = fetch_rss($url); + // Read in our sample feed file + //$data = @implode("",@file($url)); + // Tell feedParser to parse the data + $info = $this->rss->items; + + if(isset($info)) + { + $this->rss_object = $info; + }else + { + return false; + } + if(isset($this->rss)) + { + $this->rss_title = $this->rss->channel["title"]; + $this->rss_link = $this->rss->channel["link"]; + $this->rss_object = $info; + return true; + }else + { + return false; + } + + } + + /** Function to get the List of Rss feeds + * This Function accepts no arguments and returns the listview contents on Sucess + * returns "Sorry: It's not possible to reach RSS URL" if fails + */ + + function getListViewRSSHtml() + { + global $default_charset; + if(isset($this->rss_object)) + { + $i = 0; + foreach($this->rss_object as $key=>$item) + { + $stringConvert = function_exists(iconv) ? @iconv("UTF-8",$default_charset,$item[title]) : $item[title]; + $rss_title= ltrim(rtrim($stringConvert)); + + $i = $i + 1; + $shtml .= "".$rss_title."".$this->rss_title.""; + if($i == 10) + { + return $shtml; + } + } + + return $shtml; + + }else + { + $shtml = "".$mod_strings['LBL_REGRET_MSG'].""; + } + } + + /** Function to get the List of Rss feeds in the Customized Home page + * This Function accepts maximum entries as arguments and returns the listview contents on Success + * returns "Sorry: It's not possible to reach RSS URL" if fails + */ + function getListViewHomeRSSHtml($maxentries) + { + $return_value=Array(); + $return_more=Array(); + if(isset($this->rss_object)) + { + $y = 0; + + foreach($this->rss_object as $key=>$item) + { + $title =$item[title]; + $link = $item[link]; + + if($y == $maxentries) + { + $return_more=Array("Details"=>$return_value,"More"=>$this->rss_link); + return $return_more; + } + $y = $y + 1; + $return_value[]=Array($title,$link); + } + $return_more=Array("Details"=>$return_value,"More"=>$this->rss_link); + return $return_more; + + }else + { + return $return_more; + } + } + + /** Function to save the Rss Feeds + * This Function accepts the RssURl,Starred Status as arguments and + * returns true on sucess + * returns false if fails + */ + function saveRSSUrl($url,$makestarred=0) + { + global $adb; + + if ($url != "") + { + $rsstitle = $this->rss_title; + if($rsstitle == "") + { + $rsstitle = $url; + } + $genRssId = $adb->getUniqueID("vtiger_rss"); + $sSQL = "insert into vtiger_rss (RSSID,RSSURL,RSSTITLE,RSSTYPE,STARRED) values (?,?,?,?,?)"; + $sparams = array($genRssId, $url, $rsstitle, 0, $makestarred); + $result = $adb->pquery($sSQL, $sparams); + if($result) + { + return $genRssId; + }else + { + return false; + } + } + } + function getCRMRssFeeds() + { + global $adb; + global $image_path,$theme; + + $sSQL = "select * from vtiger_rss where rsstype=1"; + $result = $adb->pquery($sSQL, array()); + while($allrssrow = $adb->fetch_array($result)) + { + $shtml .= ""; + if($allrssrow["starred"] == 1) + { + $shtml .= " + "; + }else + { + $shtml .= " + "; + } + $shtml .= "".$allrssrow[rsstitle].""; + $shtml .= " "; + + } + return $shtml; + + } + + function getAllRssFeeds() + { + global $adb; + global $image_path; + + $sSQL = "select * from vtiger_rss where rsstype <> 1"; + $result = $adb->pquery($sSQL, array()); + while($allrssrow = $adb->fetch_array($result)) + { + $shtml .= ""; + if($allrssrow["starred"] == 1) + { + $shtml .= " + "; + }else + { + $shtml .= " + "; + } + $shtml .= "".$allrssrow[rsstitle]." "; + $shtml .= ""; + + } + + return $shtml; + } + + /** Function to get the rssurl for the given id + * This Function accepts the rssid as argument and returns the rssurl for that id + */ + function getRssUrlfromId($rssid) + { + global $adb; + + if($rssid != "") + { + $sSQL = "select * from vtiger_rss where rssid=?"; + $result = $adb->pquery($sSQL, array($rssid)); + $rssrow = $adb->fetch_array($result); + + if(count($rssrow) > 0) + { + $rssurl = $rssrow[rssurl]; + } + } + return $rssurl; + } + + function getRSSHeadings($rssid) + { + global $image_path; + global $adb; + + if($rssid != "") + { + $sSQL = "select * from vtiger_rss where rssid=?"; + $result = $adb->pquery($sSQL, array($rssid)); + $rssrow = $adb->fetch_array($result); + + if(count($rssrow) > 0) + { + $shtml = " + + + +
"; + if($rssrow[starred] == 1) + { + $shtml .= ""; + }else + { + $shtml .= ""; + } + $shtml .= "rss_object[link]."\"> ".$rssrow[rsstitle]." +
"; + + } + } + return $shtml; + } + + /** Function to get the StarredRSSFeeds lists + * This Function accepts no argument and returns the rss feeds of + * the starred Feeds as HTML strings + */ + function getTopStarredRSSFeeds() + { + global $adb; + global $image_path; + + $sSQL = "select * from vtiger_rss where starred=1"; + $result = $adb->pquery($sSQL, array()); + $shtml .= "Add New Rss"; + + while($allrssrow = $adb->fetch_array($result)) + { + $shtml .= ""; + $shtml .= " ".substr($allrssrow['rsstitle'],0,10)."..."; + } + return $shtml; + } + + /** Function to get the rssfeed lists for the starred Rss feeds + * This Function accepts no argument and returns the rss feeds of + * the starred Feeds as HTML strings + */ + function getStarredRssHTML() + { + global $adb; + global $image_path,$mod_strings; + + $sSQL = "select * from vtiger_rss where starred=1"; + $result = $adb->pquery($sSQL, array()); + while($allrssrow = $adb->fetch_array($result)) + { + if($this->setRSSUrl($allrssrow["rssurl"])) + { + $rss_html = $this->getListViewRSSHtml(); + } + $shtml .= $rss_html; + if(isset($this->rss_object)) + { + if(count($this->rss_object) > 10) + { + $shtml .= " + rss_link\">".$mod_strings['LBL_MORE']." + "; + } + } + $sreturnhtml[] = $shtml; + $shtml = ""; + } + + $recordcount = round((count($sreturnhtml))/2); + $j = $recordcount; + for($i=0;$i<$recordcount;$i++) + { + $starredhtml .= $sreturnhtml[$i].$sreturnhtml[$j]; + $j = $j + 1; + } + $starredhtml = " + + + + ".$starredhtml."
".$mod_strings['LBL_SUBJECT']."".$mod_strings['LBL_SENDER']."
"; + + return $starredhtml; + + } + + /** Function to get the rssfeed lists for the given rssid + * This Function accepts the rssid as argument and returns the rss feeds as HTML strings + */ + function getSelectedRssHTML($rssid) + { + global $adb; + global $image_path, $mod_strings; + + $sSQL = "select * from vtiger_rss where rssid=?"; + $result = $adb->pquery($sSQL, array($rssid)); + while($allrssrow = $adb->fetch_array($result)) + { + if($this->setRSSUrl($allrssrow["rssurl"])) + { + $rss_html = $this->getListViewRSSHtml(); + } + $shtml .= $rss_html; + if(isset($this->rss_object)) + { + if(count($this->rss_object) > 10) + { + $shtml .= " + rss_link\">".$mod_strings['LBL_MORE']." + "; + } + } + $sreturnhtml[] = $shtml; + $shtml = ""; + } + + $recordcount = round((count($sreturnhtml))/2); + $j = $recordcount; + for($i=0;$i<$recordcount;$i++) + { + $starredhtml .= $sreturnhtml[$i].$sreturnhtml[$j]; + $j = $j + 1; + } + $starredhtml = " + + + + ".$starredhtml."
".$mod_strings['LBL_SUBJECT']."".$mod_strings['LBL_SENDER']."
"; + + return $starredhtml; + + } + + /** Function to get the Rss Feeds by Category + * This Function accepts the RssCategory as argument + * and returns the html string for the Rss feeds lists + */ + function getRSSCategoryHTML() + { + global $adb; + global $image_path; + $shtml .= " + + ".$this->getRssFeedsbyCategory()."
+ + "; + + return $shtml; + } + + /** Function to get the Rss Feeds for the Given Category + * This Function accepts the RssCategory as argument + * and returns the html string for the Rss feeds lists + */ + function getRssFeedsbyCategory() + { + + global $adb; + global $image_path,$theme; + + $sSQL = "select * from vtiger_rss"; + $result = $adb->pquery($sSQL, array()); + while($allrssrow = $adb->fetch_array($result)) + { + $shtml .= ""; + $shtml .= ""; + if($allrssrow["starred"] == 1) + { + $shtml .= ""; + }else + { + $shtml .= ""; + } + $shtml .= ""; + $shtml .= "".$allrssrow[rsstitle]." "; + $shtml .= ""; + } + return $shtml; + + } + + // Function to delete an entity with given Id + function trash($module, $id) { + global $log, $adb; + + $del_query = 'DELETE FROM vtiger_rss WHERE rssid=?'; + $adb->pquery($del_query, array($id)); + } + +} + +/** Function to get the rsstitle for the given rssid + * This Function accepts the rssid as an optional argument and returns the title + * if no id is passed it will return the tittle of the starred rss + */ +function gerRssTitle($id='') +{ + global $adb; + if($id == '') { + $query = 'select * from vtiger_rss where starred=1'; + $params = array(); + } else { + $query = 'select * from vtiger_rss where rssid =?'; + $params = array($id); + } + $result = $adb->pquery($query, $params); + $title = $adb->query_result($result,0,'rsstitle'); + return $title; + +} + + + +?> diff --git a/oss/vtiger/trunk/modules/Rss/RssAjax.php b/oss/vtiger/trunk/modules/Rss/RssAjax.php new file mode 100644 index 00000000..74c430d8 --- /dev/null +++ b/oss/vtiger/trunk/modules/Rss/RssAjax.php @@ -0,0 +1,15 @@ + diff --git a/oss/vtiger/trunk/modules/Rss/Save.php b/oss/vtiger/trunk/modules/Rss/Save.php new file mode 100644 index 00000000..34eb5920 --- /dev/null +++ b/oss/vtiger/trunk/modules/Rss/Save.php @@ -0,0 +1,24 @@ +setRSSUrl($newRssUrl)) { + if($oRss->saveRSSUrl($newRssUrl) == false) { + echo $mod_strings['UNABLE_TO_SAVE']; + } +} else { + echo $mod_strings['INVALID_RSS_URL']; +} +?> \ No newline at end of file diff --git a/oss/vtiger/trunk/modules/Rss/Star.php b/oss/vtiger/trunk/modules/Rss/Star.php new file mode 100644 index 00000000..04d05e56 --- /dev/null +++ b/oss/vtiger/trunk/modules/Rss/Star.php @@ -0,0 +1,24 @@ +pquery($sSQL, array($starred, $recordid)); +} +header("Location: index.php?module=Rss&action=index"); +?> \ No newline at end of file diff --git a/oss/vtiger/trunk/modules/Rss/index.php b/oss/vtiger/trunk/modules/Rss/index.php new file mode 100644 index 00000000..f26ed783 --- /dev/null +++ b/oss/vtiger/trunk/modules/Rss/index.php @@ -0,0 +1,27 @@ + diff --git a/oss/vtiger/trunk/modules/Rss/language/en_us.lang.php b/oss/vtiger/trunk/modules/Rss/language/en_us.lang.php new file mode 100644 index 00000000..04f31957 --- /dev/null +++ b/oss/vtiger/trunk/modules/Rss/language/en_us.lang.php @@ -0,0 +1,59 @@ +'RSS', +'LBL_MODULE_TITLE'=>'RSS: Home', + +'LBL_NEW_RSS_ENTRY'=>'New RSS News Feed URL:', +'LBL_SEARCH_RSS'=>'Search Title:', +'LBL_NEW_RSS_BUTTON'=>'Add', + +'LBL_STARRED_RSS'=>'Starred Feeds', +'LBL_POP_CRM_RSS'=>'Popular CRM Related Feeds', +'LBL_ALL_RSS_FEEDS'=>'All RSS Feeds', +'LBL_VTIGER_RSS_READER'=>'vtiger RSS Reader', + +'LBL_MORE'=>'More...', +'LBL_SUBJECT'=>'Subject', +'LBL_SENDER'=>'Sender', +'LBL_CATEGORY'=>'Category :', +'LBL_FEED'=>'Feed :', +'LBL_FEED_SOURCES'=> 'Feed Sources', +'LBL_ADD_RSS_FEED'=>'Add RSS Feed', +'LBL_DELETE_BUTTON'=>'Delete', +'LBL_SET_DEFAULT_BUTTON'=>'Set As Default', +'LBL_FEEDS_LIST'=>'Feeds list from :', +'LBL_ERROR_MSG'=>'No RSS Feeds are selected or Your Proxy Settings is not Proper', +'LBL_REGRET_MSG'=>'Sorry: It\'s not possible to reach RSS URL', + +'UNABLE_TO_SAVE'=>'Unable to save the RSS Feed URL', + +// Added/Updated for vtiger CRM 5.0.4 +'NOT_A_VALID'=>'Not a valid RSS Feed or Your Proxy Settings is not Proper', + +// Added after 5.0.4 GA +'INVALID_RSS_URL' => 'Not a valid RSS URL', +'UNABLE_TO_SAVE' => 'Unable to save the Url', + +); +?> \ No newline at end of file diff --git a/oss/vtiger/trunk/modules/Rss/language/zh_cn.lang.php b/oss/vtiger/trunk/modules/Rss/language/zh_cn.lang.php new file mode 100644 index 00000000..9de15b9a --- /dev/null +++ b/oss/vtiger/trunk/modules/Rss/language/zh_cn.lang.php @@ -0,0 +1,58 @@ + '新闻', +'LBL_MODULE_TITLE' => '新闻:首页', + +'LBL_NEW_RSS_ENTRY' => '新闻RSS资料来源网址:', +'LBL_SEARCH_RSS' => '标题搜寻:', +'LBL_NEW_RSS_BUTTON' => '新增', + +'LBL_STARRED_RSS' => '重要新闻', +'LBL_POP_CRM_RSS' => 'CRM相关热门新闻', +'LBL_ALL_RSS_FEEDS' => '所有他站新闻', +'LBL_VTIGER_RSS_READER'=>'vtiger RSS 读者', + +'LBL_MORE' => '更多...', +'LBL_SUBJECT' => '主旨', +'LBL_SENDER' => '寄件人', +'LBL_CATEGORY' => '类别:', +'LBL_FEED' => '资料来源:', +'LBL_FEED_SOURCES'=> 'Feed 来源', +'LBL_ADD_RSS_FEED' => '新增 RSS 资料来源', +'LBL_DELETE_BUTTON'=>'删除', +'LBL_SET_DEFAULT_BUTTON'=>'预设', +'LBL_FEEDS_LIST' => '资料来源:', +'LBL_ERROR_MSG' => '没有选择 RSS 来源或是您的代理服务器设定有问题', +'LBL_REGRET_MSG' => '抱歉:无法取得 RSS 网址', + +'UNABLE_TO_SAVE'=>'无法保存 RSS 资料地址', + +// Added/Updated for vtiger CRM 5.0.4 +'NOT_A_VALID'=>'不是一个有效的rss资料或你的代理服务器设置是不正确的', + +// Added after 5.0.4 GA +'INVALID_RSS_URL' => 'Not a valid RSS URL', +'UNABLE_TO_SAVE' => 'Unable to save the Url', +); +?>