官网:http://www.roxyfileman.com/
中文包:zh.json
1.将zh.json包拷贝到Nop.Admin项目中”Content\Roxy_Fileman\lang\”下
2.conf.json修改”LANG”:”auto”
{
"CreateDir":"创建",
"RenameDir":"重命名",
"DeleteDir":"删除",
"AddFile":"添加文件",
"Preview":"预览",
"RenameFile":"重命名",
"DeleteFile":"删除",
"SelectFile":"选择",
"OrderBy":"排序",
"Name_asc":"↑ 名称",
"Size_asc":"↑ 大小",
"Date_asc":"↑ 日期",
"Name_desc":"↓ 名称",
"Size_desc":"↓ 大小",
"Date_desc":"↓ 日期",
"Name":"名称",
"Size":"大小",
"Date":"日期",
"Dimensions":"大小",
"Cancel":"取消",
"LoadingDirectories":"加载文件夹...",
"LoadingFiles":"加载文件...",
"DirIsEmpty":"空文件夹",
"NoFilesFound":"找不到文件",
"Upload":"上传",
"T_CreateDir":"创建文件夹",
"T_RenameDir":"重命名文件夹",
"T_DeleteDir":"删除选中的文件夹",
"T_AddFile":"上传文件",
"T_Preview":"预览选定的文件",
"T_RenameFile":"重命名文件",
"T_DeleteFile":"删除文件",
"T_SelectFile":"选择高亮显示文件",
"T_ListView":"列表视图",
"T_ThumbsView":"缩略图",
"Q_DeleteFolder":"删除选中的路径?",
"Q_DeleteFile":"删除选中的文件?",
"E_LoadingConf":"加载配置文件出错",
"E_ActionDisabled":"此操作已被禁用",
"E_LoadingAjax":"误差加载",
"E_MissingDirName":"文件名丢失",
"E_SelectFiles":"选择上传的文件",
"E_CannotRenameRoot":"根目录文件不能被重命名.",
"E_NoFileSelected":"没选中文件.",
"E_CreateDirFailed":"创建目录时出错",
"E_CreateDirInvalidPath":"不能创建目录 - 路径不存在",
"E_CannotDeleteDir":"删除路径是出错",
"E_DeleteDirInvalidPath":"不能删除此路径-路径不存在",
"E_DeletеFile":"删除文件是出错",
"E_DeleteFileInvalidPath":"不能删除文件 - 路径不存在",
"E_DeleteNonEmpty":"不能删除 - 文件非空",
"E_CannotMoveDirToChild":"不能将此目录移动到其子目录",
"E_DirAlreadyExists":"相同的路径已经存在",
"E_MoveDir":"移动目录时出错",
"E_MoveDirInvalisPath":"不能移动目录 - 目录不存在",
"E_MoveFile":"移动文件时出错",
"E_MoveFileInvalisPath":"不能移动文件 - 文件不存在",
"E_MoveFileAlreadyExists":"相同名字的文件已经存在",
"E_RenameDir":"重命名目录时出错",
"E_RenameDirInvalidPath":"不能重命名目录 - 路径不存在",
"E_RenameFile":"重命名文件时出错",
"E_RenameFileInvalidPath":"不能重命名文件 - 文件不存在",
"E_UploadNotAll":"上传文件时候出错. ",
"E_UploadNoFiles":"没有文件上传或者文件太大不能上传.",
"E_UploadInvalidPath":"不能上传文件 - 文件路径不存在",
"E_FileExtensionForbidden": "此种类型的文件不能被识别-不合法的扩展名 ",
"Download":"下载",
"DownloadFile":"下载",
"T_DownloadFile":"下载文件",
"E_CannotDeleteRoot":"不能删除根文件",
"file":"文件夹",
"files":"文档",
"Cut":"剪切",
"Copy":"复制",
"Paste":"粘贴",
"E_CopyFile":"复制文件时出错",
"E_CopyFileInvalisPath":"不能复制文件 - 文件路径不存在",
"E_CopyDirInvalidPath":"不能复制目录- 路径不存在",
"E_CreateArchive":"创建压缩文件时出错."
}
zh.json
{
"FILES_ROOT": "~/Content/Images/uploaded",
"RETURN_URL_PREFIX": "",
"SESSION_PATH_KEY": "",
"THUMBS_VIEW_WIDTH": "",
"THUMBS_VIEW_HEIGHT": "",
"PREVIEW_THUMB_WIDTH": "",
"PREVIEW_THUMB_HEIGHT":"",
"MAX_IMAGE_WIDTH": "",
"MAX_IMAGE_HEIGHT": "",
"INTEGRATION": "tinymce4",
"DIRLIST": "../../../Admin/RoxyFileman/ProcessRequest?a=DIRLIST",
"CREATEDIR": "../../../Admin/RoxyFileman/ProcessRequest?a=CREATEDIR",
"DELETEDIR": "../../../Admin/RoxyFileman/ProcessRequest?a=DELETEDIR",
"MOVEDIR": "../../../Admin/RoxyFileman/ProcessRequest?a=MOVEDIR",
"COPYDIR": "../../../Admin/RoxyFileman/ProcessRequest?a=COPYDIR",
"RENAMEDIR": "../../../Admin/RoxyFileman/ProcessRequest?a=RENAMEDIR",
"FILESLIST": "../../../Admin/RoxyFileman/ProcessRequest?a=FILESLIST",
"UPLOAD": "../../../Admin/RoxyFileman/ProcessRequest?a=UPLOAD",
"DOWNLOAD": "../../../Admin/RoxyFileman/ProcessRequest?a=DOWNLOAD",
"DOWNLOADDIR": "../../../Admin/RoxyFileman/ProcessRequest?a=DOWNLOADDIR",
"DELETEFILE": "../../../Admin/RoxyFileman/ProcessRequest?a=DELETEFILE",
"MOVEFILE": "../../../Admin/RoxyFileman/ProcessRequest?a=MOVEFILE",
"COPYFILE": "../../../Admin/RoxyFileman/ProcessRequest?a=COPYFILE",
"RENAMEFILE": "../../../Admin/RoxyFileman/ProcessRequest?a=RENAMEFILE",
"GENERATETHUMB": "../../../Admin/RoxyFileman/ProcessRequest?a=GENERATETHUMB",
"DEFAULTVIEW": "list",
"FORBIDDEN_UPLOADS": "zip js jsp jsb mhtml mht xhtml xht php phtml php3 php4 php5 phps shtml jhtml pl sh py cgi exe application gadget hta cpl msc jar vb jse ws wsf wsc wsh ps1 ps2 psc1 psc2 msh msh1 msh2 inf reg scf msp scr dll msi vbs bat com pif cmd vxd cpl htpasswd htaccess",
"ALLOWED_UPLOADS": "",
"FILEPERMISSIONS": "",
"DIRPERMISSIONS": "",
"LANG": "auto",
"DATEFORMAT": "dd/MM/yyyy HH:mm",
"OPEN_LAST_DIR": "yes"
}
conf.json
汉化后
如果觉得汉化还不够彻底例如不想显示Roxy Fileman
可以修改RichEditor.cshtml或者~/Content/Roxy_Fileman/index.html
如果想了解nop是怎么实现Roxy Fileman请查阅Nop.Admin.Controllers.RoxyFilemanController
本文地址:http://www.cnblogs.com/yaoshangjin/p/7216884.html
本文为大波浪原创、转载请注明出处。