aboutsummaryrefslogtreecommitdiff
path: root/api/pl.treksoft.kvision.core/-widget/translate.html
blob: 75d4a031fb852eeaf93391a69e41847a64dc1a72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<HTML>
<HEAD>
<meta charset="UTF-8">
<title>Widget.translate - 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.core</a>&nbsp;/&nbsp;<a href="index.html">Widget</a>&nbsp;/&nbsp;<a href="./translate.html">translate</a><br/>
<br/>
<h1>translate</h1>
<a name="pl.treksoft.kvision.core.Widget$translate(kotlin.String)"></a>
<code><span class="keyword">protected</span> <span class="keyword">fun </span><span class="identifier">translate</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.core.Widget$translate(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><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a></code>
<p>Translates given text with I18n trans function and sets lastLanguage marker.</p>
<h3>Parameters</h3>
<p><a name="text"></a>
<code>text</code> - a text marked for a dynamic translation</p>
<p><strong>Return</strong><br/>
translated text</p>
<a name="pl.treksoft.kvision.core.Widget$translate(kotlin.String)"></a>
<code><span class="keyword">protected</span> <span class="keyword">fun </span><span class="identifier">translate</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.core.Widget$translate(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>
</BODY>
</HTML>