This commit is contained in:
InsanusMokrassar 2023-12-21 21:24:29 +00:00
parent e5886cf5e9
commit f4dfaa0a09
4 changed files with 46 additions and 46 deletions

View File

@ -2249,14 +2249,14 @@ support for strings</strong>. Sample:</p>
</span><span id="__span-0-2"><a id="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a><span class="w"> </span><span class="kd">val</span><span class="w"> </span><span class="nv">someVariable</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">buildStringResource</span><span class="p">(</span>
</span><span id="__span-0-3"><a id="__codelineno-0-3" name="__codelineno-0-3" href="#__codelineno-0-3"></a><span class="w"> </span><span class="s">&quot;Sample default string&quot;</span>
</span><span id="__span-0-4"><a id="__codelineno-0-4" name="__codelineno-0-4" href="#__codelineno-0-4"></a><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
</span><span id="__span-0-5"><a id="__codelineno-0-5" name="__codelineno-0-5" href="#__codelineno-0-5"></a><span class="w"> </span><span class="n">IetfLanguageCode</span><span class="p">.</span><span class="na">German</span><span class="w"> </span><span class="n">variant</span><span class="w"> </span><span class="n">lazy</span><span class="w"> </span><span class="s">&quot;Beispiel für eine Standardzeichenkette&quot;</span>
</span><span id="__span-0-5"><a id="__codelineno-0-5" name="__codelineno-0-5" href="#__codelineno-0-5"></a><span class="w"> </span><span class="n">IetfLang</span><span class="p">.</span><span class="na">German</span><span class="w"> </span><span class="n">variant</span><span class="w"> </span><span class="n">lazy</span><span class="w"> </span><span class="s">&quot;Beispiel für eine Standardzeichenkette&quot;</span>
</span><span id="__span-0-6"><a id="__codelineno-0-6" name="__codelineno-0-6" href="#__codelineno-0-6"></a><span class="w"> </span><span class="p">}</span>
</span><span id="__span-0-7"><a id="__codelineno-0-7" name="__codelineno-0-7" href="#__codelineno-0-7"></a><span class="p">}</span>
</span></code></pre></div>
<p>In this case, you will be able to use it with next logic:</p>
<div class="language-kotlin highlight"><pre><span></span><code><span id="__span-1-1"><a id="__codelineno-1-1" name="__codelineno-1-1" href="#__codelineno-1-1"></a><span class="n">Translation</span><span class="p">.</span><span class="na">someVariable</span><span class="p">.</span><span class="na">translation</span><span class="p">(</span><span class="n">IetfLanguageCode</span><span class="p">.</span><span class="na">French</span><span class="p">)</span><span class="w"> </span><span class="c1">// &quot;Sample default string&quot; as default one</span>
</span><span id="__span-1-2"><a id="__codelineno-1-2" name="__codelineno-1-2" href="#__codelineno-1-2"></a><span class="n">Translation</span><span class="p">.</span><span class="na">someVariable</span><span class="p">.</span><span class="na">translation</span><span class="p">(</span><span class="n">IetfLanguageCode</span><span class="p">.</span><span class="na">German</span><span class="p">)</span><span class="w"> </span><span class="c1">// &quot;Beispiel für eine Standardzeichenkette&quot; as available variant</span>
</span><span id="__span-1-3"><a id="__codelineno-1-3" name="__codelineno-1-3" href="#__codelineno-1-3"></a><span class="n">Translation</span><span class="p">.</span><span class="na">someVariable</span><span class="p">.</span><span class="na">translation</span><span class="p">(</span><span class="n">IetfLanguageCode</span><span class="p">.</span><span class="na">German</span><span class="p">.</span><span class="na">DE</span><span class="p">)</span><span class="w"> </span><span class="c1">// &quot;Beispiel für eine Standardzeichenkette&quot; as available parent variant</span>
<div class="language-kotlin highlight"><pre><span></span><code><span id="__span-1-1"><a id="__codelineno-1-1" name="__codelineno-1-1" href="#__codelineno-1-1"></a><span class="n">Translation</span><span class="p">.</span><span class="na">someVariable</span><span class="p">.</span><span class="na">translation</span><span class="p">(</span><span class="n">IetfLang</span><span class="p">.</span><span class="na">French</span><span class="p">)</span><span class="w"> </span><span class="c1">// &quot;Sample default string&quot; as default one</span>
</span><span id="__span-1-2"><a id="__codelineno-1-2" name="__codelineno-1-2" href="#__codelineno-1-2"></a><span class="n">Translation</span><span class="p">.</span><span class="na">someVariable</span><span class="p">.</span><span class="na">translation</span><span class="p">(</span><span class="n">IetfLang</span><span class="p">.</span><span class="na">German</span><span class="p">)</span><span class="w"> </span><span class="c1">// &quot;Beispiel für eine Standardzeichenkette&quot; as available variant</span>
</span><span id="__span-1-3"><a id="__codelineno-1-3" name="__codelineno-1-3" href="#__codelineno-1-3"></a><span class="n">Translation</span><span class="p">.</span><span class="na">someVariable</span><span class="p">.</span><span class="na">translation</span><span class="p">(</span><span class="n">IetfLang</span><span class="p">.</span><span class="na">German</span><span class="p">.</span><span class="na">DE</span><span class="p">)</span><span class="w"> </span><span class="c1">// &quot;Beispiel für eine Standardzeichenkette&quot; as available parent variant</span>
</span></code></pre></div>
<h2 id="additional-opportunities-on-android-platform">Additional opportunities on Android platform<a class="headerlink" href="#additional-opportunities-on-android-platform" title="Permanent link">&para;</a></h2>
<p>On Android you may use <code>Configuration</code> (as well as <code>Resources</code> or <code>Context</code>) to get translation for current locale. For

File diff suppressed because one or more lines are too long

View File

@ -2,207 +2,207 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://docs.inmo.dev/index.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/krontab/index.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/krontab/describing/krontabscheduler.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/krontab/describing/string-format.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/krontab/introduction/faq.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/krontab/introduction/how-to-use.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/krontab/introduction/including-in-project.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/kslog/index.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/kslog/logging.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/kslog/setup.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/micro_utils/index.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/micro_utils/resources.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/navigation/index.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/navigation/getting-started.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/plagubot/index.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/plagubot/opportunities_out_of_the_box.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/services/index.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/tgbotapi/index.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/tgbotapi/faq.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/tgbotapi/logs.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/tgbotapi/dsls/keyboards.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/tgbotapi/dsls/live-location.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/tgbotapi/dsls/text.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/tgbotapi/guides/keyboards.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/tgbotapi/introduction/before-any-bot-project.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/tgbotapi/introduction/first-bot.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/tgbotapi/introduction/including-in-your-project.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/tgbotapi/introduction/proxy-setup.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/tgbotapi/logic/api-extensions.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/tgbotapi/logic/behaviour-builder-with-fsm.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/tgbotapi/logic/behaviour-builder.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/tgbotapi/logic/exceptions-handling.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/tgbotapi/logic/files-handling.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/tgbotapi/logic/low-level-work-with-bots.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/tgbotapi/logic/media-groups.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/tgbotapi/logic/types-conversations.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/tgbotapi/logic/updates-with-flows.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/tgbotapi/updates/heroku.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/tgbotapi/updates/long-polling.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/tgbotapi/updates/updates-filters.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.inmo.dev/tgbotapi/updates/webhooks.html</loc>
<lastmod>2023-12-14</lastmod>
<lastmod>2023-12-21</lastmod>
<changefreq>daily</changefreq>
</url>
</urlset>

Binary file not shown.