Skip to content

Commit

Permalink
Merge pull request #3 from DongpingXieTUD/lionel-translation
Browse files Browse the repository at this point in the history
Syntax fixes for CN translation @equation
  • Loading branch information
GlobalCrown committed Oct 8, 2014
2 parents a182817 + 9a42084 commit d440f0a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
36 changes: 18 additions & 18 deletions text/locale/cn/LC_MESSAGES/behavior/equations/first_order.po
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ msgid ""
"Looking at this equation, we see there is only one variable, :math:`x`. "
"This equation can be represented in Modelica as follows:"
msgstr ""
"在这个方程中,只有一个变量 :math:`x` ,如果用Modelica语言可以表述如下:"
"在这个方程中,只有一个变量\ :math:`x`\ ,如果用Modelica语言可以表述如下:"
#: ../../source/behavior/equations/first_order.rst:23
msgid ""
"This code starts with the keyword ``model`` which is used to indicate the "
"start of the model definition. The ``model`` keyword is followed by the "
"model name, ``FirstOrder``. This, in turn, is followed by a declaration of "
"all the variables we are interested in."
msgstr ""
"这段程序以关键词 ``model`` 开始,以表明模型定义的开始,后面紧跟着模型的名字 ``FirstOrder`` 。接下来,才是我们感兴趣的变量声明部分。"
"这段程序以关键词\ ``model``\ 开始,以表明模型定义的开始,后面紧跟着模型的名字\ ``FirstOrder``\ 。接下来,才是我们感兴趣的变量声明部分。"
#: ../../source/behavior/equations/first_order.rst:28
msgid ""
"Since the variable :math:`x` in our equation is clearly meant to be a "
Expand All @@ -41,15 +41,15 @@ msgid ""
"complete description of the various possibilities will be discussed in the "
"upcoming section on :ref:`variables`)."
msgstr ""
"从这个方程中,我们可以确定变量 :math:`x` 是一个连续实数,在Modelica语言中可以用 ``Real x;`` 语句来声明它。"
" ``Real`` 类型只是众多数据类型的一种(在接下来的变量一节中 :ref:`variables` ,将会对数据类型的描述进行更加详细的讨论)。"
"从这个方程中,我们可以确定变量\ :math:`x`\ 是一个连续实数,在Modelica语言中可以用\ ``Real x;``\ 语句来声明它。"
" ``Real`` 类型只是众多数据类型的一种(在接下来的变量一节中\ :ref:`variables`\ ,将会对数据类型的描述进行更加详细的讨论)。"
#: ../../source/behavior/equations/first_order.rst:34
msgid ""
"Once all the variables have been declared, we can begin including the "
"equations that describe the behavior of our model. In this case, we can use"
" the ``der`` operator to represent the time derivative of ``x``. Thus,"
msgstr ""
"当所有的变量声明完成后,我们就可以编写描述模型特性的方程了。在这个例子中,我们可以用运算符 ``der`` 来表示变量 ``x`` 的一阶导数,即"
"当所有的变量声明完成后,我们就可以编写描述模型特性的方程了。在这个例子中,我们可以用运算符\ ``der``\ 来表示变量\ ``x``\ 的一阶导数,即"
#: ../../source/behavior/equations/first_order.rst:43
msgid "is equivalent to:"
msgstr ""
Expand All @@ -76,7 +76,7 @@ msgid ""
msgstr ""
"通过上面的例子,让你对使用建模语言描述系统的数学特性方面有了一个直观的了解。"
"我们并不需要描述如何去求解这个微分方程,我们关注的重点完全放在方程本身的特性上。"
"当我们处理更复杂的实例时, **就会发现很多涉及求解过程的繁琐工作都是由Modelica语言编译器处理的** 。"
"当我们处理更复杂的实例时,\ **就会发现很多涉及求解过程的繁琐工作都是由Modelica语言编译器处理的**\ 。"
#: ../../source/behavior/equations/first_order.rst:68
msgid "Adding Some Documentation"
msgstr ""
Expand All @@ -101,7 +101,7 @@ msgid ""
"provide additional documentation about the elements of the model they are "
"associated with."
msgstr ""
"理解这些引用的文本模块非常重要,它们在计算机科学中被称为 \"strings\" (字符串),而 **不是** 注释。"
"理解这些引用的文本模块非常重要,它们在计算机科学中被称为 \"strings\" (字符串),而\ **不是**\ 注释。"
"它们是 \"descriptive strings\" (描述性字符串),不像注释,不能在任意的地方插入。相反的,它们只能在特定的地方插入,以提供与其关联的模型元素注释。"
#: ../../source/behavior/equations/first_order.rst:90
msgid ""
Expand Down Expand Up @@ -146,7 +146,7 @@ msgid ""
"initial value of ``x`` in our model to be *2*, we could add an ``initial "
"equation`` section to our model as follows:"
msgstr ""
"出于这个原因,Modelica语言提供构建体结构用于描述我们方程系列的初始化。例如,如果我们想给模型中变量 ``x`` 赋初值为 *2* ,可以在模型中增加 ``initial equation`` (初始化方程)部分,如下所示:"
"出于这个原因,Modelica语言提供构建体结构用于描述我们方程系列的初始化。例如,如果我们想给模型中变量\ ``x``\ 赋初值为 *2* ,可以在模型中增加\ ``initial equation``\ (初始化方程)部分,如下所示:"
#: ../../source/behavior/equations/first_order.rst:129
msgid ""
"Note that the only difference between this model and the previous one, "
Expand All @@ -161,10 +161,10 @@ msgid ""
" ``initial equation`` section, we are explicitly specifying the initial "
"condition for ``x``."
msgstr ""
"我们可以看到,上述模型和前面章节(添加注释章节 :ref:`first-order-doc` )所述模型唯一不同的地方在于增加了 ``initial equation`` 部分,即包含方程 ``x = 2`` 。"
"在前面的例子中,变量 ``x`` 的初始值在模型仿真开始时是不确定的。一般来说,这意味着变量 ``x`` 的初始值是它的 ``start`` 属性(其缺省值为零)。"
"我们可以看到,上述模型和前面章节(添加注释章节\ :ref:`first-order-doc`\ )所述模型唯一不同的地方在于增加了\ ``initial equation``\ 部分,即包含方程\ ``x = 2``\ 。"
"在前面的例子中,变量\ ``x``\ 的初始值在模型仿真开始时是不确定的。一般来说,这意味着变量\ ``x``\ 的初始值是它的\ ``start``\ 属性(其缺省值为零)。"
"但是,每个工具都会使用自己特定的算法对最终的方程系列进行格式化,因此,我们最好明确的声明方程的初始化条件,就像上述模型声明的那样。"
"通过在 ``initial equation`` 部分添加相应的方程,我们就明确的完成了变量 ``x`` 的初始化声明。"
"通过在\ ``initial equation``\ 部分添加相应的方程,我们就明确的完成了变量\ ``x``\ 的初始化声明。"
#: ../../source/behavior/equations/first_order.rst:142
msgid ""
"As a result, the solution trajectory is quite different as we can see in the"
Expand All @@ -180,14 +180,14 @@ msgid ""
"``FirstOrderInitial`` model would be represented mathematically as:"
msgstr ""
"在 ``FirstOrderInitial`` 模型中,对系统状态提供明确的初始值是系统初始化的典型方式。"
"事实上,没有确定的初始条件,整个微分方程系统是不完整的。 ``FirstOrderInitial`` 模型可以用数学公式表示如下:"
"事实上,没有确定的初始条件,整个微分方程系统是不完整的。\ ``FirstOrderInitial``\ 模型可以用数学公式表示如下:"
#: ../../source/behavior/equations/first_order.rst:156
msgid ""
"However, there are many cases where you want a more sophisticated type of "
"initialization. An ``initial equation`` section can contain more than just "
"explicit equations for the initial values of the state variables."
msgstr ""
"当然了,很多情况下,你也许需要更为复杂的初始化条件, ``initial equation`` 部分可以包含的不仅仅是显示方程的状态变量初始值。"
"当然了,很多情况下,你也许需要更为复杂的初始化条件,\ ``initial equation``\ 部分可以包含的不仅仅是显示方程的状态变量初始值。"
#: ../../source/behavior/equations/first_order.rst:161
msgid ""
"For example, we might want our initial conditions to be such that the "
Expand All @@ -199,8 +199,8 @@ msgid ""
" it is possible to express the constraint that :math:`\\dot{x}(0)=0` "
"directly in Modelica as follows:"
msgstr ""
"例如,我们可能希望在仿真开始时, :math:`x` 的导数为零。在这种情况下,稍有点代数知识的就会知道,可以通过指定初始条件 :math:`x(0)=1` 来实现。"
"但是,对于更复杂的系统,通过观察确定初始条件以满足系统的要求将会变得远远不够。在这种情况下,可以在Modelica中直接添加初始条件 :math:`\\dot{x}(0)=0` ,如下程序段所示:"
"例如,我们可能希望在仿真开始时, :math:`x` 的导数为零。在这种情况下,稍有点代数知识的就会知道,可以通过指定初始条件\ :math:`x(0)=1`\ 来实现。"
"但是,对于更复杂的系统,通过观察确定初始条件以满足系统的要求将会变得远远不够。在这种情况下,可以在Modelica中直接添加初始条件\ :math:`\\dot{x}(0)=0`\ ,如下程序段所示:"
#: ../../source/behavior/equations/first_order.rst:176
msgid "Simulating this system gives the following solution:"
msgstr ""
Expand All @@ -211,14 +211,14 @@ msgid ""
" the start of the simulation and remains zero because there are no external "
"influences acting on this system that would disrupt this equilibrium."
msgstr ""
"从这些结果中可以看到,因为没有外部的激励作用以破坏系统的平衡, :math:`x` 的导数在仿真开始并在仿真过程中一直保持为0。"
"从这些结果中可以看到,因为没有外部的激励作用以破坏系统的平衡,\ :math:`x`\ 的导数在仿真开始并在仿真过程中一直保持为0。"
#: ../../source/behavior/equations/first_order.rst:185
msgid ""
"This provides a glimpse of the initialization capablities in Modelica. More "
"complete coverage of the initialization topic can be found in the "
":ref:`initialization` section later in this chapter."
msgstr ""
"上述章节提供了Modelica初始化功能的部分讲解,关于初始化功能更完整的内容将在本章后面的章节 :ref:`initialization` 进行讲述。"
"上述章节提供了Modelica初始化功能的部分讲解,关于初始化功能更完整的内容将在本章后面的章节\ :ref:`initialization`\ 进行讲述。"
#: ../../source/behavior/equations/first_order.rst:192
msgid "Experimental Conditions"
msgstr ""
Expand Down Expand Up @@ -270,7 +270,7 @@ msgid ""
"keep in mind that, in general, a tool is free to ignore any or all "
"annotations."
msgstr ""
"虽然 ``experiment`` 注释在建立模型时被广泛的应用,但是也要注意到,一般情况下,建模工具是可以忽略任何或者全部注释内容的。"
"虽然\ ``experiment``\ 注释在建立模型时被广泛的应用,但是也要注意到,一般情况下,建模工具是可以忽略任何或者全部注释内容的。"
#: ../../source/behavior/equations/first_order.rst:19
msgid "model"
msgstr ""
Expand Down
4 changes: 2 additions & 2 deletions text/locale/cn/LC_MESSAGES/behavior/equations/physical.po
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ msgid ""
"minimum possible value of ``0``\"."
msgstr ""
"你可以看到关于类型的定义 ``type Temperature=Real(unit=\"K\", min=0);`` , ``如 \"让我们定义一个新类型 ``Temperature`` ,"
"这是内置 ``Real`` 类型和物理单位开尔文 ( ``K`` )以及最小可能值为 ``0``\ 的一个特例" 。"
"这是内置 ``Real`` 类型和物理单位开尔文 ( ``K`` )以及最小可能值为 ``0``\ 的一个特例。"
#: ../../source/behavior/equations/physical.rst:204
msgid ""
"From this example, we can see that once we define a physical type like "
Expand Down Expand Up @@ -323,4 +323,4 @@ msgid ""
"Note that this is really no different from the equation we saw in our "
"``FirstOrder`` model from the :ref:`first-order` example."
msgstr ""
"我们可以注意到,本实例和 ``FirstOrder`` :ref:`first-order` 模型实例相比,关于公式的写法并没有什么不同。"
"我们可以注意到,本实例和 ``FirstOrder`` :ref:`first-order` 模型实例相比,关于公式的写法并没有什么不同。"

0 comments on commit d440f0a

Please sign in to comment.