# HG changeset patch # User Zhaoping Sun # Date 1258508219 18000 # Node ID 91bd679f8413e35146fddf9e2b26d09168da2baf # Parent 00b10e26e3e643cfb694fabc304624e15e3760a0 chap 1 finished diff -r 00b10e26e3e6 -r 91bd679f8413 po/zh.po --- a/po/zh.po Mon Nov 16 21:04:22 2009 -0500 +++ b/po/zh.po Tue Nov 17 20:36:59 2009 -0500 @@ -2113,6 +2113,8 @@ "wonderful, madcap little-boy games. I'd also like to thank my ex-wife, " "Shannon, for her support." msgstr "" +"我的孩子Cian和Ruairi总是站在我旁边帮我解决奇妙的疯狂小男孩游戏。我同样也要感谢" +"我的前妻Shannon的帮助。" #. type: Content of: #: ../en/ch00-preface.xml:56 @@ -2290,7 +2292,7 @@ msgstr "" "虽然我们并不要求在引用本书的时候做版权归属声明,但如果你这样做了,我们将非常感" "激。版权归属声明通常包含标题,作者,发行者和ISBN。例如: “书名 某人著. 版权所有 2008 O’Reilly Media, Inc., 978-0-596-xxxx-x.”" +"emphasis> 某人著。 版权所有 2008 O’Reilly Media,Inc., 978-0-596-xxxx-x。”" #. type: Content of: #: ../en/ch00-preface.xml:187 @@ -2674,6 +2676,10 @@ "book is built from its sources, all the example scripts are automatically " "run, and their current results compared against their expected results." msgstr "" +"本书采用了一种非同寻常的示例编程方法。每个例子都是活的&emdash;" +"每一个示例都是一个shell脚本执行的实际结果,这个脚本执行了你看到的Mercurial命" +"令。每次从源代码构建本书的映像时,所有的示例脚本都自动执行,然后将预期结果和实" +"际执行结果比较。" #. type: Content of: #: ../en/ch01-intro.xml:144 @@ -2684,6 +2690,9 @@ "of Mercurial that I'm documenting, and the output of some command changes, " "the build fails." msgstr "" +"这种方法的优点是每个例子都是永远精确的,它们是本书前面描述的Mercurial版本的" +"实际运行结果。如果我更新了描述的Mercurial的版本,同时有些" +"命令的输出变化了,创建就会失败。" #. type: Content of: #: ../en/ch01-intro.xml:151 @@ -2695,6 +2704,9 @@ "resulting timestamps correspondingly spread out, my automated example scripts " "run many commands in one second." msgstr "" +"这种方法也有小的缺点,就是你在示例中看见的日期和时间被压缩了," +"看起来这些命令不是人输入的。人不可能再一秒之内执行一条以上的命令,相应的时间戳" +"都应该展开,我的自动化脚本中一秒之内可以执行很多命令。" #. type: Content of: #: ../en/ch01-intro.xml:159 @@ -2704,6 +2716,9 @@ "bisect example in , for instance." msgstr "" +"举例来说,示例中的几个连续的提交可能显示发生于同一秒之内。你可以在bisect 示例中看到例子。" #. type: Content of: #: ../en/ch01-intro.xml:165 @@ -2713,7 +2728,7 @@ "confident that the behavior you're seeing is consistent and reproducible." msgstr "" "所以当你研究这些例子的时候,不要太注意命令输出的日期和时间。但是保证你看到的行为是一致的和可以再现的。" +"emphasis>保证你看到的结果是一致的和可以再现的。" #. type: Content of: #: ../en/ch01-intro.xml:173 @@ -2738,9 +2753,9 @@ "control, their locking model and reliance on a single computer limited them " "to small, tightly-knit teams." msgstr "" -"在第一代软件开始于在个人计算机上管理单个文件。虽然这些工具比手工管理版本有了巨" -"大的飞跃。但是加锁模型和依赖于单个计算机限制了他们之能用于小的,组织严密的团" -"队。" +"第一代软件开始于在个人计算机,人们用这些软件管理单个文件。虽然这些工具比手工管" +"理版本有了巨大的飞跃。但是加锁模型和依赖于单个计算机限制了他们使用范围,只用于" +"小的,组织严密的团队。" #. type: Content of: <book><chapter><sect1><para> #: ../en/ch01-intro.xml:186 @@ -2755,11 +2770,11 @@ "found that they could not use the tools to interact with a project in a " "natural way, as they could not record their changes." msgstr "" -"第二代软件因为采用以网络为中心的结构,一次性管理整个项目而放松了这些限制。随着" -"项目增长,又出现了新的问题。客户需要频繁的和服务器交互,服务器的可伸缩性成为大" -"项目的主要问题。不可靠的网络会妨碍客户和服务器的交互。随着开源项目开始开放只读" -"权限给匿名用户,没有提交权限的用户发现他们不能以自然的方式使用工具和项目交互," -"因为他们不能记录他们的修改。" +"第二代软件放松了这些限制,因为它们采用了以网络为中心的结构,并且能够一次管理整" +"个项目。随着项目增长,又出现了新的问题。客户需要频繁的和服务器交互,服务器的可" +"伸缩性成为大项目的主要问题。不可靠的网络会妨碍客户和服务器的交互。随着开源项目" +"开始开放只读权限给匿名用户,没有提交权限的用户发现他们不能以自然的方式使用工具" +"和项目交互,因为他们不能记录他们的修改。" #. type: Content of: <book><chapter><sect1><para> #: ../en/ch01-intro.xml:198 @@ -2773,9 +2788,9 @@ "when syncing changes with another repository." msgstr "" "新一代的版本控制工具本质上是点对点的。所有的这些系统都抛弃了对单个中央服务器的" -"依赖,允许用户发布他们的版本控制数据到任何需要的地方。通过互联网的协作摆脱了技" -"术的限制,走向选择和审查。现代的工具可以进行自治的,不受限制的离线操作。只需要" -"在有网络的时候和其他的版本库同步即可。" +"依赖,允许用户将他们的版本控制数据发布到任何需要的地方。通过互联网的协作摆脱了" +"技术的限制,走向选择和审查。现代的工具可以进行自治的,不受限制的离线操作。只需" +"要在有网络的时候和其他的版本库同步即可。" #. type: Content of: <book><chapter><sect1><title> #: ../en/ch01-intro.xml:210 @@ -2791,9 +2806,9 @@ "a number of ways in which distributed tools shine relative to centralised " "ones." msgstr "" -"与他们的上一代竞争者相比,虽然分布式版本控制工具多年来已经很稳定和实用了,但是" -"使用旧的工具的人们还没有完全了解它们的优点,分布式的工具在很多方面明显由于集中" -"式的工具。" +"与它们的上一代竞争者相比,虽然分布式版本控制工具多年来已经很稳定和实用了,但是" +"旧的工具的使用者还没有完全了解它们的优点,分布式的工具在很多方面明显由于集中式" +"的工具。" #. type: Content of: <book><chapter><sect1><para> #: ../en/ch01-intro.xml:220 @@ -2841,7 +2856,8 @@ "网络的可靠性对分布式工具的影响要远远小于集中式工具。如果没有网络你根本不能使用" "集中式工具,除了少数几个功能有限命令。而对于分布式工具,即使在你工作的时候网络" "瘫痪了,你可能根本不会注意到。你不能做的事情仅仅是不能和其它计算机上的版本库交" -"互了,这种事在本地操作相当罕见。而如果你的团队有异地的人员,那这就很有可能了。" +"互了,这种情况在本地操作相当罕见。而如果你的团队有异地的人员,那这就很有可能" +"了。" #. type: Content of: <book><chapter><sect1><sect2><title> #: ../en/ch01-intro.xml:250 @@ -2873,7 +2889,7 @@ #. type: Content of: <book><chapter><sect1><sect2><sect3><title> #: ../en/ch01-intro.xml:268 msgid "The forking non-problem" -msgstr "分叉不是问题" +msgstr "分支不是问题" #. type: Content of: <book><chapter><sect1><sect2><sect3><para> #: ../en/ch01-intro.xml:270 @@ -2886,6 +2902,10 @@ "more or less complete copy of the project's source code, and goes off in its " "own direction." msgstr "" +"有人说分布式版本控制工具给开源项目带来了某种风险,因为在项目的发展过程中很容易" +"出现<quote>分支</quote>。当不同组的开发人员有不同的意见和看法,决定不再一起工" +"作的时候,就会产生新的分支,每个组的人都或多或少的获得项目代码的完整拷贝,然后" +"向自己的方向发展。" #. type: Content of: <book><chapter><sect1><sect2><sect3><para> #: ../en/ch01-intro.xml:280 @@ -2897,6 +2917,10 @@ "quote>, and graft the other team's changes into the tree somehow. This " "usually loses some or all of one side's revision history." msgstr "" +"有时候,不同分支的阵营决定协调他们之间的分歧。如果使用了集中式版本控制系统 " +"<emphasis>技术</emphasis>上的问题使协调过程非常痛苦,大部分需要手动解决。你必" +"须决定那个版本历史<quote>赢</quote>了,然后将其它团队的更改合并到代码中。这通" +"常造成别的团队某些或者全部版本历史丢失。" #. type: Content of: <book><chapter><sect1><sect2><sect3><para> #: ../en/ch01-intro.xml:289 @@ -2908,6 +2932,9 @@ "<emphasis>merging</emphasis> forks, because forks are absolutely fundamental: " "they happen all the time." msgstr "" +"分布式工具认为分支是项目开发的<emphasis>唯一</emphasis>方式。每个单独的变更都" +"是潜在的分支点。这种方法的巨大力量在于,分布式版本控制工具非常善于<emphasis>合" +"并</emphasis>分支,因为分支是非常基本的操作:它们随时都在发生。" #. type: Content of: <book><chapter><sect1><sect2><sect3><para> #: ../en/ch01-intro.xml:298 @@ -2918,6 +2945,9 @@ "anything, distributed tools <emphasis>lower</emphasis> the likelihood of a " "fork:" msgstr "" +"如果所有的人在任何时候的做任何工作都这样使用合并和分支,那么对开源世界来讲," +"<quote>分支</quote>就变成了<emphasis>纯粹</emphasis>的社会事件。如果真的有什么" +"影响到话,就是分布式工具<emphasis>降低</emphasis>了分支的可能性:" #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para> #: ../en/ch01-intro.xml:305 @@ -2925,6 +2955,8 @@ "They eliminate the social distinction that centralised tools impose: that " "between insiders (people with commit access) and outsiders (people without)." msgstr "" +"消除了集中式工具带来的社会级别:有内部人员(有提交权限)和外部人员(没有权限)" +"之分。" #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para> #: ../en/ch01-intro.xml:309 @@ -2933,6 +2965,8 @@ "involved from the perspective of the revision control software is just " "another merge." msgstr "" +"在社会性分支之后很容易和解,因为从版本控制工具的角度来讲这仅仅是一次新的合并而" +"已。" #. type: Content of: <book><chapter><sect1><sect2><sect3><para> #: ../en/ch01-intro.xml:314