Skip to content
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

Merged
merged 6 commits into from
Jan 14, 2016
Merged

Conversation

Zhangdroid
Copy link
Contributor

No description provided.


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 特有的模块来访问操作系统。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个APIs的s是否考虑去掉?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

应该是有 APIs 这个复数写法的。wikipedia 中好多地方都是这种写法。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里开始我也觉得 HTML5 APIs 的写法比较常见,但搜了下也想了想还是觉得不加 s 比较妥当😂

@Zhangdroid
Copy link
Contributor Author

@void-main 谢谢指正,都已修改~

@void-main
Copy link
Contributor

@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 特有的模块来访问操作系统。
Copy link
Member

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.
把它解压到你想要的地方。从项目结构上看,你一定猜不到这不仅仅是一个简单的网站,而是一个桌面应用程序。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个有点句式杂糅了吧,有『不仅仅...而且是...』和『不仅仅...还是...』,没有『不仅仅...而是』这种语法。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我也觉得挺别扭的,但小学语文没学好,不知道要怎么表达😂😂我再想想~

@Zhangdroid
Copy link
Contributor Author

@sqrthree 感谢~已改



我们一会儿会更仔细的看看这些有趣的文件,了解它们的原理。不过,先让我们把应用跑起来吧。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感觉这里使用『不过』怪怪的,😂你觉得呢?改成『不过在此之前』或者是『不过(现在)』如何?

Copy link
Contributor Author

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 会被自动地关闭
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GC 这里指的是被 "垃圾回收机制" 回收,window 指的是窗口吧。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

嗯嗯,直接照搬这里的,没仔细看,已改😂😂

@Glowin
Copy link
Member

Glowin commented Jan 14, 2016

@Zhangdroid 翻译的很棒 👍 辛苦啦,同时也感谢 @void-main@sqrthree 两位审核译者的意见和建议。

Glowin added a commit that referenced this pull request Jan 14, 2016
《通过 Electron 开发一个简单地桌面应用》翻译完毕
@Glowin Glowin merged commit 9d6d5e0 into xitu:master Jan 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants