diff --git a/code/CMSMain.php b/code/CMSMain.php index 7de0e3ff..32e25dc1 100644 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -20,6 +20,15 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr 'MetaDescription' => array('CMSMain.METADESC', 'Description'), 'MetaKeywords' => array('CMSMain.METAKEYWORDS', 'Keywords') ); + + static function T_SiteTreeFilterOptions(){ + return array( + 'ClassName' => _t('CMSMain.PAGETYPEOPT', 'Page Type', 0, "The dropdown title in CMSMain left SiteTreeFilterOptions"), + 'Status' => _t('CMSMain.STATUSOPT', 'Status', 0, "The dropdown title in CMSMain left SiteTreeFilterOptions"), + 'MetaDescription' => _t('CMSMain.METADESCOPT', 'Description', 0, "The dropdown title in CMSMain left SiteTreeFilterOptions"), + 'MetaKeywords' => _t('CMSMain.METAKEYWORDSOPT', 'Keywords', 0, "The dropdown title in CMSMain left SiteTreeFilterOptions"), + ); + } public function init() { parent::init(); @@ -78,10 +87,10 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr */ public function SiteTreeFilterOptions() { $filter_options = new DataObjectSet(); - foreach(self::$site_tree_filter_options as $key => $value) { + foreach(self::T_SiteTreeFilterOptions() as $key => $value) { $record = array( 'Column' => $key, - 'Title' => _t($value[0], $value[1]) + 'Title' => $value, ); $filter_options->push(new ArrayData($record)); } @@ -1365,7 +1374,7 @@ function cmsMainMarkingFilterFunction($node) { } } // Now check if a specified Criteria attribute matches - foreach (CMSMain::$site_tree_filter_options as $key => $value) + foreach (CMSMain::T_SiteTreeFilterOptions() as $key => $value) { if (!empty($_REQUEST[$key])) { $parameterName = $key; diff --git a/lang/zh_CN.php b/lang/zh_CN.php index 4a8fc92d..329d3047 100644 --- a/lang/zh_CN.php +++ b/lang/zh_CN.php @@ -4,9 +4,15 @@ i18n::include_locale_file('cms', 'en_US'); global $lang; + if(!isset($lang['zh_CN'])) $lang['zh_CN'] = $lang['en_US']; -$lang['zh_CN']['CMSMain']['CREATE'] = '创建'; +$lang['zh_CN']['AssetAdmin']['VIEWASSET'] = '显示文件资源'; +$lang['zh_CN']['LeftAndMain']['TREESITECONTENT'] = '网站内容'; +$lang['zh_CN']['AssetAdmin']['VIEWEDITASSET'] = '显示/编辑文件资源'; +$lang['zh_CN']['AssetAdmin']['FILENAME'] = '文件路径'; +$lang['zh_CN']['AssetAdmin']['UNUSEDTHUMBNAILSTITLE'] = '没有使用的文件缩略图'; +$lang['zh_CN']['AssetAdmin']['DELETEUNUSEDTHUMBNAILS'] = '删除没有使用的文件缩略图'; $lang['zh_CN']['CMSMain']['REMOVEDFD'] = '从预备发布站删除'; $lang['zh_CN']['CMSMain']['RESTORE'] = '恢复'; $lang['zh_CN']['CMSMain']['SAVE'] = '保存'; @@ -48,12 +54,11 @@ $lang['zh_CN']['LeftAndMain']['PAGETYPE'] = '网页类型'; $lang['zh_CN']['LeftAndMain']['PERMDEFAULT'] = '请先选择一验证方法并输入您的权限信息,以登录CMS。'; $lang['zh_CN']['LeftAndMain']['PERMALREADY'] = '对不起,您无权登录CMS的这一部分。如果您要用另外的帐号,请在下面登录。'; $lang['zh_CN']['LeftAndMain']['PERMAGAIN'] = '您于CMS的登录已被注销,请在下面输入用户名和密码重新登录。'; -$lang['zh_CN']['LeftAndMain']['HELLO'] = '网站内容管理系统'; -$lang['zh_CN']['LeftAndMain']['FILESIMAGES'] = '文件与图像管理系统'; -$lang['zh_CN']['LeftAndMain']['NEWSLETTERS'] = '新闻邮件管理系统'; +$lang['zh_CN']['LeftAndMain']['FILESIMAGES'] = '文件与图像管理'; +$lang['zh_CN']['LeftAndMain']['NEWSLETTERS'] = '新闻邮件管理'; $lang['zh_CN']['LeftAndMain']['REPORTS'] = '报告系统'; -$lang['zh_CN']['LeftAndMain']['SECURITY'] = '安全权限管理系统'; -$lang['zh_CN']['LeftAndMain']['STATISTICS'] = '统计数据系统'; +$lang['zh_CN']['LeftAndMain']['SECURITY'] = '用户权限管理'; +$lang['zh_CN']['LeftAndMain']['STATISTICS'] = '网站统计报告'; $lang['zh_CN']['LeftAndMain']['HELP'] = '帮助'; $lang['zh_CN']['LeftAndMain']['SITECONTENT'] = '网站内容'; $lang['zh_CN']['LeftAndMain']['SAVEDUP'] = '已保存'; @@ -66,11 +71,7 @@ $lang['zh_CN']['CMSMain_left.ss']['OPENBOX'] = '点击以打开该区块'; $lang['zh_CN']['CMSMain_left.ss']['CLOSEBOX'] = '点击以关闭该区块'; $lang['zh_CN']['CMSMain_left.ss']['SITECONTENT TITLE'] = '网站内容与结构'; $lang['zh_CN']['CMSMain_left.ss']['CREATE'] = '创建'; -$lang['zh_CN']['CMSMain_left.ss']['DELETE'] = '删除'; -$lang['zh_CN']['CMSMain_left.ss']['REORDER'] = '重新排序...'; -$lang['zh_CN']['CMSMain_left.ss']['SELECTPAGESDEL'] = '选择您要删除的网页,然后点击下面的按键'; $lang['zh_CN']['CMSMain_left.ss']['DELETECONFIRM'] = '删除所选网页'; -$lang['zh_CN']['CMSMain_left.ss']['DRAGPAGES'] = '按意愿去拖拽网页可以重新组织您的网站。'; $lang['zh_CN']['CMSMain_left.ss']['SELECTPAGESDUP'] = '选择您想要复制的网页,不管其子页是否应包括在内,还是在哪放置复制出的网页'; $lang['zh_CN']['CMSMain_left.ss']['ADDEDNOTPUB'] = '已被加入到预备发布站但还未发布'; $lang['zh_CN']['CMSMain_left.ss']['NEW'] = '新建的'; @@ -141,7 +142,7 @@ $lang['zh_CN']['BulkLoaderAdmin']['PREVIEW'] = '预览'; $lang['zh_CN']['BulkLoaderAdmin']['PRESSCNT'] = '点击继续以载入数据'; $lang['zh_CN']['BulkLoaderAdmin']['CONFIRMBULK'] = '确认批量载入'; $lang['zh_CN']['BulkLoaderAdmin']['DATALOADED'] = '该数据已被载入'; -$lang['zh_CN']['LeftAndMain']['COMMENTS'] = '评论'; +$lang['zh_CN']['LeftAndMain']['COMMENTS'] = '网页评论管理'; $lang['zh_CN']['CMSMain']['PAGESPUB'] = '发布了%d个网页'; $lang['zh_CN']['CMSMain']['PAGEPUB'] = '发布了%d个网页'; $lang['zh_CN']['MemberList']['FN'] = '名'; @@ -184,7 +185,6 @@ $lang['zh_CN']['SideReport']['LAST2WEEKS'] = '在过去2周内编辑过的网页 $lang['zh_CN']['StaticExporter']['NAME'] = '网站静态拷贝导出器'; $lang['zh_CN']['StaticExporter']['FOLDEREXPORT'] = '导出文件夹'; $lang['zh_CN']['StaticExporter']['BASEURL'] = '基本URL'; -$lang['zh_CN']['StaticExporter']['EXPORTTOTHAT'] = '导出到该文件夹'; $lang['zh_CN']['StaticExporter']['ONETHATEXISTS'] = '请指定一已存在的文件夹'; $lang['zh_CN']['ThumbnailStripField']['NOTAFOLDER'] = '这并非一个文件夹'; $lang['zh_CN']['AssetAdmin_uploadiframe.ss']['PERMFAILED'] = '您没有上传文件到该文件夹的权限。'; @@ -193,7 +193,7 @@ $lang['zh_CN']['CMSMain_versions.ss']['WHEN'] = '上一次被编辑'; $lang['zh_CN']['CMSMain_versions.ss']['AUTHOR'] = '作者'; $lang['zh_CN']['CMSMain_versions.ss']['PUBR'] = '发布人'; $lang['zh_CN']['CMSMain_versions.ss']['UNKNOWN'] = '未知'; -$lang['zh_CN']['CMSMain_versions.ss']['NOTPUB'] = '还未公布'; +$lang['zh_CN']['CMSMain_versions.ss']['NOTPUB'] = '还未发布'; $lang['zh_CN']['CommentList.ss']['NOCOM'] = '该页还未有评论。'; $lang['zh_CN']['CommentList.ss']['CREATEDW'] = '无论何时,当任何一“流程中的行动”—发布、拒绝或提交—被执行时,都会有评论生成。'; $lang['zh_CN']['ImageEditor.ss']['UNTITLED'] = '未命名文档'; @@ -206,14 +206,13 @@ $lang['zh_CN']['ImageEditor.ss']['HEIGHT'] = '高'; $lang['zh_CN']['ImageEditor.ss']['CANCEL'] = '取消'; $lang['zh_CN']['AssetAdmin_left.ss']['FOLDERS'] = '文件夹'; $lang['zh_CN']['AssetAdmin_left.ss']['DELETE'] = '删除'; -$lang['zh_CN']['AssetAdmin_left.ss']['REORDER'] = '重新排序中...'; $lang['zh_CN']['AssetAdmin_left.ss']['GO'] = '执行'; $lang['zh_CN']['AssetAdmin_left.ss']['SELECTTODEL'] = '选择您想要删除的文件夹,然后点击下面的按钮'; $lang['zh_CN']['AssetAdmin_left.ss']['DELFOLDERS'] = '删除所选文件夹'; $lang['zh_CN']['AssetAdmin_left.ss']['TOREORG'] = '按意愿去拖拽文件夹可以重新组织您的文件系统。'; $lang['zh_CN']['AssetAdmin_right.ss']['WELCOME'] = '欢迎来到'; $lang['zh_CN']['AssetAdmin_right.ss']['CHOOSEPAGE'] = '请从左边选择一项。'; -$lang['zh_CN']['AssetTableField.ss']['DRAGTOFOLDER'] = '拖拽文件到某文件夹可以移动该文件'; +$lang['zh_CN']['AssetTableField.ss']['DRAGTOFOLDER'] = '拖放文件到某文件夹以移动文件'; $lang['zh_CN']['AssetTableField.ss']['DELFILE'] = '删除这个文件'; $lang['zh_CN']['BulkLoaderAdmin_left.ss']['FUNCTIONS'] = '功能'; $lang['zh_CN']['BulkLoaderAdmin_left.ss']['BATCHEF'] = '批量输入功能'; @@ -225,10 +224,10 @@ $lang['zh_CN']['CMSLeft.ss']['SELECTPAGESDEL'] = '选择您想要删除的网页 $lang['zh_CN']['CMSLeft.ss']['DELPAGES'] = '删除所选网页'; $lang['zh_CN']['CMSMain_left.ss']['SEARCH'] = '搜索'; $lang['zh_CN']['CMSMain_left.ss']['BATCHACTIONS'] = '批量处理'; -$lang['zh_CN']['CMSMain_left.ss']['ENABLEDRAGGING'] = '允许拖拽以重新排序'; +$lang['zh_CN']['CMSMain_left.ss']['ENABLEDRAGGING'] = '允许拖放以重新排序'; $lang['zh_CN']['CMSMain_left.ss']['SEARCHTITLE'] = '搜索URL(路径),名称,菜单名称以及内容'; -$lang['zh_CN']['CMSMain_left.ss']['EDITEDSINCE'] = '上一次被编辑'; -$lang['zh_CN']['CMSMain_left.ss']['ADDSEARCHCRITERIA'] = '新加搜索条件中...'; +$lang['zh_CN']['CMSMain_left.ss']['EDITEDSINCE'] = '自从所选日期到目前为止,被编辑的网页'; +$lang['zh_CN']['CMSMain_left.ss']['ADDSEARCHCRITERIA'] = '加入下列一个搜索条件'; $lang['zh_CN']['CMSMain_left.ss']['SELECTPAGESACTIONS'] = '选择您想要更改的网页,然后点击一个按钮'; $lang['zh_CN']['CMSMain_left.ss']['SHOWONLYCHANGED'] = '只显示更改的网页'; $lang['zh_CN']['CMSMain_left.ss']['PUBLISHCONFIRM'] = '发布所选网页'; @@ -274,7 +273,6 @@ $lang['zh_CN']['ReportAdmin_right.ss']['WELCOME1'] = '欢迎来到'; $lang['zh_CN']['ReportAdmin_right.ss']['WELCOME2'] = '报告系统。请从左边选择一个报告项'; $lang['zh_CN']['SecurityAdmin_left.ss']['SECGROUPS'] = '安全权限组'; $lang['zh_CN']['SecurityAdmin_left.ss']['DEL'] = '删除中...'; -$lang['zh_CN']['SecurityAdmin_left.ss']['REORDER'] = '重新排序中...'; $lang['zh_CN']['SecurityAdmin_left.ss']['GO'] = '执行'; $lang['zh_CN']['SecurityAdmin_left.ss']['SELECT'] = '选择您想要删除的后按下面的按钮'; $lang['zh_CN']['SecurityAdmin_left.ss']['DELGROUPS'] = '删除所选会员组'; @@ -323,5 +321,17 @@ $lang['zh_CN']['WaitingOn.ss']['ATO'] = '分配给'; $lang['zh_CN']['SubmittedFormEmail.ss']['SUBMITTED'] = '下列数据已被提交给您的网站:'; $lang['zh_CN']['ViewArchivedEmail.ss']['HAVEASKED'] = '在%s,您要求浏览我们网站'; $lang['zh_CN']['ViewArchivedEmail.ss']['CANACCESS'] = '您可通过这个链接进入已归挡的网页:'; - +$lang['zh_CN']['AssetAdmin']['UNUSEDFILESTAB'] = '没有使用的文件'; +$lang['zh_CN']['AssetAdmin']['UNUSEDFILESTITLE'] = '没有使用的文件'; +$lang['zh_CN']['AssetAdmin']['DETAILSTAB'] = '详细信息'; +$lang['zh_CN']['AssetAdmin']['UPLOADTAB'] = '上传'; +$lang['zh_CN']['AssetAdmin']['TITLE'] = '文件名'; +$lang['zh_CN']['AssetAdmin']['FILESTAB'] = '文件'; +$lang['zh_CN']['CMSMain']['METAKEYWORDSOPT'] = '网页关键词标签'; +$lang['zh_CN']['CMSMain']['METADESCOPT'] = '网页描述标签'; +$lang['zh_CN']['LeftAndMain.ss']['EDITPROFILE'] = '用户资料'; +$lang['zh_CN']['CMSMain']['PAGETYPEOPT'] = '网页类型'; +$lang['zh_CN']['CMSMain']['STATUSOPT'] = '网页状态'; +$lang['zh_CN']['LeftAndMain']['SITECONTENTLEFT'] = '网站内容'; +$lang['zh_CN']['StaticExporter']['EXPORTTO'] = '导出到该文件夹'; ?> \ No newline at end of file