Returns the localized version of the given string for the given locale.
If either no localization pattern or no localized version is found the original string is returned or an empty string is returned respectively.
Optional
The string to localize, it may contain localization patterns like "$de:German Text$en:English Text".
The locale to use, defaults to 'en'.
The localized string or the original string if no localization.
Returns the localized version of the given string for the given locale.
If either no localization pattern or no localized version is found the original string is returned or an empty string is returned respectively.