aboutsummaryrefslogtreecommitdiff
path: root/api1/pl.treksoft.kvision.i18n/-i18n
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2019-10-26 00:17:24 +0200
committerRobert Jaros <rjaros@finn.pl>2019-10-26 00:17:24 +0200
commitfb7ff5b8bf2073a8d7b78011b9edffc830dc63cb (patch)
tree911c8e9b208b9ba77f00531668d1d99b40fcb8e3 /api1/pl.treksoft.kvision.i18n/-i18n
parent4f5db77ec2db6c87cb93ceb9f7ea9ab311247f17 (diff)
downloadkvision-fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb.tar.gz
kvision-fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb.tar.bz2
kvision-fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb.zip
API documentation for KVision 2.0.0
Diffstat (limited to 'api1/pl.treksoft.kvision.i18n/-i18n')
-rw-r--r--api1/pl.treksoft.kvision.i18n/-i18n/gettext.html21
-rw-r--r--api1/pl.treksoft.kvision.i18n/-i18n/index.html104
-rw-r--r--api1/pl.treksoft.kvision.i18n/-i18n/language.html15
-rw-r--r--api1/pl.treksoft.kvision.i18n/-i18n/manager.html14
-rw-r--r--api1/pl.treksoft.kvision.i18n/-i18n/ngettext.html25
5 files changed, 179 insertions, 0 deletions
diff --git a/api1/pl.treksoft.kvision.i18n/-i18n/gettext.html b/api1/pl.treksoft.kvision.i18n/-i18n/gettext.html
new file mode 100644
index 00000000..7c2fe669
--- /dev/null
+++ b/api1/pl.treksoft.kvision.i18n/-i18n/gettext.html
@@ -0,0 +1,21 @@
+<HTML>
+<HEAD>
+<meta charset="UTF-8">
+<title>I18n.gettext - kvision</title>
+<link rel="stylesheet" href="../../../style.css">
+</HEAD>
+<BODY>
+<a href="../../index.html">kvision</a>&nbsp;/&nbsp;<a href="../index.html">pl.treksoft.kvision.i18n</a>&nbsp;/&nbsp;<a href="index.html">I18n</a>&nbsp;/&nbsp;<a href="./gettext.html">gettext</a><br/>
+<br/>
+<h1>gettext</h1>
+<a name="pl.treksoft.kvision.i18n.I18n$gettext(kotlin.String)"></a>
+<code><span class="keyword">fun </span><span class="identifier">gettext</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.i18n.I18n$gettext(kotlin.String)/key">key</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a></code>
+<p>Overrides <a href="../-i18n-manager/gettext.html">I18nManager.gettext</a></p>
+<p>A static translation function for a singular form.</p>
+<h3>Parameters</h3>
+<p><a name="key"></a>
+<code>key</code> - a translation key.</p>
+<p><strong>Return</strong><br/>
+translated text.</p>
+</BODY>
+</HTML>
diff --git a/api1/pl.treksoft.kvision.i18n/-i18n/index.html b/api1/pl.treksoft.kvision.i18n/-i18n/index.html
new file mode 100644
index 00000000..26b5b34b
--- /dev/null
+++ b/api1/pl.treksoft.kvision.i18n/-i18n/index.html
@@ -0,0 +1,104 @@
+<HTML>
+<HEAD>
+<meta charset="UTF-8">
+<title>I18n - kvision</title>
+<link rel="stylesheet" href="../../../style.css">
+</HEAD>
+<BODY>
+<a href="../../index.html">kvision</a>&nbsp;/&nbsp;<a href="../index.html">pl.treksoft.kvision.i18n</a>&nbsp;/&nbsp;<a href="./index.html">I18n</a><br/>
+<br/>
+<h1>I18n</h1>
+<code><span class="keyword">object </span><span class="identifier">I18n</span>&nbsp;<span class="symbol">:</span>&nbsp;<a href="../-i18n-manager/index.html"><span class="identifier">I18nManager</span></a></code>
+<p>A singleton object used for translations.</p>
+<h3>Properties</h3>
+<table>
+<tbody>
+<tr>
+<td>
+<p><a href="language.html">language</a></p>
+</td>
+<td>
+<code><span class="keyword">var </span><span class="identifier">language</span><span class="symbol">: </span><span class="identifier">&lt;ERROR CLASS&gt;</span></code>
+<p>Main language of the application.</p>
+</td>
+</tr>
+<tr>
+<td>
+<p><a href="manager.html">manager</a></p>
+</td>
+<td>
+<code><span class="keyword">var </span><span class="identifier">manager</span><span class="symbol">: </span><a href="../-i18n-manager/index.html"><span class="identifier">I18nManager</span></a></code></td>
+</tr>
+</tbody>
+</table>
+<h3>Functions</h3>
+<table>
+<tbody>
+<tr>
+<td>
+<p><a href="gettext.html">gettext</a></p>
+</td>
+<td>
+<code><span class="keyword">fun </span><span class="identifier">gettext</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.i18n.I18n$gettext(kotlin.String)/key">key</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a></code>
+<p>A static translation function for a singular form.</p>
+</td>
+</tr>
+<tr>
+<td>
+<p><a href="ngettext.html">ngettext</a></p>
+</td>
+<td>
+<code><span class="keyword">fun </span><span class="identifier">ngettext</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.i18n.I18n$ngettext(kotlin.String, kotlin.String, kotlin.Int)/singularKey">singularKey</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.i18n.I18n$ngettext(kotlin.String, kotlin.String, kotlin.Int)/pluralKey">pluralKey</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.i18n.I18n$ngettext(kotlin.String, kotlin.String, kotlin.Int)/value">value</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a></code>
+<p>A static translation function for a plural form.</p>
+</td>
+</tr>
+</tbody>
+</table>
+<h3>Inherited Functions</h3>
+<table>
+<tbody>
+<tr>
+<td>
+<p><a href="../-i18n-manager/ntr.html">ntr</a></p>
+</td>
+<td>
+<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">ntr</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.i18n.I18nManager$ntr(kotlin.String, kotlin.String, kotlin.Int)/singularKey">singularKey</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.i18n.I18nManager$ntr(kotlin.String, kotlin.String, kotlin.Int)/pluralKey">pluralKey</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.i18n.I18nManager$ntr(kotlin.String, kotlin.String, kotlin.Int)/value">value</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a></code>
+<p>A dynamic translation function for a plural form.</p>
+</td>
+</tr>
+<tr>
+<td>
+<p><a href="../-i18n-manager/tr.html">tr</a></p>
+</td>
+<td>
+<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">tr</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.i18n.I18nManager$tr(kotlin.String)/key">key</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a></code>
+<p>A dynamic translation function for a singular form.</p>
+</td>
+</tr>
+<tr>
+<td>
+<p><a href="../-i18n-manager/trans.html">trans</a></p>
+</td>
+<td>
+<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">trans</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.i18n.I18nManager$trans(kotlin.String)/text">text</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">?</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">?</span></code>
+<p>A dynamic translation function.</p>
+</td>
+</tr>
+</tbody>
+</table>
+<h3>Extension Functions</h3>
+<table>
+<tbody>
+<tr>
+<td>
+<p><a href="../../pl.treksoft.kvision.utils/kotlin.-any/create-instance.html">createInstance</a></p>
+</td>
+<td>
+<code><span class="keyword">fun </span><span class="symbol">&lt;</span><span class="identifier">T</span><span class="symbol">&gt;</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html"><span class="identifier">Any</span></a><span class="symbol">?</span><span class="symbol">.</span><span class="identifier">createInstance</span><span class="symbol">(</span><span class="keyword">vararg</span> <span class="identifier" id="pl.treksoft.kvision.utils$createInstance(kotlin.Any, kotlin.Array((kotlin.Any)))/args">args</span><span class="symbol">:</span>&nbsp;<span class="keyword">dynamic</span><span class="symbol">)</span><span class="symbol">: </span><a href="../../pl.treksoft.kvision.utils/kotlin.-any/create-instance.html#T"><span class="identifier">T</span></a></code>
+<p>Helper function for creating JavaScript objects from dynamic constructors.</p>
+</td>
+</tr>
+</tbody>
+</table>
+</BODY>
+</HTML>
diff --git a/api1/pl.treksoft.kvision.i18n/-i18n/language.html b/api1/pl.treksoft.kvision.i18n/-i18n/language.html
new file mode 100644
index 00000000..e72498f5
--- /dev/null
+++ b/api1/pl.treksoft.kvision.i18n/-i18n/language.html
@@ -0,0 +1,15 @@
+<HTML>
+<HEAD>
+<meta charset="UTF-8">
+<title>I18n.language - kvision</title>
+<link rel="stylesheet" href="../../../style.css">
+</HEAD>
+<BODY>
+<a href="../../index.html">kvision</a>&nbsp;/&nbsp;<a href="../index.html">pl.treksoft.kvision.i18n</a>&nbsp;/&nbsp;<a href="index.html">I18n</a>&nbsp;/&nbsp;<a href="./language.html">language</a><br/>
+<br/>
+<h1>language</h1>
+<a name="pl.treksoft.kvision.i18n.I18n$language"></a>
+<code><span class="keyword">var </span><span class="identifier">language</span><span class="symbol">: </span><span class="identifier">&lt;ERROR CLASS&gt;</span></code>
+<p>Main language of the application.</p>
+</BODY>
+</HTML>
diff --git a/api1/pl.treksoft.kvision.i18n/-i18n/manager.html b/api1/pl.treksoft.kvision.i18n/-i18n/manager.html
new file mode 100644
index 00000000..e5426015
--- /dev/null
+++ b/api1/pl.treksoft.kvision.i18n/-i18n/manager.html
@@ -0,0 +1,14 @@
+<HTML>
+<HEAD>
+<meta charset="UTF-8">
+<title>I18n.manager - kvision</title>
+<link rel="stylesheet" href="../../../style.css">
+</HEAD>
+<BODY>
+<a href="../../index.html">kvision</a>&nbsp;/&nbsp;<a href="../index.html">pl.treksoft.kvision.i18n</a>&nbsp;/&nbsp;<a href="index.html">I18n</a>&nbsp;/&nbsp;<a href="./manager.html">manager</a><br/>
+<br/>
+<h1>manager</h1>
+<a name="pl.treksoft.kvision.i18n.I18n$manager"></a>
+<code><span class="keyword">var </span><span class="identifier">manager</span><span class="symbol">: </span><a href="../-i18n-manager/index.html"><span class="identifier">I18nManager</span></a></code>
+</BODY>
+</HTML>
diff --git a/api1/pl.treksoft.kvision.i18n/-i18n/ngettext.html b/api1/pl.treksoft.kvision.i18n/-i18n/ngettext.html
new file mode 100644
index 00000000..8ad75407
--- /dev/null
+++ b/api1/pl.treksoft.kvision.i18n/-i18n/ngettext.html
@@ -0,0 +1,25 @@
+<HTML>
+<HEAD>
+<meta charset="UTF-8">
+<title>I18n.ngettext - kvision</title>
+<link rel="stylesheet" href="../../../style.css">
+</HEAD>
+<BODY>
+<a href="../../index.html">kvision</a>&nbsp;/&nbsp;<a href="../index.html">pl.treksoft.kvision.i18n</a>&nbsp;/&nbsp;<a href="index.html">I18n</a>&nbsp;/&nbsp;<a href="./ngettext.html">ngettext</a><br/>
+<br/>
+<h1>ngettext</h1>
+<a name="pl.treksoft.kvision.i18n.I18n$ngettext(kotlin.String, kotlin.String, kotlin.Int)"></a>
+<code><span class="keyword">fun </span><span class="identifier">ngettext</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.i18n.I18n$ngettext(kotlin.String, kotlin.String, kotlin.Int)/singularKey">singularKey</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.i18n.I18n$ngettext(kotlin.String, kotlin.String, kotlin.Int)/pluralKey">pluralKey</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.i18n.I18n$ngettext(kotlin.String, kotlin.String, kotlin.Int)/value">value</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a></code>
+<p>Overrides <a href="../-i18n-manager/ngettext.html">I18nManager.ngettext</a></p>
+<p>A static translation function for a plural form.</p>
+<h3>Parameters</h3>
+<p><a name="singularKey"></a>
+<code>singularKey</code> - a translation key for a singular form.</p>
+<p><a name="pluralKey"></a>
+<code>pluralKey</code> - a translation key for a plural form.</p>
+<p><a name="value"></a>
+<code>value</code> - a count value.</p>
+<p><strong>Return</strong><br/>
+translated text.</p>
+</BODY>
+</HTML>