diff options
author | Robert Jaros <rjaros@finn.pl> | 2018-08-19 23:10:23 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2018-08-19 23:10:23 +0200 |
commit | 561a9d5fdc0f8be67703e8d594148cda5d74f754 (patch) | |
tree | 2976ae179a14487943c68102ceeebd7cbb73f7ae /src/main/kotlin/pl/treksoft/kvision/form/text | |
parent | e5a97e0d4eb4edd0767dc568b688454c8a090c70 (diff) | |
download | kvision-561a9d5fdc0f8be67703e8d594148cda5d74f754.tar.gz kvision-561a9d5fdc0f8be67703e8d594148cda5d74f754.tar.bz2 kvision-561a9d5fdc0f8be67703e8d594148cda5d74f754.zip |
Internationalization support.
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/form/text')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/form/text/AbstractTextInput.kt | 2 | ||||
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/form/text/RichTextInput.kt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractTextInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractTextInput.kt index 52cc7792..e41cfb8f 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractTextInput.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractTextInput.kt @@ -99,7 +99,7 @@ abstract class AbstractTextInput( override fun getSnAttrs(): List<StringPair> { val sn = super.getSnAttrs().toMutableList() placeholder?.let { - sn.add("placeholder" to it) + sn.add("placeholder" to translate(it)) } name?.let { sn.add("name" to it) diff --git a/src/main/kotlin/pl/treksoft/kvision/form/text/RichTextInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/text/RichTextInput.kt index 43e522d8..88cb3b86 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/text/RichTextInput.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/text/RichTextInput.kt @@ -46,7 +46,7 @@ open class RichTextInput(value: String? = null, classes: Set<String> = setOf()) override fun getSnAttrs(): List<StringPair> { val sn = super.getSnAttrs().toMutableList() placeholder?.let { - sn.add("placeholder" to it) + sn.add("placeholder" to translate(it)) } name?.let { sn.add("name" to it) |