Skip to content

Commit

Permalink
feat(i18n:zh_CN): add Chinese translation
Browse files Browse the repository at this point in the history
  • Loading branch information
EnochGao committed May 9, 2024
1 parent 79b4d06 commit b20e712
Showing 1 changed file with 78 additions and 80 deletions.
158 changes: 78 additions & 80 deletions packages/viewer/src/bindings/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,129 +167,127 @@ const translations = {
Book_Mode: "图书模式",
Render_All_Pages: "渲染所有页面",
Apply: "应用",
Supported_document_types_: "Supported document types:",
HTML_documents_: "HTML documents, with CSS for paged media",
Book_like_publications_: "Book-like publications, with Table of Contents",
Supported_document_types_: "支持的文档类型:",
HTML_documents_: "带有分页媒体的css HTML 文档",
Book_like_publications_: "类似书籍的出版物,带有目录",
Web_publications_:
"Web publications (a collection of HTML documents): specify URL of the first HTML or the manifest file.",
"Web出版物(一组HTML文档集合): 指定第一个HTML或声明文件的URL。",
Unzipped_EPUB_:
"Unzipped EPUB: specify URL of OPF file or top directory of the unzipped EPUB files.",
Notes_: "Notes:",
"解压缩EPUB:指定OPF文件的URL或解压缩后EPUB文件的顶级目录。",
Notes_: "注意:",
GitHub_:
"GitHub and Gist URLs can be directly specified. Vivliostyle loads raw github/gist content when such URL is specified.",
"可以直接指定GitHub和Gist网址。当指定了此类网址时,Vivliostyle会加载原始GitHub/Gist的内容。",
WARN_Mixed_Content_:
"⚠️Mixed Content (“http:” URL is specified to “https:” Vivliostyle Viewer) is usually blocked by browser.",
"⚠️混合内容(如果“http:”的URL被指定为“https:”的Vivliostyle Viewer)通常会被浏览器屏蔽。",
WARN_Cross_Origin_:
"⚠️Cross-Origin (request to different domain) is usually blocked by browser unless the server is configured to allow Cross-Origin Resource Sharing (CORS).",
URL_parameter_options_: "URL parameter options:",
document_URL: "document URL",
default_: "(default)",
for_Book_like_: "for Book-like publications",
"⚠️除非服务器设置为允许跨域请求(CORS),否则对不同域的请求通常会被浏览器阻止。",
URL_parameter_options_: "URL 参数选项:",
document_URL: "文档 URL",
default_: "(默认)",
for_Book_like_: "用于类似图书出版物",
DESC_Book_Mode_:
"When an HTML document URL is specified, a series of HTML documents linked from the publication manifest or Table of Contents (e.g., marked up with '<nav role=\"doc-toc\">') are automatically loaded.",
for_single_HTML_: "for single HTML documents",
for_Print_:
"for Print (all pages printable, page count works as expected)",
for_Read_: "for Read (quick loading with rough page count)",
Page_Spread_View: "Page Spread View",
Spread_view: "Spread view",
Single_page_view: "Single page view",
Auto_spread_view: "Auto spread view",
additional_stylesheet_URL: "additional (custom) stylesheet URL",
user_stylesheet_URL: "user stylesheet URL",
"当指定一个HTML文档URL, 来自出版物清单或者目录(例如, 带有 '<nav role=\"doc-toc\">'标记)一系列的html文档链接会自动被加载。",
for_single_HTML_: "用户单个 HTML 文档",
for_Print_: "为了打印(所有页面均可被打印,页数计算也是正常的)",
for_Read_: "为了阅读(快速加载粗略页数计算)",
Page_Spread_View: "页面视图延展",
Spread_view: "延展视图",
Single_page_view: "单页视图",
Auto_spread_view: "自动延展视图",
additional_stylesheet_URL: "附加 (自定义) 样式表 URL",
user_stylesheet_URL: "用户样式表 URL",
Settings: "设置",
DESC_Options_also_1: "Options can also be set in the ",
DESC_Options_also_2: " panel.",
See_documentation_: "更所信息,请查看文档:",
DESC_Options_also_1: "选项也可在",
DESC_Options_also_2: "面板设置。",
See_documentation_: "有关更多详细信息,请参阅文档:",
HREF_User_Guide: "../docs/#/user-guide",
Vivliostyle_User_Guide: "Vivliostyle User Guide",
Vivliostyle_User_Guide: "Vivliostyle 用户指南",
HREF_Vivlistyle_Home: "https://vivliostyle.org/",
navigate_to_left: "navigate to left",
navigate_to_right: "navigate to right",
navigate_to_left: "向左导航",
navigate_to_right: "向右导航",
Highlight_: "高亮…",
Marker_Yellow: "Marker: Yellow",
Marker_Red: "Marker: Red",
Marker_Green: "Marker: Green",
Marker_Yellow: "标记: 黄",
Marker_Red: "标记: 红",
Marker_Green: "标记: 绿",
OK: "确认",
Cancel: "取消",
Delete: "删除",
TIP_Settings: "Settings (S), Double click/type to pin",
TIP_Settings: "设置 (S),双击/双敲击键以固定",
Page_View_Mode: "界面视图模式",
Auto: "自动",
Single_page: "单页",
Spread: "Spread",
TIP_Book_Mode:
"On: for Book-like publications, with Table of Contents\nOff: for single HTML documents",
Spread: "延展",
TIP_Book_Mode: "On: 为了类似图书出版物带有目录\nOff: 为了单 HTML 文档",
TIP_Render_All_Pages:
"On: for Print (all pages printable, page count works)\nOff: for Read (quick loading with rough page count)",
Restore_View: "恢复视图",
TIP_Restore_View: "Restore view settings when reopening documents",
"On: 为了打印(所有页面可打印, 页面计数正常工作)\nOff: 为了阅读 (快速加载粗略计数)",
Restore_View: "恢复阅览状态",
TIP_Restore_View: "重新打开文档时恢复视图设置",
Custom_Style_Settings: "自定义样式设置",
Page_Size: "页面大小",
Default: "默认",
DESC_page_size_default: "(=Auto unless specified elsewhere)",
DESC_page_size_auto: "(use entire window area)",
DESC_page_size_default: "(=Auto 除非另外设置)",
DESC_page_size_auto: "(使用整个窗口面积)",
Preset: "预设",
Landscape: "横向",
Custom_size: "自定义大小",
Custom_size: "自定义尺寸",
Width: "宽度",
Height: "高度",
More_: "详细...",
Crop_Marks: "Crop Marks",
Crop_marks: "Crop marks",
Bleed: "Bleed",
Crop_offset: "Crop offset",
Page_Margins: "Page Margins",
DESC_page_margin_default: "(=10% unless specified elsewhere)",
Set_page_margin_to_0: "Set page margin to 0",
Custom_margin: "Custom margin",
Top_Right_Bottom_Left: "Top/Right/Bottom/Left",
Set_first_page_margin_to_0: "Set first page margin to 0",
Force_html_body_margin_to_0: "Force html/body margin to 0",
Page_Breaks: "Page Breaks",
Default_widows_orphans_control: "Default widows/orphans control",
Allow_widows_and_orphans: "Allow widows and orphans",
Avoid_page_break_inside_paragraph: "Avoid page break inside paragraph",
Images: "Images",
Set_image_max_size_to_fit_page: "Set image max-size to fit page",
Keep_aspect_ratio: "Keep aspect ratio",
Crop_Marks: "裁剪标记",
Crop_marks: "裁剪标记",
Bleed: "出血",
Crop_offset: "裁剪偏移",
Page_Margins: "页面边距",
DESC_page_margin_default: "(=10% 除非另外设置)",
Set_page_margin_to_0: "设置页面边距为 0",
Custom_margin: "自定义边距",
Top_Right_Bottom_Left: "顶部/右侧/底部/左侧",
Set_first_page_margin_to_0: "设置第一页的边距为 0",
Force_html_body_margin_to_0: "强制 html/body 边距为 0",
Page_Breaks: "分页",
Default_widows_orphans_control: "默认 widows/orphans 控制",
Allow_widows_and_orphans: "允许产生widows 和 orphans",
Avoid_page_break_inside_paragraph: "避免段落内出现分页",
Images: "图片",
Set_image_max_size_to_fit_page: "图像最大尺寸设置为适合页面",
Keep_aspect_ratio: "保持长宽比",
Text: "Text",
Font_size: "字体大小",
Base_font_size: "Base font-size",
Base_line_height: "Base line-height",
Base_font_family: "Base font-family",
Custom_Style_Priority: "Custom Style Priority",
Set_as_user_stylesheet: "Set as user stylesheet",
DESC_user_stylesheet: "(lower priority unless !important)",
Force_override_document_style: "Force override document style",
Base_font_size: "基本 font-size",
Base_line_height: "基本 line-height",
Base_font_family: "基本 font-family",
Custom_Style_Priority: "自定义 Style 属性",
Set_as_user_stylesheet: "设置为用户样式表",
DESC_user_stylesheet: "(低优先级除非 !important)",
Force_override_document_style: "强制覆盖document的样式",
important_: "(!important)",
Edit_CSS: "编辑 CSS",
Dont_edit_: "不要在 /*<viewer>*/ 和 /*</viewer>*/之间编辑",
Reset_Custom_Style: "重置自定义样式",
Reset_all_to_default: "重置所有",
TIP_ToC: "Table of Contents (T), Double click/type to pin",
TIP_Marker: "Marker (M), Double click/type to pin",
Marks_and_Memos: "Marks and Memos",
Remove_All: "Remove All",
TIP_ToC: "目录 (T), 双击/双敲击键以固定",
TIP_Marker: "标记 (M), 双击/双敲击键以固定",
Marks_and_Memos: "标记和备忘录",
Remove_All: "移除所有",
Remove: "移除",
Memo: "Memo",
TIP_Find: "查找 (Ctrl/Cmd+F)",
TIP_Find_Previous: "Find Previous (Shift+Enter)",
TIP_Find_Next: "Find Next (Enter)",
TIP_Find_Previous: "查找上一个 (Shift+Enter)",
TIP_Find_Next: "查找下一个 (Enter)",
Find: "查找",
TIP_First_Page: "首页 (Home)",
TIP_Previous_Page: "上一页 (↑)",
TIP_Next_Page: "下一页 (↓)",
TIP_Last_Page: "最后一页(End)",
TIP_Go_to_Page: "Go to Page… (G)",
TIP_Go_to_Page: "跳转到… (G)",
Total_pages: "总页数",
TIP_Text_Smaller: "Text: Smaller (-)",
TIP_Text_Larger: "Text: Larger (+)",
TIP_Text_Default_Size: "Text: Default Size (0)",
TIP_Text_Smaller: "文本: 小 (-)",
TIP_Text_Larger: "文本: 大 (+)",
TIP_Text_Default_Size: "文本: 默认尺寸 (0)",
TIP_Zoom_Out: "缩小 (O)",
TIP_Zoom_In: "放大 (I)",
TIP_Zoom_Actual_Size: "Zoom: Actual Size (1)",
TIP_Zoom_Fit_to_Screen: "Zoom: Fit to Screen (F)",
TIP_Zoom_Actual_Size: "缩放: 实际大小 (1)",
TIP_Zoom_Fit_to_Screen: "缩放: 适应屏幕 (F)",
TIP_Print: "打印 (P)",
},
},
Expand Down

0 comments on commit b20e712

Please sign in to comment.