Allow adjusting the resource path.

Return the element key instead of empty if the localization cannot be
found.