• 9657阅读
  • 7回复

[建议]书中一些翻译错误 [复制链接]

上一主题 下一主题
离线dbzhang800
 

只看楼主 倒序阅读 楼主  发表于: 2011-06-27
首先感谢 译者 为大家提供这么一本好书 ^_^

但上周看本书第九章时,发觉有些地方翻译似乎有点小问题。故一并列出,和大家共同探讨。

(希望对下次重印时有些帮助)


page 166

QThreadPool::globalInstance()方法会向Qt的全局对象 QThreadPool 返回一个指针,

The QThreadPool::globalInstance() method returns a pointer to Qt’s global QThreadPool object,


Page 214

这个模型子类用 QAbstractItemModel::data() 方法取代了 Qt::DisplayRole,以保证...

This model subclass simply replaces the QAbstractItemModel::data() method for the Qt::DisplayRole and ensures that...

注解:是子类中的实现取代或覆盖 QAbstractItemModel::data()吧  ?


Page 222

这个连接保证了无论何时光标被移除(无论是通过键盘还是鼠标),都调用这个槽。

This connection ensures that whenever the cursor is moved (whether by keyboard or mouse), the slot is called.

注解:笔误? “移除” ==> move


page 227

我们还可以使用 QTextEdit 子类化 QPlainTextEdit,它更为便捷,因为它提供了...

We could, of course, subclass QPlainTextEdit, but using QTextEdit is more convenient since it provides many useful slots—such as QTextEdit::setFontItalic()—that are not provided by QPlainTextEdit.

注解:这个?... 怎么解释


page 231

一个可选方法是使用 sender(),以进一步使用SignalMapper;...

An alternative to using sender() is to use a QSignalMapper; that would provide better encapsulation, at the cost of slightly increasing the size of the code.

注解:是替代谁?

page 231

当用户启动上下文菜单(通过右键点击或通过使用一个平台定义的键序列)时将在构造函数中建立一个信号-槽连接,并调用这个槽。

When the user invokes the context menu (by right-clicking or by using a platform-specific key sequence), as a result of a signal–slot connection made in the constructor, this slot is called.

注解:何时建立连接


page 231

最后弹出菜单,使用Menu::exec()把相对窗口部件的位置转换为相对屏幕(也就是全局)的位置。

At the end we pop up the menu, having converted the widget-relative position into the screen-relative (i.e., global) position, used by QMenu::exec().


注解: QMenu::exec() 使用转换以后的全局位置


page 242

这个方法会创建一个QString的HTML,然后...

This method creates a QString of HTML that it then sets on the QTextDocument it is passed.

注解:QString的HTML ?



page 286

如前面所述,使用 dynamic_cast<>()让程序不依赖于RTTI ...


As noted earlier,the use of dynamic_cast<>() makes the application dependent on the availability of RTTI—Run Time Type Information—although there are various ways to avoid this;

注解:多了“不”字


page289

在前面提醒注意的,使用 dynamic_cast<>()使程序不依赖RTTI是否可用,...

As noted earlier, the use of dynamic_cast<>() makes the application dependent on the availability of RTTI, although this can be avoided;

注解:同上
离线XChinux

只看该作者 1楼 发表于: 2011-06-27
都是第九章的吗?第九章的我没有细看过,我替你转发封邮件给翻译负责人吧。



page 166
QThreadPool::globalInstance()方法会向Qt的全局对象 QThreadPool 返回一个指针,
The QThreadPool::globalInstance() method returns a pointer to Qt’s global QThreadPool object,

    确认问题,似乎翻译成“QThreadPool::globalInstance()会返回一个Qt的全局QThreadPool对象指针。这个”Qt's"总觉得不太好处理。



Page 214

这个模型子类用 QAbstractItemModel::data() 方法取代了 Qt::DisplayRole,以保证...

This model subclass simply replaces the QAbstractItemModel::data() method for the Qt::DisplayRole and ensures that...

注解:是子类中的实现取代或覆盖 QAbstractItemModel::data()吧  ?

    确认问题。


Page 222

这个连接保证了无论何时光标被移除(无论是通过键盘还是鼠标),都调用这个槽。

This connection ensures that whenever the cursor is moved (whether by keyboard or mouse), the slot is called.

注解:笔误? “移除” ==> move

           确认问题。


page 227

我们还可以使用 QTextEdit 子类化 QPlainTextEdit,它更为便捷,因为它提供了...

Wecould, of course, subclass QPlainTextEdit, but using QTextEdit is moreconvenient since it provides many useful slots—such asQTextEdit::setFontItalic()—that are not provided by QPlainTextEdit.

注解:这个?... 怎么解释

    确认问题。


page 231

一个可选方法是使用 sender(),以进一步使用SignalMapper;...

Analternative to using sender() is to use a QSignalMapper; that wouldprovide better encapsulation, at the cost of slightly increasing thesize of the code.

注解:是替代谁?


    确认问题。


page 231

当用户启动上下文菜单(通过右键点击或通过使用一个平台定义的键序列)时将在构造函数中建立一个信号-槽连接,并调用这个槽。

Whenthe user invokes the context menu (by right-clicking or by using aplatform-specific key sequence), as a result of a signal–slot connectionmade in the constructor, this slot is called.

注解:何时建立连接

    确认问题,翻译得有些不恰当,意义没表达清楚。


page 231

最后弹出菜单,使用Menu::exec()把相对窗口部件的位置转换为相对屏幕(也就是全局)的位置。

Atthe end we pop up the menu, having converted the widget-relativeposition into the screen-relative (i.e., global) position, used byQMenu::exec().


注解: QMenu::exec() 使用转换以后的全局位置

    确认问题,翻译没有将原文意思表达清楚。



page 242

这个方法会创建一个QString的HTML,然后...

This method creates a QString of HTML that it then sets on the QTextDocument it is passed.

注解:QString的HTML ?

  确认问题,意思未表达清楚。



page 286

如前面所述,使用 dynamic_cast<>()让程序不依赖于RTTI ...


Asnoted earlier,the use of dynamic_cast<>() makes the applicationdependent on the availability of RTTI—Run Time Type Information—althoughthere are various ways to avoid this;

注解:多了“不”字


    确认问题。


page289

在前面提醒注意的,使用 dynamic_cast<>()使程序不依赖RTTI是否可用,...

Asnoted earlier, the use of dynamic_cast<>() makes the applicationdependent on the availability of RTTI, although this can be avoided;

注解:同上

   确认问题。

二笔 openSUSE Vim N9 BB10 XChinux@163.com 网易博客 腾讯微博
承接C++/Qt、Qt UI界面、PHP及预算报销系统开发业务
离线dbzhang800

只看该作者 2楼 发表于: 2011-06-27
主要是第9章,第一个是第7章,后面两个是12章。
离线yfx2003

只看该作者 3楼 发表于: 2011-06-27
感谢感谢。

目前正在联系相关译者做进一步处理。

请关注  本书勘误  的帖子。

www.qtcn.org/gpq4/
ajaxref.okajax.com/
离线XChinux

只看该作者 4楼 发表于: 2011-06-27
谢谢楼主细心发现

二笔 openSUSE Vim N9 BB10 XChinux@163.com 网易博客 腾讯微博
承接C++/Qt、Qt UI界面、PHP及预算报销系统开发业务
离线shiroki

只看该作者 5楼 发表于: 2011-06-28
楼主看得真仔细亚!! 来给我们的qt文档做审校吧...
--
shiro is White
ki is tree
http://www.cuteqt.com
论坛 http://www.cuteqt.com/bbs
博客 http://www.cuteqt.com/blog
博客镜像: http://sites.cuteqt.com/cuteqt
Linux/Qt/嵌入式讨论群 http://qun.qq.com/air/5699823
离线dbzhang800

只看该作者 6楼 发表于: 2011-06-29
引用第5楼shiroki于2011-06-28 20:22发表的  :
楼主看得真仔细亚!! 来给我们的qt文档做审校吧...

嘿嘿,受宠若惊啊。
离线yfx2003

只看该作者 7楼 发表于: 2011-07-01
已经收录,感谢提出问题

并希望再接再厉提出并解决相关问题
www.qtcn.org/gpq4/
ajaxref.okajax.com/
快速回复
限100 字节
 
上一个 下一个