Skip to content

Commit 3fb3104

Browse files
committed
Fix #25: Improve validation to retrieve the right translation messages folder
1 parent dde4d46 commit 3fb3104

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ version 1.3.2
88
- (enh #22): Ability to configure picker button options. Applicable only for following `DatePicker` types:
99
- `DatePicker::TYPE_COMPONENT_PREPEND` and
1010
- `DatePicker::TYPE_COMPONENT_APPEND`
11+
- (bug #24): Removes BOM charecters from the messages/ru/kvdate.php.
12+
- (enh #25): Improve validation to retrieve the right translation messages folder.
1113

1214
version 1.3.1
1315
=============

DatePicker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public function init()
168168
throw new InvalidConfigException("The 'attribute2' property must be set for a 'range' type markup and a defined 'form' property.");
169169
}
170170
$s = DIRECTORY_SEPARATOR;
171-
$this->initI18N();
171+
$this->initI18N(__DIR__);
172172
$this->setLanguage('bootstrap-datepicker.', __DIR__ . "{$s}assets{$s}", null, '.min.js');
173173
$this->parseDateFormat('date');
174174
$this->_id = ($this->type == self::TYPE_INPUT) ? 'jQuery("#' . $this->options['id'] . '")' : 'jQuery("#' . $this->options['id'] . '").parent()';

0 commit comments

Comments
 (0)