Skip to content

Commit

Permalink
l10n: make labels localizable (closes #327)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres committed May 2, 2017
1 parent 0b87972 commit 709ef7e
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1471,7 +1471,7 @@ <h2>
<dfn>PaymentItem</dfn> dictionary
</h2>
<pre class="idl">
dictionary PaymentItem {
dictionary PaymentItem : Localizable {
required DOMString label;
required PaymentCurrencyAmount amount;
boolean pending = false;
Expand All @@ -1487,8 +1487,8 @@ <h2>
<dfn>label</dfn>
</dt>
<dd>
This is a human-readable description of the item. The <a>user
agent</a> may display this to the user.
A <a>localizable member</a> that represents the description of the
item. The <a>user agent</a> may display this to the user.
</dd>
<dt>
<dfn>amount</dfn>
Expand Down Expand Up @@ -1646,7 +1646,7 @@ <h2>
<dfn>PaymentShippingOption</dfn> dictionary
</h2>
<pre class="idl">
dictionary PaymentShippingOption {
dictionary PaymentShippingOption : Localizable {
required DOMString id;
required DOMString label;
required PaymentCurrencyAmount amount;
Expand All @@ -1673,9 +1673,9 @@ <h2>
<dfn>label</dfn>
</dt>
<dd>
This is a human-readable description of the item. The <a>user
agent</a> SHOULD use this string to display the shipping option to
the user.
A <a>localizable member</a> that represents the description of the
item. The <a>user agent</a> SHOULD use this string to display the
shipping option to the user.
</dd>
<dt>
<dfn>amount</dfn>
Expand Down Expand Up @@ -2306,8 +2306,8 @@ <h2>
to <var>details</var>.<a>modifiers</a>.
</li>
<li>Set
<var>request</var>.<a>[[\serializedModifierData]]</a> to
<var>serializedModifierData</var>.
<var>request</var>.<a>[[\serializedModifierData]]</a>
to <var>serializedModifierData</var>.
</li>
</ol>
</li>
Expand Down Expand Up @@ -2813,6 +2813,11 @@ <h2>
Web IDL
</dt>
<dd>
<p>
The concept of a <dfn>localizable member</dfn> and the
<code><dfn>Localizable</dfn></code> dictionary are defined by
[[!WEBIDL-LS]].
</p>
<p>
When this specification says to <dfn data-cite=
"!WEBIDL-LS#dfn-throw" data-lt="throws">throw</dfn> an error, the
Expand Down

0 comments on commit 709ef7e

Please sign in to comment.