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

Can we use yii2-language-picker and yii2-translate-manager simultaneously. #19

Closed
rahulk-k opened this issue Dec 6, 2015 · 2 comments
Closed

Comments

@rahulk-k
Copy link

rahulk-k commented Dec 6, 2015

Hi,
Is it possible to use yii2-language-picker and yii2-translate-manager simultaneously.
If yes than how can i configure bootstrap property.

@moltam
Copy link
Collaborator

moltam commented Dec 7, 2015

Hi, you can use them simultaneously.

You can pass the available languages to the language-picker via a callback (modify the return value, if you need a different array format):

'languagepicker' => [
    // ....
    'languages' => function () {
        return \lajax\translatemanager\models\Language::getLanguageNames(true);
    },
    // ....
],

As for the bootstrap part, I think the order doesn't matter. But I didn't test it deeply.

@lajax lajax closed this as completed Jan 21, 2016
@StalkAlex
Copy link

This function is deprecated now. What should I use instead?

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

4 participants