Skip to content

Commit

Permalink
Fix #25: mprove validation to retrieve the right translation messages…
Browse files Browse the repository at this point in the history
… folder
  • Loading branch information
kartik-v committed Mar 2, 2015
1 parent dde4d46 commit 6500536
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ version 1.3.2
- (enh #22): Ability to configure picker button options. Applicable only for following `DatePicker` types:
- `DatePicker::TYPE_COMPONENT_PREPEND` and
- `DatePicker::TYPE_COMPONENT_APPEND`
- (bug #24): Removes BOM charecters from the messages/ru/kvdate.php.
- (enh #25): Improve validation to retrieve the right translation messages folder.

version 1.3.1
=============
Expand Down
2 changes: 1 addition & 1 deletion DatePicker.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public function init()
throw new InvalidConfigException("The 'attribute2' property must be set for a 'range' type markup and a defined 'form' property.");
}
$s = DIRECTORY_SEPARATOR;
$this->initI18N();
$this->initI18N(__DIR__);
$this->setLanguage('bootstrap-datepicker.', __DIR__ . "{$s}assets{$s}", null, '.min.js');
$this->parseDateFormat('date');
$this->_id = ($this->type == self::TYPE_INPUT) ? 'jQuery("#' . $this->options['id'] . '")' : 'jQuery("#' . $this->options['id'] . '").parent()';
Expand Down

0 comments on commit 6500536

Please sign in to comment.