From fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 26 Oct 2019 00:17:24 +0200 Subject: API documentation for KVision 2.0.0 --- .../-default-i18n-manager/-init-.html | 14 ++++ .../-default-i18n-manager/gettext.html | 21 +++++ .../-default-i18n-manager/index.html | 94 ++++++++++++++++++++++ .../-default-i18n-manager/ngettext.html | 25 ++++++ 4 files changed, 154 insertions(+) create mode 100644 api1/pl.treksoft.kvision.i18n/-default-i18n-manager/-init-.html create mode 100644 api1/pl.treksoft.kvision.i18n/-default-i18n-manager/gettext.html create mode 100644 api1/pl.treksoft.kvision.i18n/-default-i18n-manager/index.html create mode 100644 api1/pl.treksoft.kvision.i18n/-default-i18n-manager/ngettext.html (limited to 'api1/pl.treksoft.kvision.i18n/-default-i18n-manager') diff --git a/api1/pl.treksoft.kvision.i18n/-default-i18n-manager/-init-.html b/api1/pl.treksoft.kvision.i18n/-default-i18n-manager/-init-.html new file mode 100644 index 00000000..d69fe835 --- /dev/null +++ b/api1/pl.treksoft.kvision.i18n/-default-i18n-manager/-init-.html @@ -0,0 +1,14 @@ + + + +DefaultI18nManager.<init> - kvision + + + +kvision / pl.treksoft.kvision.i18n / DefaultI18nManager / <init>
+
+

<init>

+ +DefaultI18nManager(translations: Map<String, dynamic>) + + diff --git a/api1/pl.treksoft.kvision.i18n/-default-i18n-manager/gettext.html b/api1/pl.treksoft.kvision.i18n/-default-i18n-manager/gettext.html new file mode 100644 index 00000000..4f46bc62 --- /dev/null +++ b/api1/pl.treksoft.kvision.i18n/-default-i18n-manager/gettext.html @@ -0,0 +1,21 @@ + + + +DefaultI18nManager.gettext - kvision + + + +kvision / pl.treksoft.kvision.i18n / DefaultI18nManager / gettext
+
+

gettext

+ +fun gettext(key: String): String +

Overrides I18nManager.gettext

+

A static translation function for a singular form.

+

Parameters

+

+key - a translation key.

+

Return
+translated text.

+ + diff --git a/api1/pl.treksoft.kvision.i18n/-default-i18n-manager/index.html b/api1/pl.treksoft.kvision.i18n/-default-i18n-manager/index.html new file mode 100644 index 00000000..a990976c --- /dev/null +++ b/api1/pl.treksoft.kvision.i18n/-default-i18n-manager/index.html @@ -0,0 +1,94 @@ + + + +DefaultI18nManager - kvision + + + +kvision / pl.treksoft.kvision.i18n / DefaultI18nManager
+
+

DefaultI18nManager

+class DefaultI18nManager : I18nManager +

Constructors

+ + + + + + + +
+

<init>

+
+DefaultI18nManager(translations: Map<String, dynamic>)
+

Functions

+ + + + + + + + + + + +
+

gettext

+
+fun gettext(key: String): String +

A static translation function for a singular form.

+
+

ngettext

+
+fun ngettext(singularKey: String, pluralKey: String, value: Int): String +

A static translation function for a plural form.

+
+

Inherited Functions

+ + + + + + + + + + + + + + + +
+

ntr

+
+open fun ntr(singularKey: String, pluralKey: String, value: Int): String +

A dynamic translation function for a plural form.

+
+

tr

+
+open fun tr(key: String): String +

A dynamic translation function for a singular form.

+
+

trans

+
+open fun trans(text: String?): String? +

A dynamic translation function.

+
+

Extension Functions

+ + + + + + + +
+

createInstance

+
+fun <T> Any?.createInstance(vararg args: dynamic): T +

Helper function for creating JavaScript objects from dynamic constructors.

+
+ + diff --git a/api1/pl.treksoft.kvision.i18n/-default-i18n-manager/ngettext.html b/api1/pl.treksoft.kvision.i18n/-default-i18n-manager/ngettext.html new file mode 100644 index 00000000..7ed9874a --- /dev/null +++ b/api1/pl.treksoft.kvision.i18n/-default-i18n-manager/ngettext.html @@ -0,0 +1,25 @@ + + + +DefaultI18nManager.ngettext - kvision + + + +kvision / pl.treksoft.kvision.i18n / DefaultI18nManager / ngettext
+
+

ngettext

+ +fun ngettext(singularKey: String, pluralKey: String, value: Int): String +

Overrides I18nManager.ngettext

+

A static translation function for a plural form.

+

Parameters

+

+singularKey - a translation key for a singular form.

+

+pluralKey - a translation key for a plural form.

+

+value - a count value.

+

Return
+translated text.

+ + -- cgit