Skip to content

Commit bdfef84

Browse files
committed
Deploying to gh-pages from @ 7948acf 🚀
1 parent 0d9bde0 commit bdfef84

13 files changed

Lines changed: 13 additions & 13 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</li><li class="drawermainmenu-page"><a href="https://github.com/ocsigen" class="ocsimore_phrasing_link">Source code</a>
4646
</li></ul><nav class="how-doctree"><h1>Ocsigen-i18n</h1><h2><a href="intro" class="ocsimore_phrasing_link">Introduction</a></h2><h2><a href="generator" class="ocsimore_phrasing_link">Code generator</a></h2><h2><a href="ppx" class="ocsimore_phrasing_link">PPX rewriter</a></h2><h2><a href="templates" class="ocsimore_phrasing_link">Template syntax</a></h2></nav></nav></aside></div><p class="reasonwarning">Warning: Reason support is experimental.
4747
We are looking for beta-tester and contributors.
48-
</p><button id="reason">Switch to </button><div class="twocols"><nav class="leftcol">Version <select class="how-versions" onchange="location = this.value;"><option value=".././../dev/manual/generator">dev</option><option value=".././../2.0/manual/generator">2.0</option><option value=".././../1.0/manual/generator" selected="selected">1.0</option></select><nav class="how-doctree"><h1>Ocsigen-i18n</h1><h2><a href="intro" class="ocsimore_phrasing_link">Introduction</a></h2><h2><a href="generator" class="ocsimore_phrasing_link">Code generator</a></h2><h2><a href="ppx" class="ocsimore_phrasing_link">PPX rewriter</a></h2><h2><a href="templates" class="ocsimore_phrasing_link">Template syntax</a></h2></nav></nav><article class="rightcol"><h1>Code generator</h1><p>The <span class="teletype">ocsigen-i18n-generator</span> command reads a TSV file and
48+
</p><button id="reason">Switch to </button><div class="twocols"><nav class="leftcol">Version <select class="how-versions" onchange="location = this.value;"><option value=".././../dev/manual/generator">dev</option><option value=".././../5.0/manual/generator">5.0</option><option value=".././../4.0/manual/generator" selected="selected">4.0</option></select><nav class="how-doctree"><h1>Ocsigen-i18n</h1><h2><a href="intro" class="ocsimore_phrasing_link">Introduction</a></h2><h2><a href="generator" class="ocsimore_phrasing_link">Code generator</a></h2><h2><a href="ppx" class="ocsimore_phrasing_link">PPX rewriter</a></h2><h2><a href="templates" class="ocsimore_phrasing_link">Template syntax</a></h2></nav></nav><article class="rightcol"><h1>Code generator</h1><p>The <span class="teletype">ocsigen-i18n-generator</span> command reads a TSV file and
4949
produces an Eliom source file (<span class="teletype">.eliom</span>) containing the
5050
translations as OCaml functions.
5151
</p><h2>Usage</h2><pre>ocsigen-i18n-generator [options] [&lt; input] [&gt; output]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</li><li class="drawermainmenu-page"><a href="https://github.com/ocsigen" class="ocsimore_phrasing_link">Source code</a>
4646
</li></ul><nav class="how-doctree"><h1>Ocsigen-i18n</h1><h2><a href="intro" class="ocsimore_phrasing_link">Introduction</a></h2><h2><a href="generator" class="ocsimore_phrasing_link">Code generator</a></h2><h2><a href="ppx" class="ocsimore_phrasing_link">PPX rewriter</a></h2><h2><a href="templates" class="ocsimore_phrasing_link">Template syntax</a></h2></nav></nav></aside></div><p class="reasonwarning">Warning: Reason support is experimental.
4747
We are looking for beta-tester and contributors.
48-
</p><button id="reason">Switch to </button><div class="twocols"><nav class="leftcol">Version <select class="how-versions" onchange="location = this.value;"><option value=".././../dev/manual/intro">dev</option><option value=".././../2.0/manual/intro">2.0</option><option value=".././../1.0/manual/intro" selected="selected">1.0</option></select><nav class="how-doctree"><h1>Ocsigen-i18n</h1><h2><a href="intro" class="ocsimore_phrasing_link">Introduction</a></h2><h2><a href="generator" class="ocsimore_phrasing_link">Code generator</a></h2><h2><a href="ppx" class="ocsimore_phrasing_link">PPX rewriter</a></h2><h2><a href="templates" class="ocsimore_phrasing_link">Template syntax</a></h2></nav></nav><article class="rightcol"><h1>Introduction</h1><p>Ocsigen-i18n provides internationalisation (i18n) support for
48+
</p><button id="reason">Switch to </button><div class="twocols"><nav class="leftcol">Version <select class="how-versions" onchange="location = this.value;"><option value=".././../dev/manual/intro">dev</option><option value=".././../5.0/manual/intro">5.0</option><option value=".././../4.0/manual/intro" selected="selected">4.0</option></select><nav class="how-doctree"><h1>Ocsigen-i18n</h1><h2><a href="intro" class="ocsimore_phrasing_link">Introduction</a></h2><h2><a href="generator" class="ocsimore_phrasing_link">Code generator</a></h2><h2><a href="ppx" class="ocsimore_phrasing_link">PPX rewriter</a></h2><h2><a href="templates" class="ocsimore_phrasing_link">Template syntax</a></h2></nav></nav><article class="rightcol"><h1>Introduction</h1><p>Ocsigen-i18n provides internationalisation (i18n) support for
4949
OCaml Web applications built with <a href=".././../../eliom" class="ocsimore_phrasing_link">Eliom</a>.
5050
</p><p>Translations are described in TSV (tab-separated values) files.
5151
A code generator produces an Eliom file with the translations,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</li><li class="drawermainmenu-page"><a href="https://github.com/ocsigen" class="ocsimore_phrasing_link">Source code</a>
4646
</li></ul><nav class="how-doctree"><h1>Ocsigen-i18n</h1><h2><a href="intro" class="ocsimore_phrasing_link">Introduction</a></h2><h2><a href="generator" class="ocsimore_phrasing_link">Code generator</a></h2><h2><a href="ppx" class="ocsimore_phrasing_link">PPX rewriter</a></h2><h2><a href="templates" class="ocsimore_phrasing_link">Template syntax</a></h2></nav></nav></aside></div><p class="reasonwarning">Warning: Reason support is experimental.
4747
We are looking for beta-tester and contributors.
48-
</p><button id="reason">Switch to </button><div class="twocols"><nav class="leftcol">Version <select class="how-versions" onchange="location = this.value;"><option value=".././../dev/manual/ppx">dev</option><option value=".././../2.0/manual/ppx">2.0</option><option value=".././../1.0/manual/ppx" selected="selected">1.0</option></select><nav class="how-doctree"><h1>Ocsigen-i18n</h1><h2><a href="intro" class="ocsimore_phrasing_link">Introduction</a></h2><h2><a href="generator" class="ocsimore_phrasing_link">Code generator</a></h2><h2><a href="ppx" class="ocsimore_phrasing_link">PPX rewriter</a></h2><h2><a href="templates" class="ocsimore_phrasing_link">Template syntax</a></h2></nav></nav><article class="rightcol"><h1>PPX rewriter</h1><p>The <span class="teletype">ocsigen-i18n-rewriter</span> PPX extension transforms
48+
</p><button id="reason">Switch to </button><div class="twocols"><nav class="leftcol">Version <select class="how-versions" onchange="location = this.value;"><option value=".././../dev/manual/ppx">dev</option><option value=".././../5.0/manual/ppx">5.0</option><option value=".././../4.0/manual/ppx" selected="selected">4.0</option></select><nav class="how-doctree"><h1>Ocsigen-i18n</h1><h2><a href="intro" class="ocsimore_phrasing_link">Introduction</a></h2><h2><a href="generator" class="ocsimore_phrasing_link">Code generator</a></h2><h2><a href="ppx" class="ocsimore_phrasing_link">PPX rewriter</a></h2><h2><a href="templates" class="ocsimore_phrasing_link">Template syntax</a></h2></nav></nav><article class="rightcol"><h1>PPX rewriter</h1><p>The <span class="teletype">ocsigen-i18n-rewriter</span> PPX extension transforms
4949
<span class="teletype">[%i18n ...]</span> expressions into calls to the generated translation
5050
functions.
5151
</p><h2>Setup</h2><p>Add the PPX to your dune file:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</li><li class="drawermainmenu-page"><a href="https://github.com/ocsigen" class="ocsimore_phrasing_link">Source code</a>
4646
</li></ul><nav class="how-doctree"><h1>Ocsigen-i18n</h1><h2><a href="intro" class="ocsimore_phrasing_link">Introduction</a></h2><h2><a href="generator" class="ocsimore_phrasing_link">Code generator</a></h2><h2><a href="ppx" class="ocsimore_phrasing_link">PPX rewriter</a></h2><h2><a href="templates" class="ocsimore_phrasing_link">Template syntax</a></h2></nav></nav></aside></div><p class="reasonwarning">Warning: Reason support is experimental.
4747
We are looking for beta-tester and contributors.
48-
</p><button id="reason">Switch to </button><div class="twocols"><nav class="leftcol">Version <select class="how-versions" onchange="location = this.value;"><option value=".././../dev/manual/templates">dev</option><option value=".././../2.0/manual/templates" selected="selected">2.0</option><option value=".././../1.0/manual/templates">1.0</option></select><nav class="how-doctree"><h1>Ocsigen-i18n</h1><h2><a href="intro" class="ocsimore_phrasing_link">Introduction</a></h2><h2><a href="generator" class="ocsimore_phrasing_link">Code generator</a></h2><h2><a href="ppx" class="ocsimore_phrasing_link">PPX rewriter</a></h2><h2><a href="templates" class="ocsimore_phrasing_link">Template syntax</a></h2></nav></nav><article class="rightcol"><h1>Template syntax</h1><p>Translations are defined in a TSV file. The first column is the key
48+
</p><button id="reason">Switch to </button><div class="twocols"><nav class="leftcol">Version <select class="how-versions" onchange="location = this.value;"><option value=".././../dev/manual/templates">dev</option><option value=".././../5.0/manual/templates">5.0</option><option value=".././../4.0/manual/templates" selected="selected">4.0</option></select><nav class="how-doctree"><h1>Ocsigen-i18n</h1><h2><a href="intro" class="ocsimore_phrasing_link">Introduction</a></h2><h2><a href="generator" class="ocsimore_phrasing_link">Code generator</a></h2><h2><a href="ppx" class="ocsimore_phrasing_link">PPX rewriter</a></h2><h2><a href="templates" class="ocsimore_phrasing_link">Template syntax</a></h2></nav></nav><article class="rightcol"><h1>Template syntax</h1><p>Translations are defined in a TSV file. The first column is the key
4949
(used as the OCaml function name). The following columns are the
5050
translations for each language, in the order specified by the
5151
<span class="teletype">--languages</span> option.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</li><li class="drawermainmenu-page"><a href="https://github.com/ocsigen" class="ocsimore_phrasing_link">Source code</a>
4646
</li></ul><nav class="how-doctree"><h1>Ocsigen-i18n</h1><h2><a href="intro" class="ocsimore_phrasing_link">Introduction</a></h2><h2><a href="generator" class="ocsimore_phrasing_link">Code generator</a></h2><h2><a href="ppx" class="ocsimore_phrasing_link">PPX rewriter</a></h2><h2><a href="templates" class="ocsimore_phrasing_link">Template syntax</a></h2></nav></nav></aside></div><p class="reasonwarning">Warning: Reason support is experimental.
4747
We are looking for beta-tester and contributors.
48-
</p><button id="reason">Switch to </button><div class="twocols"><nav class="leftcol">Version <select class="how-versions" onchange="location = this.value;"><option value=".././../dev/manual/generator">dev</option><option value=".././../2.0/manual/generator" selected="selected">2.0</option><option value=".././../1.0/manual/generator">1.0</option></select><nav class="how-doctree"><h1>Ocsigen-i18n</h1><h2><a href="intro" class="ocsimore_phrasing_link">Introduction</a></h2><h2><a href="generator" class="ocsimore_phrasing_link">Code generator</a></h2><h2><a href="ppx" class="ocsimore_phrasing_link">PPX rewriter</a></h2><h2><a href="templates" class="ocsimore_phrasing_link">Template syntax</a></h2></nav></nav><article class="rightcol"><h1>Code generator</h1><p>The <span class="teletype">ocsigen-i18n</span> command reads a TSV file and produces an OCaml
48+
</p><button id="reason">Switch to </button><div class="twocols"><nav class="leftcol">Version <select class="how-versions" onchange="location = this.value;"><option value=".././../dev/manual/generator">dev</option><option value=".././../5.0/manual/generator" selected="selected">5.0</option><option value=".././../4.0/manual/generator">4.0</option></select><nav class="how-doctree"><h1>Ocsigen-i18n</h1><h2><a href="intro" class="ocsimore_phrasing_link">Introduction</a></h2><h2><a href="generator" class="ocsimore_phrasing_link">Code generator</a></h2><h2><a href="ppx" class="ocsimore_phrasing_link">PPX rewriter</a></h2><h2><a href="templates" class="ocsimore_phrasing_link">Template syntax</a></h2></nav></nav><article class="rightcol"><h1>Code generator</h1><p>The <span class="teletype">ocsigen-i18n</span> command reads a TSV file and produces an OCaml
4949
source file containing the translations as OCaml functions.
5050
</p><h2>Usage</h2><pre>ocsigen-i18n [options] [&lt; input] [&gt; output]
5151
</pre><h2>Options</h2><table><tr><td><span class="teletype">--languages</span></td><td>Comma-separated languages (e.g. <span class="teletype">en,fr</span>). Must be ordered as in the TSV file.</td></tr><tr><td><span class="teletype">--default-language</span></td><td>Set the default language (defaults to the first one in <span class="teletype">--languages</span>).</td></tr><tr><td><span class="teletype">--input-file</span></td><td>TSV file. If omitted or set to <span class="teletype">-</span>, reads from stdin.</td></tr><tr><td><span class="teletype">--output-file</span></td><td>Output file. If omitted or set to <span class="teletype">-</span>, writes to stdout.</td></tr><tr><td><span class="teletype">--external-type</span></td><td>Language values come from a predefined type (do not generate the type).</td></tr><tr><td><span class="teletype">--primary</span></td><td>Generated file is secondary and depends on the given primary file.</td></tr><tr><td><span class="teletype">--eliom</span></td><td>Generate code for a client-server Eliom app (implies <span class="teletype">--tyxml</span>).</td></tr><tr><td><span class="teletype">--tyxml</span></td><td>Generate code for a Tyxml-based app.</td></tr><tr><td><span class="teletype">--header</span></td><td>Generate only the file header (types and utility functions, without translations).</td></tr></table><h2>Generation modes</h2><h3>Default mode (no flags)</h3><p>Generates plain OCaml code:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</li><li class="drawermainmenu-page"><a href="https://github.com/ocsigen" class="ocsimore_phrasing_link">Source code</a>
4646
</li></ul><nav class="how-doctree"><h1>Ocsigen-i18n</h1><h2><a href="intro" class="ocsimore_phrasing_link">Introduction</a></h2><h2><a href="generator" class="ocsimore_phrasing_link">Code generator</a></h2><h2><a href="ppx" class="ocsimore_phrasing_link">PPX rewriter</a></h2><h2><a href="templates" class="ocsimore_phrasing_link">Template syntax</a></h2></nav></nav></aside></div><p class="reasonwarning">Warning: Reason support is experimental.
4747
We are looking for beta-tester and contributors.
48-
</p><button id="reason">Switch to </button><div class="twocols"><nav class="leftcol">Version <select class="how-versions" onchange="location = this.value;"><option value=".././../dev/manual/intro">dev</option><option value=".././../2.0/manual/intro" selected="selected">2.0</option><option value=".././../1.0/manual/intro">1.0</option></select><nav class="how-doctree"><h1>Ocsigen-i18n</h1><h2><a href="intro" class="ocsimore_phrasing_link">Introduction</a></h2><h2><a href="generator" class="ocsimore_phrasing_link">Code generator</a></h2><h2><a href="ppx" class="ocsimore_phrasing_link">PPX rewriter</a></h2><h2><a href="templates" class="ocsimore_phrasing_link">Template syntax</a></h2></nav></nav><article class="rightcol"><h1>Introduction</h1><p>Ocsigen-i18n provides internationalisation (i18n) support for
48+
</p><button id="reason">Switch to </button><div class="twocols"><nav class="leftcol">Version <select class="how-versions" onchange="location = this.value;"><option value=".././../dev/manual/intro">dev</option><option value=".././../5.0/manual/intro" selected="selected">5.0</option><option value=".././../4.0/manual/intro">4.0</option></select><nav class="how-doctree"><h1>Ocsigen-i18n</h1><h2><a href="intro" class="ocsimore_phrasing_link">Introduction</a></h2><h2><a href="generator" class="ocsimore_phrasing_link">Code generator</a></h2><h2><a href="ppx" class="ocsimore_phrasing_link">PPX rewriter</a></h2><h2><a href="templates" class="ocsimore_phrasing_link">Template syntax</a></h2></nav></nav><article class="rightcol"><h1>Introduction</h1><p>Ocsigen-i18n provides internationalisation (i18n) support for
4949
OCaml applications.
5050
</p><p>Translations are described in TSV (tab-separated values) files.
5151
A code generator produces an OCaml source file with the translations,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</li><li class="drawermainmenu-page"><a href="https://github.com/ocsigen" class="ocsimore_phrasing_link">Source code</a>
4646
</li></ul><nav class="how-doctree"><h1>Ocsigen-i18n</h1><h2><a href="intro" class="ocsimore_phrasing_link">Introduction</a></h2><h2><a href="generator" class="ocsimore_phrasing_link">Code generator</a></h2><h2><a href="ppx" class="ocsimore_phrasing_link">PPX rewriter</a></h2><h2><a href="templates" class="ocsimore_phrasing_link">Template syntax</a></h2></nav></nav></aside></div><p class="reasonwarning">Warning: Reason support is experimental.
4747
We are looking for beta-tester and contributors.
48-
</p><button id="reason">Switch to </button><div class="twocols"><nav class="leftcol">Version <select class="how-versions" onchange="location = this.value;"><option value=".././../dev/manual/ppx">dev</option><option value=".././../2.0/manual/ppx" selected="selected">2.0</option><option value=".././../1.0/manual/ppx">1.0</option></select><nav class="how-doctree"><h1>Ocsigen-i18n</h1><h2><a href="intro" class="ocsimore_phrasing_link">Introduction</a></h2><h2><a href="generator" class="ocsimore_phrasing_link">Code generator</a></h2><h2><a href="ppx" class="ocsimore_phrasing_link">PPX rewriter</a></h2><h2><a href="templates" class="ocsimore_phrasing_link">Template syntax</a></h2></nav></nav><article class="rightcol"><h1>PPX rewriter</h1><p>The <span class="teletype">ocsigen-i18n-rewriter</span> PPX extension transforms
48+
</p><button id="reason">Switch to </button><div class="twocols"><nav class="leftcol">Version <select class="how-versions" onchange="location = this.value;"><option value=".././../dev/manual/ppx">dev</option><option value=".././../5.0/manual/ppx" selected="selected">5.0</option><option value=".././../4.0/manual/ppx">4.0</option></select><nav class="how-doctree"><h1>Ocsigen-i18n</h1><h2><a href="intro" class="ocsimore_phrasing_link">Introduction</a></h2><h2><a href="generator" class="ocsimore_phrasing_link">Code generator</a></h2><h2><a href="ppx" class="ocsimore_phrasing_link">PPX rewriter</a></h2><h2><a href="templates" class="ocsimore_phrasing_link">Template syntax</a></h2></nav></nav><article class="rightcol"><h1>PPX rewriter</h1><p>The <span class="teletype">ocsigen-i18n-rewriter</span> PPX extension transforms
4949
<span class="teletype">[%i18n ...]</span> expressions into calls to the generated translation
5050
functions.
5151
</p><h2>Setup</h2><p>Add the PPX to your dune file:

0 commit comments

Comments
 (0)