Codiad 的中文翻译

发布日期:分类:Web 相关 Codiad 的中文翻译无评论
时效性提醒:本文首次编写发布于10 年前。

Codiad以前已经介绍过了,是一个在线编辑你的网站的好工具,但没有中文,所以我写了个Codiad的中文翻译.
效果图:

PS:此中文翻译已被Codiad官方采纳,现在到Codiad官网就可以下载含有此中文翻译的Codiad.

添加中文翻译的方法:
1.在languages/code.php中添加这样一行:

    "cn" => "简体中文",

这时这个文件大概这样:

<?php
$languages = array(
    "cn" => "简体中文",
    "en" => "english",
    "fr" => "français",
    "it" => "italiano",
    "ru" => "русский",
    "de" => "deutsch",
    "es" => "español",
    "pt" => "português",
    "ro" => "romanian",
    "hu" => "magyar",
    "sv" => "swedish"
);
?>

2.新建文件languages/code.php
内容如下:

<?php

$lang = array(
   "Note: This will only work if your Git repo DOES NOT require interactive authentication and your server has git installed." => "注意: 只有你的 Git repo 不需要认证并且服务器安装了git才能使用.",
   "Would you like to overwrite or duplicate the following:" => "您想复制并覆盖这些文件吗: ",
   "Prefix"                                              => "前缀",
   "Copy"                                                => "复制",
   "Substring"                                           => "包含",
   "Collapse"                                            => "折叠",
   "Regular Expression"                                  => "正则表达式",
   "Search File Contents"                                => "搜索文件内容",
   "Inline Preview"                                      => "逐行查看",
   "Upload Files"                                        => "上传文件",
   "Search Files:"                                       => "搜索文件",
   "In:"                                                 => "搜索范围:",
   "Username"                                            => "用户名",
   "Create Account"                                      => "新建用户",
   "Workspace Projects"                                  => "工作空间项目",
   "Search"                                              => "搜索",
   "Workspace Projects"                                  => "工作空间项目",
   "Name:"                                               => "名称: ",
   "Confirm Project Deletion"                            => "确认删除项目",
   "Last update was done by "                            => "最后更新由 ",
   "Project Access For "                                 => "可以访问项目的用户 ",
   "Account:"                                            => "用户: ",
   "Drag Files Or Click Here To Upload"                  => "将文件拖动至此或点击这里上传",
   "Complete!"                                           => "完成!",
   "File"                                                => "文件",
   "Directory"                                           => "文件夹",
   "Close Uploader"                                      => "关闭上传器",
   "Plugin List"                                         => "插件列表",
   "Plugin Name"                                         => "插件名称",
   "Version"                                             => "版本",
   "Author"                                              => "作者",
   "Active"                                              => "活动",
   "Reload Codiad"                                       => "重载 Codiad",
   "Plugin Update Check"                                 => "插件更新检查",
   "Your Version"                                        => "当前版本",
   "Latest Version"                                      => "最新版本",
   "Open"                                                => "打开",
   "Project Name"                                        => "项目名称",
   "Path"                                                => "路径",
   "New Project"                                         => "新项目",
   "Folder Name or Absolute Path"                        => "路径",
   "Git Repository"                                      => "Git仓库",
   "Branch"                                              => "分支",
   "...from Git Repo"                                    => "... 从Git创建",
   "Create Project"                                      => "新建工程",
   "Delete Project Files"                                => "删除项目文件",
   "Follow Symbolic Links "                              => "跟随符合链接",
   "You can not check for updates"                       => "你无法检查更新",
   "Congratulation, Your System Is Up To Date."          => "恭喜,您的系统是最新的.",
   "Download Codiad"                                     => "下载 Codiad",
   "Changes On Codiad"                                   => "更新说明",
   "User List"                                           => "用户列表",
   "New Account"                                         => "新用户",
   "Access All Projects"                                 => "可以访问所以项目",
   "Only Selected Projects"                              => "可以访问选择的项目",
   "Confirm"                                             => "确认",
   "Confirm User Deletion"                               => "确认删除用户",
   "Account: "                                           => "账号: ",
   "New Password"                                        => "新密码",
   "Confirm Password"                                    => "重复密码",
   "Change"                                              => "更改",
   "&apos;s Password"                                    => "的密码",
   "Overwrite Original"                                  => "覆盖",
   "Create Duplicate"                                    => "创建副本",
   "Create"                                              => "创建",
   "Continue"                                            => "继续",
   "Current Project"                                     => "当前项目",
   "Search Files"                                        => "搜索文件",
   "Are You Sure You Wish To Delete The Following:"      => "确认删除这些文件: ",
   "Name"                                                => "名称",
   "Edit File Extensions"                                => "编辑 文件扩展名",
   "Extension"                                           => "扩展名",
   "New Extension"                                       => "新扩展名",
   "Save Scheme"                                         => "保存方案",
   "Mode"                                                => "模式",
   "New File"                                            => "新建文件",
   "New Folder"                                          => "新建文件夹",
   "Upload Files"                                        => "上传文件",
   "Paste"                                               => "粘贴",
   "Rename"                                              => "重命名",
   "Rename Project"                                      => "重命名项目",
   "Delete"                                              => "删除",
   "Download"                                            => "下载",
   "Rescan"                                              => "刷新",
   "No Results Returned"                                 => "无结果",
   "Directory not found."                                => "文件夹未找到",
   "Wrong data send"                                     => "数据发送错误",
   "Could not pack the folder, zip-extension missing"    => "无法压缩文件夹,缺少ZIP支持",
   "Project List"                                        => "项目列表",
   "Save"                                                => "保存",
   "Save All"                                            => "全部保存",
   "Tab Size"                                            => "缩进大小",
   "Soft Tabs"                                           => "空格代替制表符",
   "Update Check"                                        => "检查更新",
   "Color Tool"                                          => "颜色工具",
   "Terminal"                                            => "终端",
   "Projects"                                            => "项目",
   "Users"                                               => "用户",
   "Settings"                                            => "设置",
   "Password"                                            => "密码",
   "Logout"                                              => "退出",
   "Split"                                               => "分割视图",
   "Editor Settings"                                     => "编辑器设置",
   "Theme"                                               => "主题",
   "Font Size"                                           => "字体大小",
   "Highlight Active Line"                               => "高亮当前行",
   "Indent Guides"                                       => "显示缩进",
   "On"                                                  => "开",
   "Off"                                                 => "关",
   "Print Margin"                                        => "显示边线",
   "Show"                                                => "显示",
   "Hide"                                                => "隐藏",
   "No Wrap"                                             => "不自动折行",  
   "Wrap Lines"                                          => "自动折行",
   "Right Sidebar Trigger"                               => "右边栏打开方式",
   "Hover"                                               => "悬停",
   "Click"                                               => "点击",
   "Close"                                               => "关闭",
   "On"                                                  => "开",
   "Off"                                                 => "关",
   "Yes"                                                 => "是",
   "No"                                                  => "否",
   "Split Horizontally"                                  => "水平分割",
   "Split Vertically"                                    => "垂直风格",
   "Merge All"                                           => "合并所有",
   "Explore"                                             => "文件",
   "File extensions are saved successfully."             => "文件扩展名规则保存成功",
   "You Must Choose A Value"                             => "必须选择一个值",
   "Warning: File Currently Opened By: "                 => "警告,文件已被其它用户打开: ",
   "Close Unsaved File?"                                 => "关闭而不保存文件?",
   "Save & Close"                                        => "保存并关闭",
   "Discard Changes"                                     => "不保存",
   "Cancel"                                              => "取消",
   "Recovered unsaved content for: "                     => "覆盖未保存的内容: ",
   "You have unsaved files."                             => "你有未保存的文件.",
   "No Open Files to save"                               => "没有打开的文件需要保存",
   "No Open Files or Selected Text"                      => "没有打开的文件或选中的文字",
   "No suggestion selected. Might be a bug."             => "没有建议被选中,这可能是一个bug.",
   "More than one suggestions selected. Might be a bug." => "多个建议被选中,这可能是一个bug.",
   "Insert HEX"                                          => "插入HEX",
   "Insert RGB"                                          => "插入RGB",
   "Find:"                                               => "查找:",
   "Replace:"                                            => "替换:",
   "Find"                                                => "查找",
   "Replace"                                             => "替换",
   "Replace ALL"                                         => "替换所有",
   "Project Loaded"                                      => "项目已加载",
   "File saved"                                          => "文件已保存",
   "Copied to Clipboard"                                 => "复制到剪贴板",
   "Nothing in Your Clipboard"                           => "剪贴板是空的",
   "Cannot Paste Directory Into Itself"                  => "不能粘贴文件夹到它自己中",
   "File could not be saved"                             => "文件无法保存",
   "Preview"                                             => "预览",
   "Plugins"                                             => "插件",
   "Administration"                                      => "管理",
   "System"                                              => "系统",
   "Marketplace"                                         => "应用中心",
   "Filemanager Trigger"                                 => "文件打开方式",
   "Extensions"                                          => "扩展名设置",
   "Account"                                             => "账号",
   "File Type:"                                          => "文件类型",
   "Folder Name Or Absolute Path"                        => "路径",
   "Contacting GitHub..."                                => "正在连接GitHub...",
   "All"                                                 => "全部",
   "Themes"                                              => "主题",
   "Installed"                                           => "已安装",
   "Available"                                           => "可用",
   "Install Plugin"                                      => "安装插件",
   "Delete Plugin"                                       => "删除插件",
   "Install Theme"                                       => "安装主题",
   "Delete Theme"                                        => "删除主题",
   "Install Manually"                                    => "手动安装"
);
?>

好了,以后在登录界面把语言调成简体中文就行了.

作者:WuSiYu

学生,Web开发者,智能硬件&IOT爱好者

发表评论

您的电子邮箱地址不会被公开。 必填项已用 * 标注