找到Mysql Workbench安装目录 如:D:\soft\MySQL\MySQL Workbench 8.0 CE\
进入data目录:D:\soft\MySQL\MySQL Workbench 8.0 CE\data 里面有main_menu.xml文件,将汉化文件覆盖即可
main_menu.xml汉化内容
<data>
<value type="list" content-type="object" content-struct-name="app.MenuItem">
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.file">
<value type="string" key="accessibilityName">Filevalue>
<value type="string" key="name">filevalue>
<value type="string" key="caption">_文件value>
<value type="string" key="itemType">cascadevalue>
<value type="list" key="subItems" content-type="object" content-struct-name="app.MenuItem">
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.file.new1">
<link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.filelink>
<value type="string" key="accessibilityName">New Documentvalue>
<value type="string" key="name">new_documentvalue>
<value type="string" key="command">plugin:wb.file.newDocumentvalue>
<value type="string" key="itemType">actionvalue>
<value type="string" key="shortcut">Modifier+Nvalue>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.file.file_new">
<link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.filelink>
<value type="string" key="accessibilityName">_New Query Tab...value>
<value type="string" key="caption">_新的查询标签页...value>
<value type="string" key="context">homevalue>
<value type="string" key="name">new_query_tabvalue>
<value type="string" key="command">builtin:query.newQueryNoconnectionvalue>
<value type="string" key="itemType">actionvalue>
<value type="string" key="shortcut">Modifier+Tvalue>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.file.new_sql">
<link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.filelink>
<value type="string" key="accessibilityName">New Query Tabvalue>
<value type="string" key="name">query.newFilevalue>
<value type="string" key="context">*queryvalue>
<value type="string" key="caption">新建查询标签页value>
<value type="string" key="itemType">actionvalue>
<value type="string" key="shortcut">Modifier+Tvalue>
<value type="string" key="command">builtin:query.newFilevalue>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.file.open">
<link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.filelink>
<value type="string" key="accessibilityName">_Open Model...value>
<value type="string" key="caption">_打开模型value>
<value type="string" key="name">open_documentvalue>
<value type="string" key="command">plugin:wb.file.openModelvalue>
<value type="string" key="itemType">actionvalue>
<value type="string" key="shortcut">Modifier+Ovalue>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.file.include">
<link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.filelink>
<value type="string" key="accessibilityName">_Include Model...value>
<value type="string" key="caption">_导入模型value>
<value type="string" key="context">*modelvalue>
<value type="string" key="name">include_modelvalue>
<value type="string" key="command">plugin:wb.mysql.includeModelvalue>
<value type="string" key="itemType">actionvalue>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.file.open_script">
<link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.filelink>
<value type="string" key="accessibilityName">Open SQL Script...value>
<value type="string" key="caption">_打开SQL脚本...value>
<value type="string" key="context">homevalue>
<value type="string" key="name">open_scriptvalue>
<value type="string" key="command">builtin:query.openScriptNoConnectionvalue>
<value type="string" key="itemType">actionvalue>
<value type="string" key="shortcut">Modifier+Shift+Ovalue>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.file.open_script_into">
<link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.filelink>
<value type="string" key="accessibilityName">_Open SQL Script...value>
<value type="string" key="caption">_打开SQL脚本...value>
<value type="string" key="context">*queryvalue>
<value type="string" key="name">open_script_intovalue>
<value type="string" key="command">builtin:query.openFilevalue>
<value type="string" key="itemType">actionvalue>
<value type="string" key="shortcut">Modifier+Shift+Ovalue>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.file.open_recent">
<link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.filelink>
<value type="string" key="accessibilityName">Open Recentvalue>
<value type="string" key="name">open_recentvalue>
<value type="string" key="caption">打开最近文件value>
<value type="string" key="itemType">cascadevalue>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.separator.file.open_recent">
<value type="string" key="itemType">separatorvalue>
<value type="string" key="accessibilityName">Separatorvalue>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.file.run_script">
<link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.filelink>
<value type="string" key="accessibilityName">Run SQL Scriptvalue>
<value type="string" key="caption">_执行SQL脚本...value>
<value type="string" key="context">*queryvalue>
<value type="string" key="name">run_scriptvalue>
<value type="string" key="command">plugin:wb.sqlide.runScriptvalue>
<value type="string" key="itemType">actionvalue>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.separator.file.run_script">
<value type="string" key="context">*queryvalue>
<value type="string" key="itemType">separatorvalue>
<value type="string" key="accessibilityName">Separatorvalue>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.file.closesql">
<link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.filelink>
<value type="string" key="accessibilityName">Close Connection Tabvalue>
<value type="string" key="name">closetabvalue>
<value type="string" key="caption">_关闭连接标签页value>
<value type="string" key="context">*queryvalue>
<value type="string" key="itemType">actionvalue>
<value type="string" key="command">builtin:close_tabvalue>
<value type="string" key="shortcut">Modifier+Shift+Wvalue>
<value type="string" key="platform">linux,macosxvalue>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.file.closesqlw">
<link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.filelink>
<value type="string" key="accessibilityName">Close Connection Tabvalue>
<value type="string" key="name">closetabvalue>
<value type="string" key="caption">_关闭连接标签页value>
<value type="string" key="context">*queryvalue>
<value type="string" key="itemType">actionvalue>
<value type="string" key="command">builtin:close_tabvalue>
<value type="string" key="shortcut">Control+Shift+F4value>
<value type="string" key="platform">windowsvalue>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.file.close">
<link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.filelink>
<value type="string" key="accessibilityName">Close Tabvalue>
<value type="string" key="name">closetabvalue>
<value type="string" key="caption">_关闭标签页value>
<value type="string" key="itemType">actionvalue>
<value type="string" key="command">builtin:closetabvalue>
<value type="string" key="shortcut">Modifier+Wvalue>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.file.closesqled">
<link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.filelink>
<value type="string" key="accessibilityName">Close Tabvalue>
<value type="string" key="name">closeeditorvalue>
<value type="string" key="caption">_关闭标签页value>
<value type="string" key="context">*queryvalue>
<value type="string" key="itemType">actionvalue>
<value type="string" key="command">builtin:close_editorvalue>
<value type="string" key="shortcut">Modifier+Wvalue>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.separator.file.close">
<value type="string" key="itemType">separatorvalue>
<value type="string" key="context">*modelvalue>
<value type="string" key="accessibilityName">Separatorvalue>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.separator.file.close_ ">
<value type="string" key="itemType">separatorvalue>
<value type="string" key="context">*queryvalue>
<value type="string" key="accessibilityName">Separatorvalue>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.file.save">
<link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.filelink>
<value type="string" key="accessibilityName">Save Documentvalue>
<value type="string" key="context">*modelvalue>
<value type="string" key="name">save_documentvalue>
<value type="string" key="caption">_保存模型value>
<value type="string" key="command">plugin:wb.file.saveModelvalue>
<value type="string" key="itemType">actionvalue>
<value type="string" key="shortcut">Modifier+Svalue>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.file.savesql">
<link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.filelink>
<value type="string" key="accessibilityName">Save Scriptvalue>
<value type="string" key="context">*queryvalue>
<value type="string" key="name">save_sqlvalue>
<value type="string" key="caption">_保存脚本value>
<value type="string" key="command">builtin:query.saveFilevalue>
<value type="string" key="itemType">actionvalue>
<value type="string" key="shortcut">Modifier+Svalue>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.file.save_as">
<link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.filelink>
<value type="string" key="accessibilityName">Save Model Asvalue>
<value type="string" key="context">*modelvalue>
<value type="string" key="caption">保存模型为...value>
<value type="string" key="name">save_document_asvalue>
<value type="string" key="command">plugin:wb.file.saveModelAsvalue>
<value type="string" key="itemType">actionvalue>
<value type="string" key="shortcut">Modifier+Shift+Svalue>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.file.savesql_as">
<link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.filelink>
<value type="string" key="accessibilityName">Save Script Asvalue>
<value type="string" key="context">*queryvalue>
<value type="string" key="caption">保存脚本为...value>
<value type="string" key="name">save_sql_asvalue>
<value type="string" key="command">builtin:query.saveFileAsvalue>
<value type="string" key="itemType">actionvalue>
<value type="string" key="shortcut">Modifier+Shift+Svalue>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.file.revert_sql">
<link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.filelink>
<value type="string" key="accessibilityName">Revert to Savedvalue>
<value type="string" key="context">*queryvalue>
<value type="string" key="caption">恢复至上次保存value>
<value type="string" key="name">revert_sqlvalue>
<value type="string" key="command">builtin:query.revertvalue>
<value type="string" key="itemType">actionvalue>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.separator.file.save_as">
<value type="string" key="itemType">separatorvalue>
<value type="string" key="context">*queryvalue>
<value type="string" key="platform">linux,windowsvalue>
<value type="string" key="accessibilityName">Separatorvalue>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.separator.file.impor">
<value type="string" key="itemType">separatorvalue>
<value type="string" key="context">*modelvalue>
<value type="string" key="accessibilityName">Separatorvalue>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.file.import">
<link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.filelink>
<value type="string" key="accessibilityName">Importvalue>
<value type="string" key="name">importvalue>
<value type="string" key="context">*modelvalue>
<value type="string" key="caption">_导入value>
<value type="string" key="itemType">cascadevalue>
<value type="list" key="subItems" content-type="object" content-struct-name="app.MenuItem">
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.file.import.mysql.sql">
<link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.file.importlink>
<value type="string" key="accessibilityName">Importvalue>
<value type="string" key="caption">逆向生成MySQL创建脚本value>
<value type="string" key="name">mysql_import_sqlvalue>
<value type="string" key="command">plugin:db.mysql.plugin.import.sqlvalue>
<value type="string" key="itemType">actionvalue>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.file.import.sep">
<value type="string" key="itemType">separatorvalue>
<value type="string" key="accessibilityName">Separatorvalue>
value>
value>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.file.export">
<link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.filelink>
<value type="string" key="accessibilityName">Exportvalue>
<value type="string" key="name">exportvalue>
<value type="string" key="caption">_导出value>
<value type="string" key="itemType">cascadevalue>
<value type="string" key="context">*modelvalue>
<value type="list" key="subItems" content-type="object" content-struct-name="app.MenuItem">
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.file.export.sql_script">
<link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.file.exportlink>
<value type="string" key="accessibilityName">Export SQL Scriptvalue>
<value type="string" key="name">export_sql_scriptvalue>
<value type="string" key="caption">正向工程SQL创建脚本...value>
<value type="string" key="command">plugin:db.mysql.plugin.export.sqlvalue>
<value type="string" key="itemType">actionvalue>
<value type="string" key="shortcut">Modifier+Shift+Gvalue>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.file.export.sep">
<value type="string" key="itemType">separatorvalue>
<value type="string" key="accessibilityName">Separatorvalue>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.file.export.png">
<link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.file.exportlink>
<value type="string" key="accessibilityName">Export as PNGvalue>
<value type="string" key="caption">导出为PNG...value>
<value type="string" key="name">export_image_pngvalue>
<value type="string" key="command">plugin:wb.export.exportPNGvalue>
<value type="string" key="itemType">actionvalue>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.file.export.svg">
<link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.file.exportlink>
<value type="string" key="accessibilityName">Export as SVGvalue>
<value type="string" key="caption">导出为SVG...value>
<value type="string" key="name">export_image_svgvalue>
<value type="string" key="command">plugin:wb.export.exportSVGvalue>
<value type="string" key="itemType">actionvalue>
value>
<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.file.export.pdf">
<link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.file.exportlink>
<value type="string" key="accessibilityName">Export as Single Page PDFvalue>
<value type="string" key="caption">导出为单页PDF...value>
<value type="string" key="name">export_image_pdfvalue>
<value type="string" key="command">plugin:wb.export.exportPDFvalue>
<value type="string" key="itemType">actionvalue>
value>
data>