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

pure strong tags for l10n-zh #6879

Merged
merged 3 commits into from
Jul 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ <h3 id="Font_style_font_weight_text_transform_and_text_decoration">字体样式
</li>
<li>{{cssxref("font-weight")}}: 设置文字的粗体大小。这里有很多值可选 (比如 <em>-light</em>, <em>-normal</em>, <em>-bold</em>, <em>-extrabold</em>, <em>-black</em>, 等等), 不过事实上你很少会用到 <code>normal</code> 和 <code>bold</code>以外的值:
<ul>
<li><code>normal</code>, <code>bold</code>: 普通或者<strong style="font-weight: bold;">加粗</strong>的字体粗细</li>
<li><code>normal</code>, <code>bold</code>: 普通或者<strong>加粗</strong>的字体粗细</li>
<li><code>lighter</code>, <code>bolder</code>: 将当前元素的粗体设置为比其父元素粗体更细或更粗一步。<code>100</code><code>900</code>: 数值粗体值,如果需要,可提供比上述关键字更精细的粒度控制。</li>
</ul>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ <h2 id="函数与方法">函数与方法</h2>

<p>到目前为止我们所使用的内置代码同属于这两种形式:函数和方法。你可以在<a href="/zh-CN/docs/Web/JavaScript/Reference/Global_Objects">这里</a>查看内置函数,内置对象以及其相关方法的完整列表。</p>

<p>严格说来,内置浏览器函数并不是函数——它们是<strong style="">方法</strong>。这听起来有点可怕和令人困惑,但不要担心 ——函数和方法在很大程度上是可互换的,至少在我们的学习阶段是这样的。</p>
<p>严格说来,内置浏览器函数并不是函数——它们是<strong>方法</strong>。这听起来有点可怕和令人困惑,但不要担心 ——函数和方法在很大程度上是可互换的,至少在我们的学习阶段是这样的。</p>

<p>二者区别在于方法是在对象内定义的函数。浏览器内置函数(方法)和变量(称为属性)存储在结构化对象内,以使代码更加高效,易于处理。</p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ <h2 id="prototype_属性:继承成员被定义的地方">prototype 属性:
<p><strong>重要</strong><code>prototype</code> 属性大概是 JavaScript 中最容易混淆的名称之一。你可能会认为,<code>this</code> 关键字指向当前对象的原型对象,其实不是(还记得么?原型对象是一个内部对象,应当使用<code> __proto__</code> 访问)。<code>prototype</code> 属性包含(指向)一个对象,你在这个对象中定义需要被继承的成员。</p>
</div>

<p><strong style="color: #4d4e53; font-size: 2.14286rem; font-weight: 700; letter-spacing: -1px;">create()</strong></p>
<p><strong>create()</strong></p>

<p>我们曾经讲过如何用 <code><a href="/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Object/create">Object.create()</a></code> 方法创建新的对象实例。</p>

Expand Down
4 changes: 2 additions & 2 deletions files/zh-cn/learn/server-side/django/deployment/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
<table class="learn-box standard-table">
<tbody>
<tr>
<th scope="row"><strong style='background-color: #ffe8d4; color: #333333; display: inline !important; float: none; font-family: "Open Sans",arial,x-locale-body,sans-serif; font-size: medium; font-style: normal; font-weight: 700; letter-spacing: normal; text-align: left; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal;'>先决条件</strong></th>
<th scope="row"><strong>先决条件</strong></th>
<td>完成所有先前的教程,包括:
<p><a href="/zh-CN/docs/Learn/Server-side/Django/Testing">在线教学 10:测试 Django 的 Web 应用</a></p>
</td>
</tr>
<tr>
<th scope="row"><strong style='background-color: #ffe8d4; color: #333333; display: inline !important; float: none; font-family: "Open Sans",arial,x-locale-body,sans-serif; font-size: medium; font-style: normal; font-weight: 700; letter-spacing: normal; text-align: left; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal;'>目的</strong></th>
<th scope="row"><strong>目的</strong></th>
<td>了解您可以在何处以及如何将 Django 应用程序部署到生产环境。</td>
</tr>
</tbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ <h2 id="安装Django">安装 Django</h2>
</pre>

<div class="note">
<p><strong style='background-color: #fff3d4; border: 0px; color: #333333; font-family: x-locale-heading-primary,zillaslab,Palatino,"Palatino Linotype",x-locale-heading-secondary,serif; font-size: 18px; font-style: normal; font-weight: 700; letter-spacing: normal; margin: 0px; padding: 0px; text-align: start; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal;'>注意</strong>:如果上面的 Windows 命令没有显示 django 模块,请尝试:</p>
<p><strong>注意</strong>:如果上面的 Windows 命令没有显示 django 模块,请尝试:</p>

<pre class="notranslate"><code>py -m django --version</code></pre>

Expand Down
4 changes: 2 additions & 2 deletions files/zh-cn/learn/server-side/django/home_page/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ <h2 id="定义资源URL">定义资源 URL</h2>
<p>相比之下,最后两个 URL 用于显示有关特定书籍或作者的详细信息 - 这些 URL 将编码要显示在 URL 中的项目的标识(如上所示&lt;id&gt;)。URL 映射器可以提取编码信息并将其传递给视图,然后将动态地确定从数据库获取哪些信息。通过对我们的 URL 中的信息进行编码,我们只需要一个 URL 映射,视图和模板来处理每本书(或作者)。</p>

<div class="note">
<p><strong style='background-color: #fff3d4; border: 0px; color: #333333; font-family: x-locale-heading-primary,zillaslab,Palatino,"Palatino Linotype",x-locale-heading-secondary,serif; font-size: 18px; font-style: normal; font-weight: 700; letter-spacing: normal; margin: 0px; padding: 0px; text-align: start; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal;'>注意</strong>:Django 允许您以任何您喜欢的方式构建您的 URL - 您可以如上所示编码 URL 正文中的信息,或使用 URL <code style='margin: 0px; padding: 0px; border: 0px; font-style: normal; font-weight: normal; font-family: consolas, "Liberation Mono", courier, monospace; word-wrap: break-word; color: rgb(51, 51, 51); font-size: 18px; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; background-color: rgb(255, 243, 212); text-decoration-style: initial;'>GET</code>参数(例如  <code style='margin: 0px; padding: 0px; border: 0px; font-style: normal; font-weight: normal; font-family: consolas, "Liberation Mono", courier, monospace; word-wrap: break-word; color: rgb(51, 51, 51); font-size: 18px; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; background-color: rgb(255, 243, 212); text-decoration-style: initial;'>/book/?id=6</code>)。无论您使用哪种方法,URL 都应保持清洁,逻辑和可读性 (<a href="https://www.w3.org/Provider/Style/URI">check out the W3C advice here</a>).<br>
<p><strong>注意</strong>:Django 允许您以任何您喜欢的方式构建您的 URL - 您可以如上所示编码 URL 正文中的信息,或使用 URL <code style='margin: 0px; padding: 0px; border: 0px; font-style: normal; font-weight: normal; font-family: consolas, "Liberation Mono", courier, monospace; word-wrap: break-word; color: rgb(51, 51, 51); font-size: 18px; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; background-color: rgb(255, 243, 212); text-decoration-style: initial;'>GET</code>参数(例如  <code style='margin: 0px; padding: 0px; border: 0px; font-style: normal; font-weight: normal; font-family: consolas, "Liberation Mono", courier, monospace; word-wrap: break-word; color: rgb(51, 51, 51); font-size: 18px; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; background-color: rgb(255, 243, 212); text-decoration-style: initial;'>/book/?id=6</code>)。无论您使用哪种方法,URL 都应保持清洁,逻辑和可读性 (<a href="https://www.w3.org/Provider/Style/URI">check out the W3C advice here</a>).<br>
<br>
Django 文档倾向于在 URL 的主体中推荐编码信息,这是他们觉得鼓励更好的 URL 设计的实践。</p>
</div>
Expand Down Expand Up @@ -326,7 +326,7 @@ <h2 id="它看起来什么样?">它看起来什么样?</h2>
<p><img alt="Index page for LocalLibrary website" src="index_page_ok.png"></p>

<div class="note">
<p><strong style='background-color: #fff3d4; border: 0px; color: #333333; font-family: x-locale-heading-primary,zillaslab,Palatino,"Palatino Linotype",x-locale-heading-secondary,serif; font-size: 18px; font-style: normal; font-weight: 700; letter-spacing: normal; margin: 0px; padding: 0px; text-align: start; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal;'>注意:</strong>由于尚未定义这些网页的网址,视图和模板,因此您将无法使用“ <strong style='background-color: #fff3d4; border: 0px; color: #333333; font-family: x-locale-heading-primary,zillaslab,Palatino,"Palatino Linotype",x-locale-heading-secondary,serif; font-size: 18px; font-style: normal; font-weight: 700; letter-spacing: normal; margin: 0px; padding: 0px; text-align: start; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal;'>所有图书</strong><strong style='background-color: #fff3d4; border: 0px; color: #333333; font-family: x-locale-heading-primary,zillaslab,Palatino,"Palatino Linotype",x-locale-heading-secondary,serif; font-size: 18px; font-style: normal; font-weight: 700; letter-spacing: normal; margin: 0px; padding: 0px; text-align: start; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal;'>所有作者”</strong>链接(目前我们刚刚在<code style='background-color: rgb(238, 238, 238); color: rgb(51, 51, 51); margin: 0px; padding: 2px 5px; border: 0px; font-style: normal; font-weight: normal; border-radius: 2px; font-family: consolas, "Liberation Mono", courier, monospace; word-wrap: break-word; font-size: 1rem; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; text-decoration-style: initial;'>base_generic.html</code>模板中插入了这些链接的占位符)</p>
<p><strong>注意:</strong>由于尚未定义这些网页的网址,视图和模板,因此您将无法使用“ <strong>所有图书</strong><strong>所有作者”</strong>链接(目前我们刚刚在<code style='background-color: rgb(238, 238, 238); color: rgb(51, 51, 51); margin: 0px; padding: 2px 5px; border: 0px; font-style: normal; font-weight: normal; border-radius: 2px; font-family: consolas, "Liberation Mono", courier, monospace; word-wrap: break-word; font-size: 1rem; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; text-decoration-style: initial;'>base_generic.html</code>模板中插入了这些链接的占位符)</p>
</div>

<h2 id="挑战自己">挑战自己</h2>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h2 id="概述">概述</h2>

<ol>
<li>使用 django-admin 工具创建工程的文件夹,基本的文件模板和工程管理脚本(<strong>manage.py</strong>)。</li>
<li><strong style="line-height: 1.5;">manage.py</strong> 创建一个或多个应用。
<li><strong>manage.py</strong> 创建一个或多个应用。
<div class="note">
<p><strong>注意:</strong>一个网站可能由多个部分组成,比如,主要页面,博客,wiki,下载区域等。Django 鼓励将这些部分作为分开的应用开发。如果这样的话,在需要可以在不同的工程中复用这些应用。</p>
</div>
Expand Down Expand Up @@ -74,7 +74,7 @@ <h2 id="创建项目">创建项目</h2>
<ul>
<li><strong>settings.py</strong> 包含所有的网站设置。这是可以注册所有创建的应用的地方,也是静态文件,数据库配置的地方,等等。</li>
<li><strong>urls.py </strong>定义了网站 url 到 view 的映射<strong></strong>虽然这里可以包含所有的 url,但是更常见的做法是把应用相关的 url 包含在相关应用中,你可以在接下来的教程里看到。</li>
<li><strong style="line-height: 1.5;">wsgi.py</strong> 帮助 Django 应用和网络服务器间的通讯。你可以把这个当作模板。</li>
<li><strong>wsgi.py</strong> 帮助 Django 应用和网络服务器间的通讯。你可以把这个当作模板。</li>
</ul>

<p><strong>manage.py</strong>脚本可以创建应用,和数据库通讯,启动开发用网络服务器。</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ <h3 id="测试路由">测试路由</h3>
</pre>
</li>
<li>如果设置过 <a href="/en-US/docs/Learn/Server-side/Express_Nodejs/skeleton_website">nodemon</a>,则可以使用:
<pre class="brush: bash notranslate">$ DEBUG=express-locallibrary-tutorial:* npm <strong style="font-family: inherit; font-size: 1rem;">run devstart</strong>
<pre class="brush: bash notranslate">$ DEBUG=express-locallibrary-tutorial:* npm <strong>run devstart</strong>
</pre>
</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/learn/server-side/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<p>在现代的网页开发世界里,学习服务器端开发是高度推荐的。</p>

<p><strong style="color: #4d4e53; font-size: 2.143rem; font-weight: 700; letter-spacing: -1px;">学习路径</strong></p>
<p><strong>学习路径</strong></p>

<p>开始服务器端编程通常比客户端编程要简单,因为动态的页面倾向于执行非常类似的操作(从数据库中获取数据然后显示到一个页面中,确认用户输入的数据以及保存到一个数据库中,检查用户的权限和登陆用户,以及更多),并且它是用能使这些和其他的常见网页服务端操作变简单的网页框架来构建的。</p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ <h2 id="绘制路径">绘制路径</h2>

<p>第三,就是闭合路径 closePath(),不是必需的。这个方法会通过绘制一条从当前点到开始点的直线来闭合图形。如果图形是已经闭合了的,即当前点为开始点,该函数什么也不做。</p>

<div class="note"><strong>注意:当你调用 fill() 函数时,所有没有闭合的形状都会自动闭合,所以你不需要调用 closePath() 函数。但是调用 stroke() 时不会自动闭合</strong><strong style="line-height: 1.5;"></strong></div>
<div class="note"><p><strong>备注:</strong> 当你调用 fill() 函数时,所有没有闭合的形状都会自动闭合,所以你不需要调用 closePath() 函数。但是调用 stroke() 时不会自动闭合。</p></div>

<h3 id="绘制一个三角形">绘制一个三角形</h3>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ <h2 id="获得需要绘制的图片">获得需要绘制的图片</h2>
<p>canvas 的 API 可以使用下面这些类型中的一种作为图片的源:</p>

<dl>
<dt><strong style="font-weight: bold;">{{domxref("HTMLImageElement")}}</strong></dt>
<dt><strong>{{domxref("HTMLImageElement")}}</strong></dt>
<dd>这些图片是由<code>Image()函数构造出来的,或者任何的{{HTMLElement("img")}}元素</code></dd>
<dt><strong style="font-weight: bold; line-height: 1.5;">{{domxref("HTMLVideoElement")}}</strong></dt>
<dt><strong>{{domxref("HTMLVideoElement")}}</strong></dt>
<dd>用一个 HTML 的 {{HTMLElement("video")}}元素作为你的图片源,可以从视频中抓取当前帧作为一个图像</dd>
<dt><strong style="font-weight: bold;">{{domxref("HTMLCanvasElement")}}</strong></dt>
<dt><strong>{{domxref("HTMLCanvasElement")}}</strong></dt>
<dd>可以使用另一个 {{HTMLElement("canvas")}} 元素作为你的图片源。</dd>
<dt><strong style="font-weight: bold;">{{domxref("ImageBitmap")}}</strong></dt>
<dt><strong>{{domxref("ImageBitmap")}}</strong></dt>
<dd>这是一个高性能的位图,可以低延迟地绘制,它可以从上述的所有源以及其它几种源中生成。</dd>
</dl>

Expand Down
Loading