Parsley language error: zh_TW is not available in the catalog
-
This bug has been there since caldera form is using Parsley.
Everything (WP, plugins, theme) is up-to-date.
Here is how it works:
– Let’s say I am selecting a language called zh_TW in WordPress
Open new window for screenshot.– During the loading of the page, if you set a breakpoint in this line, the first loop will be ‘en’.
Open new window for screenshot.– 2nd loop, it is ‘zh-tw’.
Open new window for screenshot.– 3rd loop (weird!), it is ‘zh_TW’.
Open new window for screenshot.– Since in the catalog array there is only zh-tw but no zh_TW, catalog cannot be found and an error is thrown.
Open new window for screenshot.– Thrown error:
Open new window for screenshot.The key here is that, Parsley is NOT WordPress Friendly. Parsley is using their own language naming system while WP is using another, so the language is not loaded.
Currently I am adding extra code in plugins/caldera-forms/classes/render/assets.php to solve this problem. But when CF is updated, my changes is overwritten.
This is a serious bug. All language with ‘_’ (underscore) will be affected.
Please fix this issue ASAP.Thank you very much for your help.
- The topic ‘Parsley language error: zh_TW is not available in the catalog’ is closed to new replies.