diff options
author | Robert Jaros <rjaros@finn.pl> | 2018-08-21 16:07:28 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2018-08-21 16:07:28 +0200 |
commit | 63691ce4536cbff24330e6d268343e343ee806fa (patch) | |
tree | cfa9b6e8c3a594a7756034bfd403ceb9311c72d7 /src/main/kotlin/pl/treksoft/kvision/form/time | |
parent | 561a9d5fdc0f8be67703e8d594148cda5d74f754 (diff) | |
download | kvision-63691ce4536cbff24330e6d268343e343ee806fa.tar.gz kvision-63691ce4536cbff24330e6d268343e343ee806fa.tar.bz2 kvision-63691ce4536cbff24330e6d268343e343ee806fa.zip |
Internationalization support for built-in components.
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/form/time')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/form/time/DateTimeInput.kt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/form/time/DateTimeInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/time/DateTimeInput.kt index 6ce4d0c3..1df8a082 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/time/DateTimeInput.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/time/DateTimeInput.kt @@ -28,6 +28,7 @@ import pl.treksoft.kvision.core.StringPair import pl.treksoft.kvision.core.Widget import pl.treksoft.kvision.form.FormInput import pl.treksoft.kvision.form.InputSize +import pl.treksoft.kvision.i18n.I18n import pl.treksoft.kvision.types.KDate import pl.treksoft.kvision.types.toJS import pl.treksoft.kvision.types.toKDateF @@ -226,6 +227,7 @@ open class DateTimeInput( val minView = if (format.contains("HH") || format.contains("mm")) 0 else 2 val maxView = if (format.contains("YY") || format.contains("M") || format.contains("D")) MAX_VIEW else 1 val startView = if (maxView < 2) maxView else 2 + val language = I18n.language getElementJQueryD()?.datetimepicker(obj { this.format = datePickerFormat this.startView = startView @@ -239,6 +241,7 @@ open class DateTimeInput( this.showMeridian = showMeridian this.daysOfWeekDisabled = daysOfWeekDisabled this.autoclose = true + this.language = language }) } |