Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with translations #25

Closed
RomeroMsk opened this issue Mar 2, 2015 · 5 comments
Closed

Problem with translations #25

RomeroMsk opened this issue Mar 2, 2015 · 5 comments

Comments

@RomeroMsk
Copy link

DatePicker widget is trying to get message file from yii2-widgets/messages, not from yii2-widget-datepicker/messages:

The message file for category 'kvdate' does not exist: /.../vendor/kartik-v/yii2-widgets/messages/ru-RU/kvdate.php Fallback file does not exist as well: /.../vendor/kartik-v/yii2-widgets/messages/ru/kvdate.php
/.../vendor/kartik-v/yii2-widget-datepicker/DatePicker.php (225)
/.../vendor/kartik-v/yii2-widget-datepicker/DatePicker.php (256)
/.../vendor/kartik-v/yii2-widget-datepicker/DatePicker.php (203)
@kartik-v
Copy link
Owner

kartik-v commented Mar 2, 2015

You need to use kartik\date\DatePicker as your namespace for the widget and it should use yii2-widget-datepicker/messages folder.. If you use kartik\widgets\DatePicker as your namespace, then it will use the yii2-widgets/messages folder.

@kartik-v
Copy link
Owner

kartik-v commented Mar 2, 2015

Anyway, I will improve this through an enhancement.

@RomeroMsk
Copy link
Author

Yes, this solves the problem. Will check an enhancement too. Thanks.

@kartik-v
Copy link
Owner

kartik-v commented Mar 2, 2015

Resolved with latest commit.

You can check with updated packages via composer in sometime (note your composer must update yii2-krajee-base and yii2-widgets / yii2-widget-datepicker).

@RomeroMsk
Copy link
Author

Checked, all fine 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants