CalderaWP / Caldera-Forms

Drag and drop, responsive WordPress form builder.
https://CalderaForms.com
GNU General Public License v2.0
187 stars 163 forks source link

Date Picker in Polish doesn’t work #3282

Open Jedih opened 5 years ago

Jedih commented 5 years ago

The Date Picker doesn’t work in Polish. I have tried several other language and they work, but Polish (pl) doesn’t for some reason, it reverts to English instead.

Any fix for this?

New0 commented 5 years ago

Hello @Jedih , did you make sure the Date Picker is translated to Polish ? Here is a link to Polish translations for Caldera Forms Stable version, https://translate.wordpress.org/projects/wp-plugins/caldera-forms/stable/pl/default/, do you find the untranslated strings in there ?

Jedih commented 5 years ago

From what I can tell there's a Polish translation already in the Caldera Form folder "caldera-forms-fields-date_picker-js-locales". The .js file for polish contains all the correct polish words for the Date-Picker. And all the languages seems to be working without me having to translate anything.

`/**

New0 commented 5 years ago

Hello @Jedih , Thank you for the precision, I forgot the specific field translations for the Date picker.

I could use all translations as expected, note that the transaltions won't work if you use unminified scripts ( add_filter( 'caldera_forms_render_assets_minify', '__return_false' ); ). Also check caches and be sure to flush browser cache when you switch languages.

Screenshot_2019-07-29 Form – VS Lando Dev

Jedih commented 5 years ago

Thanks for trying to help me out, I really appreciate it! This is so weird. Every languages I try works without having to flush the cache, well except for polish :-) I wonder if it has something to do with the theme I use (BeTheme), but it makes no sense that only polish seems to be affected. Not sure what you mean by not to use unminified scripts as I haven’t written or altered anything in Caldera Forms.

polish
New0 commented 5 years ago

@Jedih I'm not sure I understand, were you able to load the Polish translation after flushing assets caches ? ( If you are not using any custom ode that involves Caldera Forms hooks, don't mind the comment about unminified assets. )

Jedih commented 5 years ago

No unfortunately not! It doesn’t matter what I try. Every time I choose Polish as language in Caldera Date Picker and flushes the cache, it defaults to English. If I try any other languages, the language I choose just works. And it doesn’t matter if I flush the cache or not, they just work - but not Polish! This makes no sense to me! Just updated to the latest version of Caldera Forms, but that had no effect :-(

New0 commented 5 years ago

Did you already try from another browser ? Deactivating all other plugins and activating default twentynineteen theme ? Switching general language from WordPress admin ?

Jedih commented 5 years ago

Tried everything you suggested but still it defaults the Polish Date Picker back to English. I deactivated every plugin and the BeTheme I'm using but it still behaves like this using just the twentynineteen theme and Caldera Forms. I'm just gonna start over with a new development site, using Desktop Server, and gradually add theme and plugins to see when it starts to behave like this again. Must be something in the theme or plugins I use that are causing this weird behavior.