Skip to content

Commit

Permalink
Deploying to gh-pages from @ bbb0b86 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
eemeli committed Mar 18, 2024
1 parent d4f578e commit f14e5b1
Show file tree
Hide file tree
Showing 41 changed files with 179 additions and 178 deletions.
3 changes: 2 additions & 1 deletion _static/pygments.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ span.linenos.special { color: #000000; background-color: #ffffc0; padding-left:
.highlight .nt { color: #204a87; font-weight: bold } /* Name.Tag */
.highlight .nv { color: #000000 } /* Name.Variable */
.highlight .ow { color: #204a87; font-weight: bold } /* Operator.Word */
.highlight .w { color: #f8f8f8; text-decoration: underline } /* Text.Whitespace */
.highlight .pm { color: #000000; font-weight: bold } /* Punctuation.Marker */
.highlight .w { color: #f8f8f8 } /* Text.Whitespace */
.highlight .mb { color: #0000cf; font-weight: bold } /* Literal.Number.Bin */
.highlight .mf { color: #0000cf; font-weight: bold } /* Literal.Number.Float */
.highlight .mh { color: #0000cf; font-weight: bold } /* Literal.Number.Hex */
Expand Down
14 changes: 7 additions & 7 deletions fluent.pygments/1.0/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ <h1>Fluent Syntax Highlighting<a class="headerlink" href="#fluent-syntax-highlig
for <a class="reference external" href="https://projectfluent.org/">Fluent</a> files in Sphinx.</p>
<div class="section" id="installation">
<h2>Installation<a class="headerlink" href="#installation" title="Permalink to this headline"></a></h2>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>pip install fluent.pygments
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>pip<span class="w"> </span>install<span class="w"> </span>fluent.pygments
</pre></div>
</div>
</div>
Expand All @@ -53,18 +53,18 @@ <h2>Usage<a class="headerlink" href="#usage" title="Permalink to this headline">
</div>
<div class="section" id="example">
<h2>Example<a class="headerlink" href="#example" title="Permalink to this headline"></a></h2>
<div class="highlight-fluent notranslate"><div class="highlight"><pre><span></span><span class="cm">### A resource comment for the whole file</span><span class="p"></span>
<div class="highlight-fluent notranslate"><div class="highlight"><pre><span></span><span class="cm">### A resource comment for the whole file</span>

<span class="no">my-key</span><span class="p"> = </span><span class="l">Localize </span><span class="p">{ -</span><span class="no">brand-name</span><span class="p"> }</span>
<span class="p">-</span><span class="no">brand-name</span><span class="p"> = </span><span class="l">Fluent</span><span class="p"></span>
<span class="p">-</span><span class="no">brand-name</span><span class="p"> = </span><span class="l">Fluent</span>

<span class="cm"># $num is the number of strings to localize</span><span class="p"></span>
<span class="cm"># $num is the number of strings to localize</span>
<span class="no">plurals</span><span class="p"> = { </span><span class="nv">$num</span><span class="p"> -&gt;</span>
<span class="p"> [</span><span class="na">one</span><span class="p">] </span><span class="l">One string</span><span class="p"></span>
<span class="p"> *[</span><span class="na">other</span><span class="p">] {</span><span class="nv">$num</span><span class="p">}</span><span class="l"> strings</span><span class="p"></span>
<span class="p"> [</span><span class="na">one</span><span class="p">] </span><span class="l">One string</span>
<span class="p"> *[</span><span class="na">other</span><span class="p">] {</span><span class="nv">$num</span><span class="p">}</span><span class="l"> strings</span>
<span class="p">}</span>
<span class="gr">an error ;-)</span>
<span class="no">Most-strings</span><span class="p"> = </span><span class="l">are just simple strings.</span><span class="p"></span>
<span class="no">Most-strings</span><span class="p"> = </span><span class="l">are just simple strings.</span>
</pre></div>
</div>
</div>
Expand Down
14 changes: 7 additions & 7 deletions fluent.pygments/dev/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ <h1>Fluent Syntax Highlighting<a class="headerlink" href="#fluent-syntax-highlig
for <a class="reference external" href="https://projectfluent.org/">Fluent</a> files in Sphinx.</p>
<div class="section" id="installation">
<h2>Installation<a class="headerlink" href="#installation" title="Permalink to this headline"></a></h2>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>pip install fluent.pygments
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>pip<span class="w"> </span>install<span class="w"> </span>fluent.pygments
</pre></div>
</div>
</div>
Expand All @@ -53,18 +53,18 @@ <h2>Usage<a class="headerlink" href="#usage" title="Permalink to this headline">
</div>
<div class="section" id="example">
<h2>Example<a class="headerlink" href="#example" title="Permalink to this headline"></a></h2>
<div class="highlight-fluent notranslate"><div class="highlight"><pre><span></span><span class="cm">### A resource comment for the whole file</span><span class="p"></span>
<div class="highlight-fluent notranslate"><div class="highlight"><pre><span></span><span class="cm">### A resource comment for the whole file</span>

<span class="no">my-key</span><span class="p"> = </span><span class="l">Localize </span><span class="p">{ -</span><span class="no">brand-name</span><span class="p"> }</span>
<span class="p">-</span><span class="no">brand-name</span><span class="p"> = </span><span class="l">Fluent</span><span class="p"></span>
<span class="p">-</span><span class="no">brand-name</span><span class="p"> = </span><span class="l">Fluent</span>

<span class="cm"># $num is the number of strings to localize</span><span class="p"></span>
<span class="cm"># $num is the number of strings to localize</span>
<span class="no">plurals</span><span class="p"> = { </span><span class="nv">$num</span><span class="p"> -&gt;</span>
<span class="p"> [</span><span class="na">one</span><span class="p">] </span><span class="l">One string</span><span class="p"></span>
<span class="p"> *[</span><span class="na">other</span><span class="p">] {</span><span class="nv">$num</span><span class="p">}</span><span class="l"> strings</span><span class="p"></span>
<span class="p"> [</span><span class="na">one</span><span class="p">] </span><span class="l">One string</span>
<span class="p"> *[</span><span class="na">other</span><span class="p">] {</span><span class="nv">$num</span><span class="p">}</span><span class="l"> strings</span>
<span class="p">}</span>
<span class="gr">an error ;-)</span>
<span class="no">Most-strings</span><span class="p"> = </span><span class="l">are just simple strings.</span><span class="p"></span>
<span class="no">Most-strings</span><span class="p"> = </span><span class="l">are just simple strings.</span>
</pre></div>
</div>
</div>
Expand Down
14 changes: 7 additions & 7 deletions fluent.pygments/stable/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ <h1>Fluent Syntax Highlighting<a class="headerlink" href="#fluent-syntax-highlig
for <a class="reference external" href="https://projectfluent.org/">Fluent</a> files in Sphinx.</p>
<div class="section" id="installation">
<h2>Installation<a class="headerlink" href="#installation" title="Permalink to this headline"></a></h2>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>pip install fluent.pygments
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>pip<span class="w"> </span>install<span class="w"> </span>fluent.pygments
</pre></div>
</div>
</div>
Expand All @@ -53,18 +53,18 @@ <h2>Usage<a class="headerlink" href="#usage" title="Permalink to this headline">
</div>
<div class="section" id="example">
<h2>Example<a class="headerlink" href="#example" title="Permalink to this headline"></a></h2>
<div class="highlight-fluent notranslate"><div class="highlight"><pre><span></span><span class="cm">### A resource comment for the whole file</span><span class="p"></span>
<div class="highlight-fluent notranslate"><div class="highlight"><pre><span></span><span class="cm">### A resource comment for the whole file</span>

<span class="no">my-key</span><span class="p"> = </span><span class="l">Localize </span><span class="p">{ -</span><span class="no">brand-name</span><span class="p"> }</span>
<span class="p">-</span><span class="no">brand-name</span><span class="p"> = </span><span class="l">Fluent</span><span class="p"></span>
<span class="p">-</span><span class="no">brand-name</span><span class="p"> = </span><span class="l">Fluent</span>

<span class="cm"># $num is the number of strings to localize</span><span class="p"></span>
<span class="cm"># $num is the number of strings to localize</span>
<span class="no">plurals</span><span class="p"> = { </span><span class="nv">$num</span><span class="p"> -&gt;</span>
<span class="p"> [</span><span class="na">one</span><span class="p">] </span><span class="l">One string</span><span class="p"></span>
<span class="p"> *[</span><span class="na">other</span><span class="p">] {</span><span class="nv">$num</span><span class="p">}</span><span class="l"> strings</span><span class="p"></span>
<span class="p"> [</span><span class="na">one</span><span class="p">] </span><span class="l">One string</span>
<span class="p"> *[</span><span class="na">other</span><span class="p">] {</span><span class="nv">$num</span><span class="p">}</span><span class="l"> strings</span>
<span class="p">}</span>
<span class="gr">an error ;-)</span>
<span class="no">Most-strings</span><span class="p"> = </span><span class="l">are just simple strings.</span><span class="p"></span>
<span class="no">Most-strings</span><span class="p"> = </span><span class="l">are just simple strings.</span>
</pre></div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion fluent.runtime/0.3.1/_modules/fluent/runtime.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ <h1>Source code for fluent.runtime</h1><div class="highlight"><pre>


<div class="viewcode-block" id="FluentBundle"><a class="viewcode-back" href="../../reference.html#fluent.runtime.FluentBundle">[docs]</a><span class="k">class</span> <span class="nc">FluentBundle</span><span class="p">(</span><span class="nb">object</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Bundles are single-language stores of translations. They are</span>
<span class="sd"> aggregate parsed Fluent resources in the Fluent syntax and can</span>
<span class="sd"> format translation units (entities) to strings.</span>
Expand Down
10 changes: 5 additions & 5 deletions fluent.runtime/0.3.1/_modules/fluent/runtime/fallback.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ <h1>Source code for fluent.runtime.fallback</h1><div class="highlight"><pre>


<div class="viewcode-block" id="FluentLocalization"><a class="viewcode-back" href="../../../reference.html#fluent.runtime.FluentLocalization">[docs]</a><span class="k">class</span> <span class="nc">FluentLocalization</span><span class="p">(</span><span class="nb">object</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Generic API for Fluent applications.</span>

<span class="sd"> This handles language fallback, bundle creation and string localization.</span>
Expand Down Expand Up @@ -109,11 +109,11 @@ <h1>Source code for fluent.runtime.fallback</h1><div class="highlight"><pre>


<div class="viewcode-block" id="AbstractResourceLoader"><a class="viewcode-back" href="../../../reference.html#fluent.runtime.AbstractResourceLoader">[docs]</a><span class="k">class</span> <span class="nc">AbstractResourceLoader</span><span class="p">(</span><span class="nb">object</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Interface to implement for resource loaders.</span>
<span class="sd"> &quot;&quot;&quot;</span>
<div class="viewcode-block" id="AbstractResourceLoader.resources"><a class="viewcode-back" href="../../../reference.html#fluent.runtime.AbstractResourceLoader.resources">[docs]</a> <span class="k">def</span> <span class="nf">resources</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">locale</span><span class="p">,</span> <span class="n">resource_ids</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Yield lists of FluentResource objects, corresponding to</span>
<span class="sd"> each of the resource_ids.</span>
<span class="sd"> If there are multiple locations, this may yield multiple lists.</span>
Expand All @@ -124,7 +124,7 @@ <h1>Source code for fluent.runtime.fallback</h1><div class="highlight"><pre>


<div class="viewcode-block" id="FluentResourceLoader"><a class="viewcode-back" href="../../../reference.html#fluent.runtime.FluentResourceLoader">[docs]</a><span class="k">class</span> <span class="nc">FluentResourceLoader</span><span class="p">(</span><span class="n">AbstractResourceLoader</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Resource loader to read Fluent files from disk.</span>

<span class="sd"> Different locales are in different locations based on locale code.</span>
Expand All @@ -134,7 +134,7 @@ <h1>Source code for fluent.runtime.fallback</h1><div class="highlight"><pre>
<span class="sd"> different roots.</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">roots</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Create a resource loader. The roots may be a string for a single</span>
<span class="sd"> location on disk, or a list of strings.</span>
<span class="sd"> &quot;&quot;&quot;</span>
Expand Down
16 changes: 8 additions & 8 deletions fluent.runtime/0.3.1/usage.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ <h2>Using FluentLocalization<a class="headerlink" href="#using-fluentlocalizatio
</pre></div>
</div>
<p>and <code class="docutils literal notranslate"><span class="pre">l10n/de/main.ftl</span></code> with:</p>
<div class="highlight-fluent notranslate"><div class="highlight"><pre><span></span><span class="no">second-string</span><span class="p"> = </span><span class="l">Eine Übersetzung</span><span class="p"></span>
<div class="highlight-fluent notranslate"><div class="highlight"><pre><span></span><span class="no">second-string</span><span class="p"> = </span><span class="l">Eine Übersetzung</span>
</pre></div>
</div>
<p>as well as <code class="docutils literal notranslate"><span class="pre">l10n/en-US/main.ftl</span></code> with:</p>
<div class="highlight-fluent notranslate"><div class="highlight"><pre><span></span><span class="no">my-first-string</span><span class="p"> = </span><span class="l">Fluent can be easy</span><span class="p"></span>
<span class="no">second-string</span><span class="p"> = </span><span class="l">An original string</span><span class="p"></span>
<div class="highlight-fluent notranslate"><div class="highlight"><pre><span></span><span class="no">my-first-string</span><span class="p"> = </span><span class="l">Fluent can be easy</span>
<span class="no">second-string</span><span class="p"> = </span><span class="l">An original string</span>
</pre></div>
</div>
<p>As you can see, our first example returned the English string, as that’s on
Expand Down Expand Up @@ -233,7 +233,7 @@ <h3>Custom functions<a class="headerlink" href="#custom-functions" title="Permal
<code class="docutils literal notranslate"><span class="pre">functions</span></code> dictionary to the <code class="docutils literal notranslate"><span class="pre">FluentLocalization</span></code> constructor:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">platform</span>
<span class="gp">&gt;&gt;&gt; </span><span class="k">def</span> <span class="nf">os_name</span><span class="p">():</span>
<span class="gp">... </span> <span class="sd">&quot;&quot;&quot;Returns linux/mac/windows/other&quot;&quot;&quot;</span>
<span class="gp">... </span><span class="w"> </span><span class="sd">&quot;&quot;&quot;Returns linux/mac/windows/other&quot;&quot;&quot;</span>
<span class="gp">... </span> <span class="k">return</span> <span class="p">{</span><span class="s1">&#39;Linux&#39;</span><span class="p">:</span> <span class="s1">&#39;linux&#39;</span><span class="p">,</span>
<span class="gp">... </span> <span class="s1">&#39;Darwin&#39;</span><span class="p">:</span> <span class="s1">&#39;mac&#39;</span><span class="p">,</span>
<span class="gp">... </span> <span class="s1">&#39;Windows&#39;</span><span class="p">:</span> <span class="s1">&#39;windows&#39;</span><span class="p">}</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="n">platform</span><span class="o">.</span><span class="n">system</span><span class="p">(),</span> <span class="s1">&#39;other&#39;</span><span class="p">)</span>
Expand All @@ -245,10 +245,10 @@ <h3>Custom functions<a class="headerlink" href="#custom-functions" title="Permal
</div>
<p>That’s with <code class="docutils literal notranslate"><span class="pre">l10n/en-US/os.ftl</span></code> as:</p>
<div class="highlight-fluent notranslate"><div class="highlight"><pre><span></span><span class="no">welcome</span><span class="p"> = { </span><span class="no">OS</span><span class="p">() -&gt;</span>
<span class="p"> [</span><span class="na">linux</span><span class="p">] </span><span class="l">Welcome to Linux</span><span class="p"></span>
<span class="p"> [</span><span class="na">mac</span><span class="p">] </span><span class="l">Welcome to Mac</span><span class="p"></span>
<span class="p"> [</span><span class="na">windows</span><span class="p">] </span><span class="l">Welcome to Windows</span><span class="p"></span>
<span class="p"> *[</span><span class="na">other</span><span class="p">] </span><span class="l">Welcome</span><span class="p"></span>
<span class="p"> [</span><span class="na">linux</span><span class="p">] </span><span class="l">Welcome to Linux</span>
<span class="p"> [</span><span class="na">mac</span><span class="p">] </span><span class="l">Welcome to Mac</span>
<span class="p"> [</span><span class="na">windows</span><span class="p">] </span><span class="l">Welcome to Windows</span>
<span class="p"> *[</span><span class="na">other</span><span class="p">] </span><span class="l">Welcome</span>
<span class="p"> }</span>
</pre></div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion fluent.runtime/0.4.0/_modules/fluent/runtime/bundle.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ <h1>Source code for fluent.runtime.bundle</h1><div class="highlight"><pre>


<div class="viewcode-block" id="FluentBundle"><a class="viewcode-back" href="../../../reference.html#fluent.runtime.FluentBundle">[docs]</a><span class="k">class</span> <span class="nc">FluentBundle</span><span class="p">:</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Bundles are single-language stores of translations. They are</span>
<span class="sd"> aggregate parsed Fluent resources in the Fluent syntax and can</span>
<span class="sd"> format translation units (entities) to strings.</span>
Expand Down
Loading

0 comments on commit f14e5b1

Please sign in to comment.