-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translation of creating-your-first-desktop.md #62
Conversation
|
||
Apps built with Electron are just web sites which are opened in an embedded Chromium web browser. In addition to the regular HTML5 APIs, these websites can use the full suite of Node.js modules and special Electron modules which give access to the operating system. | ||
使用 Electron 创建的应用其实就是一个在内嵌的 Chromium 浏览器中打开的 Web 网站,除了常规的 HTML5 APIs,还可以使用任意的 Node.js 模块和一些 Electron 特有的模块来访问操作系统。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个APIs的s是否考虑去掉?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
应该是有 APIs 这个复数写法的。wikipedia 中好多地方都是这种写法。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里开始我也觉得 HTML5 APIs 的写法比较常见,但搜了下也想了想还是觉得不加 s 比较妥当😂
@void-main 谢谢指正,都已修改~ |
@Zhangdroid 👍 👍 👍 强~ |
|
||
Apps built with Electron are just web sites which are opened in an embedded Chromium web browser. In addition to the regular HTML5 APIs, these websites can use the full suite of Node.js modules and special Electron modules which give access to the operating system. | ||
使用 Electron 创建的应用其实就是一个在内嵌的 Chromium 浏览器中打开的 Web 网站,除了常规的 HTML5 API,还可以使用任意的 Node.js 模块和一些 Electron 特有的模块来访问操作系统。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(这些网站)还可以使用任意的 Node.js 模块,并建议将前一句末尾的标点改为句号,这样主语更明确一些,也与原文更一致些。
|
||
Extract its contents in a directory of your choice. Judging by the file structure, you would never guess this is a desktop application and not just a simple website. | ||
把它解压到你想要的地方。从项目结构上看,你一定猜不到这不仅仅是一个简单的网站,而是一个桌面应用程序。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个有点句式杂糅了吧,有『不仅仅...而且是...』和『不仅仅...还是...』,没有『不仅仅...而是』这种语法。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我也觉得挺别扭的,但小学语文没学好,不知道要怎么表达😂😂我再想想~
@sqrthree 感谢~已改 |
|
||
|
||
我们一会儿会更仔细的看看这些有趣的文件,了解它们的原理。不过,先让我们把应用跑起来吧。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感觉这里使用『不过』怪怪的,😂你觉得呢?改成『不过在此之前』或者是『不过(现在)』如何?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已改~
// Keep a global reference of the window object, if you don't, the window will | ||
// be closed automatically when the JavaScript object is garbage collected. | ||
// 保持一个对于 window 对象的全局引用,不然,当 JavaScript 被 GC, | ||
// window 会被自动地关闭 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GC
这里指的是被 "垃圾回收机制" 回收,window
指的是窗口吧。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
嗯嗯,直接照搬这里的,没仔细看,已改😂😂
@Zhangdroid 翻译的很棒 👍 辛苦啦,同时也感谢 @void-main 和 @sqrthree 两位审核译者的意见和建议。 |
No description provided.