Dexels / navajo

Navajo Service-oriented Applications
GNU Affero General Public License v3.0
9 stars 5 forks source link

Proper support for locale header in function GetValidationDescription #580

Open roelofkemp opened 3 years ago

roelofkemp commented 3 years ago

Currently the GetValidationDescription function only applies a locale when passed as a second parameter to the function, but ignores any locale that might be present in header attribute "locale" (such as the Lookup function does).

This should be fixed similar to the Lookup function, by checking the "locale" header, allowing for this to be overridden by a second parameter and falling back on the default language.

ghost commented 3 years ago

Released as bundle com.dexels.navajo.function version 3.5.22.