Skip to content
This repository has been archived by the owner on Aug 12, 2023. It is now read-only.

Setting language #25

Open
marqu3s opened this issue Dec 19, 2014 · 1 comment
Open

Setting language #25

marqu3s opened this issue Dec 19, 2014 · 1 comment

Comments

@marqu3s
Copy link

marqu3s commented Dec 19, 2014

For languages like pt_pt or pt_br the logic in ImperaviRedactorAsset init() method fails because it gets only the first 2 letters of Yii language. In this case there will be no pt.js in redactor to publish and the widget fails to load.

Also, Yii uses pt-BR and redactor pt_br for setting language so an inconsistence exists. You should convert Yii format to redactor format.

@flybot
Copy link

flybot commented Dec 22, 2014

I agree with @marqu3s , there is a problem. My app use 'uk' as language but imperavi-redactor use ua.js for Ukrainian. Should be allowed to set the language as an option, please.

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

No branches or pull requests

2 participants