shawnmcginn
Member
I created a new french - fr-CA - (which is just a copy of fr-FR so it coincides with my system language) and for the most part I'm not having any translation issues except in the component translation for validation that appears in the speech bubble above an element (ajax validation). When I change COM_FABRIK_FAILED_VALIDATION in
components/com_fabrik/language/fr-CA/fr-CA.com_fabrik.ini it doesn't work. If I change that same placeholder in components/com_fabrik/language/en-CA/en-CA.com_fabrik.ini it works and if I comment out that value in the en-CA it will default to the value in components/com_fabrik/language/en-GB/en-GB.com_fabrik.ini.
Now here's the kicker, if I try to save the form the validation error is rendered below the field correctly. Any ideas why or how these two validations read the translated version differently? You can see what I mean in my screenshots. The only one that isn't correct is the french_ajax_validation.png. Note it says "Validation failed3443" when it should have the same text as french_validation_after_save.png which shows "failed validation (fr) test". Instead it is rendering the value from components/com_fabrik/language/en-CA/en-CA.com_fabrik.ini.
Last note, yes I do plan to override these placeholders in override language files, I'm only working at this level as I'm trying to debug my way through this one.
Shawn
components/com_fabrik/language/fr-CA/fr-CA.com_fabrik.ini it doesn't work. If I change that same placeholder in components/com_fabrik/language/en-CA/en-CA.com_fabrik.ini it works and if I comment out that value in the en-CA it will default to the value in components/com_fabrik/language/en-GB/en-GB.com_fabrik.ini.
Now here's the kicker, if I try to save the form the validation error is rendered below the field correctly. Any ideas why or how these two validations read the translated version differently? You can see what I mean in my screenshots. The only one that isn't correct is the french_ajax_validation.png. Note it says "Validation failed3443" when it should have the same text as french_validation_after_save.png which shows "failed validation (fr) test". Instead it is rendering the value from components/com_fabrik/language/en-CA/en-CA.com_fabrik.ini.
![english_ajax_validation.png english_ajax_validation.png](https://fabrikar.com/forums/data/attachments/12/12682-c5d5c10034feefa891d91bb0549c86a7.jpg)
![english_validation_after_save.png english_validation_after_save.png](https://fabrikar.com/forums/data/attachments/12/12683-bbd19dfa1099b7285505478735d88536.jpg)
![french_ajax_validation.png french_ajax_validation.png](https://fabrikar.com/forums/data/attachments/12/12684-827916e6d6bdcc840cb77123f5987c16.jpg)
![french_validation_after_save.png french_validation_after_save.png](https://fabrikar.com/forums/data/attachments/12/12685-0a96dea238c206e96e9fc414bc09aa70.jpg)
Last note, yes I do plan to override these placeholders in override language files, I'm only working at this level as I'm trying to debug my way through this one.
Shawn