plone / plone.app.widgets

Integrating plone.widgets into plone
Other
7 stars 38 forks source link

Tiny not working on slovenian sites #106

Open frisi opened 8 years ago

frisi commented 8 years ago

plone4.3.6 plone.app.contenttypes 1.1b6 (current 1.1.x branch) and plone.app.widgets 1.8.0

add a plone site install plone.app.contenttypes (also installs p.a.widgets) set slovenian (sl) as default language in @@language-controlpanel add a document

tiny won't show up, because it can't load the translation files. it's trying these:

http://127.0.0.1:8080/test/++resource++plone.app.widgets.tinymce/langs/sl.js
http://127.0.0.1:8080/test/++resource++plone.app.widgets.tinymce/langs/sl_SL.js

whereas only http://127.0.0.1:8080/test/++resource++plone.app.widgets.tinymce/langs/sl_SI.js would be present in the langs directory

sl_SI should be correct locale AFAIK. @thet: should we provide a copy of sl_SI.js named sl.js as a workaround?

the correct fix would be that tiny looks up sl.js first and then tries sl_SI.js instead of sl_SL.js. is this part of p.a.widgets or tinymce?

vangheem commented 8 years ago

It would be in mockup. https://github.com/plone/mockup/blob/master/mockup/patterns/tinymce/pattern.js#L287