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

Custom labels don't work on android #11

Open
hirbod opened this issue Feb 25, 2015 · 4 comments
Open

Custom labels don't work on android #11

hirbod opened this issue Feb 25, 2015 · 4 comments

Comments

@hirbod
Copy link

hirbod commented Feb 25, 2015

Hi,

I've tried the custom labels for Android (4.4.2 on Sony Xperia E1) but it won't work. I will always get "Done" and "Cancel"

@xelakz
Copy link

xelakz commented Feb 25, 2015

how did you configure the labels? @hirbod

@hirbod
Copy link
Author

hirbod commented Feb 25, 2015

            var options = {
                date: new Date(),
                doneButtonLabel: $scope.trans.SET,
                cancelButtonLabel: $scope.trans.CLOSE,
                doneButtonColor: '#f39200',
                cancelButtonColor: '#000',
                minDate: $scope.minDate,
                maxDate: $scope.maxDate,
                mode: 'date'
            };

@xelakz
Copy link

xelakz commented Feb 25, 2015

you sure those scopes are set when you call the plugin?
try wrapping it in an angular timeout just to be sure that the digest is done and the scope is populated.

@hirbod
Copy link
Author

hirbod commented Feb 25, 2015

I'm sure, as my Controller init function will only trigger when angular-translate promise is done. It works perfectly on iOS though..

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