Fixes #5913: Adds ability for elgg_echo to choose the first available translation key  than

Adds fallbacks in both PHP & JS, and adds tests for both