# HG changeset patch # User Zhaoping Sun # Date 1258423462 18000 # Node ID 00b10e26e3e643cfb694fabc304624e15e3760a0 # Parent 2d4c82cfb38ba110b4d0369906ae425dea261af2 refined diff -r 2d4c82cfb38b -r 00b10e26e3e6 po/zh.po --- a/po/zh.po Mon Nov 16 20:39:30 2009 -0500 +++ b/po/zh.po Mon Nov 16 21:04:22 2009 -0500 @@ -2274,7 +2274,11 @@ "question by citing this book and quoting example code does not require " "permission. Incorporating a significant amount of example code from this book " "into your product’s documentation does require permission." -msgstr "本书的目的是帮助你完成工作。基本上,你可以将书中的代码用于你的程序或文档。无需取得我们的许可,除非你直接复制大量的代码。举例来说,在程序中使用几段书中的代码无需许可。出售或发布含有O'Reilly书中示例的CD-ROM则需经许可。引用本书中的叙述或示例代码来回答问题无需许可。将书中的大量代码合并到你的产品文档中则需经许可。" +msgstr "" +"本书的目的是帮助你完成工作。基本上,你可以将书中的代码用于你的程序或文档。无需" +"取得我们的许可,除非你直接复制大量的代码。举例来说,在程序中使用几段书中的代码" +"无需许可。出售或发布含有O'Reilly书中示例的CD-ROM则需经许可。引用本书中的叙述或" +"示例代码来回答问题无需许可。将书中的大量代码合并到你的产品文档中则需经许可。" #. type: Content of: #: ../en/ch00-preface.xml:181 @@ -2283,18 +2287,21 @@ "includes the title, author, publisher, and ISBN. For example: “Book " "Title by Some Author. Copyright 2008 O’Reilly Media, Inc., 978-0-" "596-xxxx-x.”" -msgstr "虽然我们并不要求在引用本书的时候做版权归属声明,但如果你这样做了,我们将非常感激。版权归属声明通常包含标题,作者,发行者和ISBN。" -"例如: “书名" -" 某人著. 版权所有 2008 O’Reilly Media, Inc., 978-0-" -"596-xxxx-x.”" +msgstr "" +"虽然我们并不要求在引用本书的时候做版权归属声明,但如果你这样做了,我们将非常感" +"激。版权归属声明通常包含标题,作者,发行者和ISBN。例如: “书名 某人著. 版权所有 2008 O’Reilly Media, Inc., 978-0-596-xxxx-x.”" + #. type: Content of: #: ../en/ch00-preface.xml:187 msgid "" "If you feel your use of code examples falls outside fair use or the " "permission given above, feel free to contact us at permissions@oreilly." "com." -msgstr "如果你觉得你对书中示例代码的使用超出了正常范围,或者不符合以上描述的许可,尽管用电子邮件跟我们联系:" -"permissions@oreilly.com。" +msgstr "" +"如果你觉得你对书中示例代码的使用超出了正常范围,或者不符合以上描述的许可,尽管" +"用电子邮件跟我们联系:permissions@oreilly.com。" + #. type: Content of: #: ../en/ch00-preface.xml:193 msgid "Safari® Books Online" @@ -2306,8 +2313,9 @@ "When you see a Safari® Books Online icon on the cover of your favorite " "technology book, that means the book is available online through the O’Reilly " "Network Safari Bookshelf." -msgstr "如果你在喜欢的技术图书的封面上看见Safari® Books Online的图标,这表示你" -"你可以通过O'Reilly Network Safari Bookshelf在网上使用此书。" +msgstr "" +"如果你在喜欢的技术图书的封面上看见Safari® Books Online的图标,这表示你你可以通" +"过O'Reilly Network Safari Bookshelf在网上使用此书。" #. type: Content of: <book><preface><sect1><para> #: ../en/ch00-preface.xml:202 @@ -2318,9 +2326,10 @@ "accurate, current information. Try it for free at <ulink role=\"orm:hideurl:" "ital\" url=\"http://my.safaribooksonline.com/?portal=oreilly\">http://my." "safaribooksonline.com</ulink>." -msgstr "Safari提供了一个比电子书更好的解决方案。它是一所虚拟图书馆,你可以在上" -"面轻松搜索上千种顶级的技术书籍,剪切和复制示例代码,下载章节,当你需要最准确、" -"最新的信息时,让你更快地找到答案。可以通过下面链接免费试用<ulink role=\"orm:hideurl:" +msgstr "" +"Safari提供了一个比电子书更好的解决方案。它是一所虚拟图书馆,你可以在上面轻松搜" +"索上千种顶级的技术书籍,剪切和复制示例代码,下载章节,当你需要最准确、最新的信" +"息时,让你更快地找到答案。可以通过下面链接免费试用<ulink role=\"orm:hideurl:" "ital\" url=\"http://my.safaribooksonline.com/?portal=oreilly\">http://my." "safaribooksonline.com</ulink>。" @@ -2370,7 +2379,9 @@ msgid "" "We have a web page for this book, where we list errata, examples, and any " "additional information. You can access this page at:" -msgstr "我们将提供一个关于本书的主页,在那上面提供勘误表、示例以及其它附加信息。你可以从这里访问到它:" +msgstr "" +"我们将提供一个关于本书的主页,在那上面提供勘误表、示例以及其它附加信息。你可以" +"从这里访问到它:" #. type: Content of: <book><preface><sect1><simplelist><member> #: ../en/ch00-preface.xml:235 @@ -2386,7 +2397,7 @@ #. type: Content of: <book><preface><sect1><para> #: ../en/ch00-preface.xml:242 msgid "To comment or ask technical questions about this book, send email to:" -msgstr "" +msgstr "关于本书的任何技术问题或评论请发邮件给出版商:" #. type: Content of: <book><preface><sect1><simplelist><member> #: ../en/ch00-preface.xml:246 @@ -2398,7 +2409,9 @@ msgid "" "For more information about our books, conferences, Resource Centers, and the " "O’Reilly Network, see our web site at:" -msgstr "如果想了解关于我们的图书、会议、资源中心以及O'Reilly Network的更多信息,可以浏览以下站点:" +msgstr "" +"如果想了解关于我们的图书、会议、资源中心以及O'Reilly Network的更多信息,可以浏" +"览以下站点:" #. type: Content of: <book><preface><sect1><simplelist><member> #: ../en/ch00-preface.xml:253 @@ -3790,8 +3803,9 @@ "In Mercurial, everything happens inside a <emphasis>repository</emphasis>. " "The repository for a project contains all of the files that <quote>belong to</" "quote> that project, along with a historical record of the project's files." -msgstr "在Mercurial中,所有的操作都在<emphasis>版本库</emphasis>中进行。" -"项目的版本库包括了属于该项目的所有文件和这些文件的历史记录。" +msgstr "" +"在Mercurial中,所有的操作都在<emphasis>版本库</emphasis>中进行。项目的版本库包" +"括了属于该项目的所有文件和这些文件的历史记录。" #. type: Content of: <book><chapter><sect1><para> #: ../en/ch02-tour-basic.xml:118 @@ -3800,8 +3814,9 @@ "directory tree in your filesystem that Mercurial treats as special. You can " "rename or delete a repository any time you like, using either the command " "line or your file browser." -msgstr "版本库没有什么神秘的地方;仅仅是你系统中的一个目录树,Mercurial会将它们特殊处理。" -"你可以在任何喜欢的时候使用命令行或者文件浏览器删除版本库或者给它改名。" +msgstr "" +"版本库没有什么神秘的地方;仅仅是你系统中的一个目录树,Mercurial会将它们特殊处" +"理。你可以在任何喜欢的时候使用命令行或者文件浏览器删除版本库或者给它改名。" #. type: Content of: <book><chapter><sect1><sect2><title> #: ../en/ch02-tour-basic.xml:125 @@ -3816,9 +3831,10 @@ "repository, it's best to use a built-in command that Mercurial provides. " "This command is called <command role=\"hg-cmd\">hg clone</command>, because " "it makes an identical copy of an existing repository." -msgstr "<emphasis>拷贝</emphasis>版本库有点特殊。虽然你可以使用文件拷贝命令来复制" -"一般版本库,最好还是用Mercurial内置的命令。这个命令叫做 <command role=\"hg-cmd\">hg clone</command>" -",因为它创建了一个原来版本库的拷贝。" +msgstr "" +"<emphasis>拷贝</emphasis>版本库有点特殊。虽然你可以使用文件拷贝命令来复制一般" +"版本库,最好还是用Mercurial内置的命令。这个命令叫做 <command role=\"hg-cmd" +"\">hg clone</command>,因为它创建了一个原来版本库的拷贝。" #. type: Content of: <book><chapter><sect1><sect2><para> #: ../en/ch02-tour-basic.xml:136 @@ -3827,17 +3843,19 @@ "as we can see above, it lets us clone repositories over the network. Another " "is that it remembers where we cloned from, which we'll find useful soon when " "we want to fetch new changes from another repository." -msgstr "如上所示,使用<command role=\"hg-cmd\">hg clone</command>的好处在于它能够让你" -"通过网络克隆版本库。另外一个好处你它会记得这个版本库是从哪里克隆的,稍后会看到,当" -"我们想从其他的版本库获取新的变更的时候这点这会非常有用。" +msgstr "" +"如上所示,使用<command role=\"hg-cmd\">hg clone</command>的好处在于它能够让你" +"通过网络克隆版本库。另外一个好处你它会记得这个版本库是从哪里克隆的,稍后会看" +"到,当我们想从其他的版本库获取新的变更的时候这点这会非常有用。" #. type: Content of: <book><chapter><sect1><sect2><para> #: ../en/ch02-tour-basic.xml:142 msgid "" "If our clone succeeded, we should now have a local directory called <filename " "class=\"directory\">hello</filename>. This directory will contain some files." -msgstr "如果我们克隆成功,我们会得到一个本地目录,叫做 <filename " -"class=\"directory\">hello</filename>。这个目录会包括一些文件。" +msgstr "" +"如果我们克隆成功,我们会得到一个本地目录,叫做 <filename class=\"directory" +"\">hello</filename>。这个目录会包括一些文件。" #. type: Content of: <book><chapter><sect1><sect2><para> #: ../en/ch02-tour-basic.xml:148 @@ -3854,9 +3872,10 @@ "mentioned, a cloned repository remembers the location of the repository it " "was cloned from, but Mercurial will not communicate with that repository, or " "any other, unless you tell it to." -msgstr "每个Mercurial版本库都是完整的,自包含的,独立的。它包含了项目文件的一份私有" -"拷贝和全部历史。我们刚才已经提到,克隆的版本库会记住它克隆的那个版本库的地址,但是" -"Mercurial不会和那个或者其他任何一个版本库通信,除非你给它命令。" +msgstr "" +"每个Mercurial版本库都是完整的,自包含的,独立的。它包含了项目文件的一份私有拷" +"贝和全部历史。我们刚才已经提到,克隆的版本库会记住它克隆的那个版本库的地址,但" +"是Mercurial不会和那个或者其他任何一个版本库通信,除非你给它命令。" #. type: Content of: <book><chapter><sect1><sect2><para> #: ../en/ch02-tour-basic.xml:158 @@ -3864,7 +3883,8 @@ "What this means for now is that we're free to experiment with our repository, " "safe in the knowledge that it's a private <quote>sandbox</quote> that won't " "affect anyone else." -msgstr "这意味着,我们可以随意的在我们的版本库中做实验,非常安全,因为它是一个私有的" +msgstr "" +"这意味着,我们可以随意的在我们的版本库中做实验,非常安全,因为它是一个私有的" "<quote>沙盒</quote>,不会影响任何人。" #. type: Content of: <book><chapter><sect1><sect2><title> @@ -3878,9 +3898,9 @@ "When we take a more detailed look inside a repository, we can see that it " "contains a directory named <filename class=\"directory\">.hg</filename>. " "This is where Mercurial keeps all of its metadata for the repository." -msgstr "当我们仔细观察版本库内部时,我们会发现它有一个叫" -"<filename class=\"directory\">.hg</filename>的目录。" -"这就是Mercurial为版本库保存所有元数据的地方。" +msgstr "" +"当我们仔细观察版本库内部时,我们会发现它有一个叫<filename class=\"directory" +"\">.hg</filename>的目录。这就是Mercurial为版本库保存所有元数据的地方。" #. type: Content of: <book><chapter><sect1><sect2><para> #: ../en/ch02-tour-basic.xml:173 @@ -3888,8 +3908,9 @@ "The contents of the <filename class=\"directory\">.hg</filename> directory " "and its subdirectories are private to Mercurial. Every other file and " "directory in the repository is yours to do with as you please." -msgstr "目录<filename class=\"directory\">.hg</filename>" -"中的内容和其子目录是Mercurial私有的。版本库中的其他任何文件和目录你都可以随意操作。" +msgstr "" +"目录<filename class=\"directory\">.hg</filename>中的内容和其子目录是Mercurial" +"私有的。版本库中的其他任何文件和目录你都可以随意操作。" #. type: Content of: <book><chapter><sect1><sect2><para> #: ../en/ch02-tour-basic.xml:179 @@ -3902,10 +3923,13 @@ "<emphasis>history</emphasis> of your project, while the <emphasis>working " "directory</emphasis> contains a <emphasis>snapshot</emphasis> of your project " "at a particular point in history." -msgstr "介绍一点术语, <filename class=\"directory\">.hg</filename>目录是" -"<quote>真正的</quote>版本库,所有其他的文件和目录称为<emphasis>工作目录</emphasis>" -"一个简单的区分的方法就是<emphasis>版本库</emphasis>中包含了项目的<emphasis>历史</emphasis>" -",而 <emphasis>工作目录</emphasis>则是项目组一个特定历史点上的<emphasis>快照</emphasis>。" +msgstr "" +"介绍一点术语, <filename class=\"directory\">.hg</filename>目录是<quote>真正的" +"</quote>版本库,所有其他的文件和目录称为<emphasis>工作目录</emphasis>一个简单" +"的区分的方法就是<emphasis>版本库</emphasis>中包含了项目的<emphasis>历史</" +"emphasis>,而 <emphasis>工作目录</emphasis>则是项目组一个特定历史点上的" +"<emphasis>快照</emphasis>。" + #. type: Content of: <book><chapter><sect1><title> #: ../en/ch02-tour-basic.xml:194 msgid "A tour through history" @@ -3917,8 +3941,9 @@ "One of the first things we might want to do with a new, unfamiliar repository " "is understand its history. The <command role=\"hg-cmd\">hg log</command> " "command gives us a view of the history of changes in the repository." -msgstr "对于一个新的,我们不熟悉的版本库,我们想做的第一件事就是了解它的历史。" -"命令<command role=\"hg-cmd\">hg log</command>可以让我们浏览版本库中的历史变更。" +msgstr "" +"对于一个新的,我们不熟悉的版本库,我们想做的第一件事就是了解它的历史。命令" +"<command role=\"hg-cmd\">hg log</command>可以让我们浏览版本库中的历史变更。" #. type: Content of: <book><chapter><sect1><para> #: ../en/ch02-tour-basic.xml:203 @@ -3927,16 +3952,18 @@ "to the project that was recorded. In Mercurial terminology, we call each of " "these recorded events a <emphasis>changeset</emphasis>, because it can " "contain a record of changes to several files." -msgstr "缺省情况下,这个命令对项目中记录的每个变更都输出一段简介,在Mercurial" -"的术语中,我们将这些记录的事件成为<emphasis>变更集</emphasis>,因为每个记录都" -"可能包括几个文件的变更。" +msgstr "" +"缺省情况下,这个命令对项目中记录的每个变更都输出一段简介,在Mercurial的术语" +"中,我们将这些记录的事件成为<emphasis>变更集</emphasis>,因为每个记录都可能包" +"括几个文件的变更。" #. type: Content of: <book><chapter><sect1><para> #: ../en/ch02-tour-basic.xml:209 msgid "" "The fields in a record of output from <command role=\"hg-cmd\">hg log</" "command> are as follows." -msgstr " <command role=\"hg-cmd\">hg log</command>输出记录的各个字段的意义如下。" +msgstr "" +" <command role=\"hg-cmd\">hg log</command>输出记录的各个字段的意义如下。" #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para> #: ../en/ch02-tour-basic.xml:213 @@ -3948,11 +3975,12 @@ "changeset in every copy of this repository. The number is shorter and easier " "to type than the hex string, but it isn't unique: the same number in two " "different clones of a repository may identify different changesets." -msgstr "<literal>changeset</literal>:这个字段包括一个数字,接着一个冒号,然后是" -"是一个十六进制字符串。这是这个变更的<emphasis>标识符</emphasis>。十六进制字符串" -"是唯一标识符:在这个版本库的任何一个拷贝中,同一个字符串总是对应同一个变更集。数字更短" -"并且比十六进制字符串更容易书写,但它不是唯一的:一个版本库的两个不同的的克隆中的" -"同一个数字可能对应不同的变更集。" +msgstr "" +"<literal>changeset</literal>:这个字段包括一个数字,接着一个冒号,然后是是一个" +"十六进制字符串。这是这个变更的<emphasis>标识符</emphasis>。十六进制字符串是唯" +"一标识符:在这个版本库的任何一个拷贝中,同一个字符串总是对应同一个变更集。数字" +"更短并且比十六进制字符串更容易书写,但它不是唯一的:一个版本库的两个不同的的克" +"隆中的同一个数字可能对应不同的变更集。" #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para> #: ../en/ch02-tour-basic.xml:224 @@ -3960,8 +3988,9 @@ "<literal>user</literal>: The identity of the person who created the " "changeset. This is a free-form field, but it most often contains a person's " "name and email address." -msgstr "<literal>user</literal>:这个字段标识是谁创建了这个变更集。这个字段格式可以自由定义," -"通常是一个人的姓名加上电子邮件地址。" +msgstr "" +"<literal>user</literal>:这个字段标识是谁创建了这个变更集。这个字段格式可以自" +"由定义,通常是一个人的姓名加上电子邮件地址。" #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para> #: ../en/ch02-tour-basic.xml:228 @@ -3970,8 +3999,10 @@ "created, and the timezone in which it was created. (The date and time are " "local to that timezone; they display what time and date it was for the person " "who created the changeset.)" -msgstr "<literal>date</literal>:这是变更集创建的日期和时间,还有时区。(日期和时间是相对于时区的;" -""他们显示了创建变更的人的日期和时间。) +msgstr "" +"<literal>date</literal>:这是变更集创建的日期和时间,还有时区。(日期和时间是" +"相对于时区的;他们显示了创建变更的人的日期和时间。)" + #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para> #: ../en/ch02-tour-basic.xml:233 msgid "" @@ -3986,16 +4017,19 @@ "literal> field. A tag is another way to identify a changeset, by giving it " "an easy-to-remember name. (The tag named <literal>tip</literal> is special: " "it always refers to the newest change in a repository.)" -msgstr "有些变更集,像上面的第一个,有一个<literal>标签</literal>字段。" -"标签是区分变更集的另外一种方法,给它一个容易记得名字。(叫做<literal>tip</literal>" -"的标签有特殊意义:总是指向版本库中的最新的变更。" +msgstr "" +"有些变更集,像上面的第一个,有一个<literal>标签</literal>字段。标签是区分变更" +"集的另外一种方法,给它一个容易记得名字。(叫做<literal>tip</literal>的标签有特" +"殊意义:总是指向版本库中的最新的变更。" + #. type: Content of: <book><chapter><sect1><para> #: ../en/ch02-tour-basic.xml:245 msgid "" "The default output printed by <command role=\"hg-cmd\">hg log</command> is " "purely a summary; it is missing a lot of detail." -msgstr "缺省情况下,<command role=\"hg-cmd\">hg log</command>的输出仅仅是个摘要," -"没有更详细的信息。" +msgstr "" +"缺省情况下,<command role=\"hg-cmd\">hg log</command>的输出仅仅是个摘要,没有" +"更详细的信息。" #. type: Content of: <book><chapter><sect1><para> #: ../en/ch02-tour-basic.xml:249