Checks if theres a version of filename which is localized to the current locale.
This is done by appending the full locale name to filename, separated by a '.'. If theres no file of that name, it retries
using the full locale name without the encoding (if any), then without the qualifier (if any) and at last the base locale is tried. If all
of those fails, a copy of filename is returned.
| filename |
name of a file to look for a localized version. |
|
path of the localized file or copy of |