get_file_localized


Description:


public string get_file_localized (string filename)

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.

Parameters:

filename

name of a file to look for a localized version.

Returns:

path of the localized file or copy of filename if no such file exists. Returned string should be freed using g_free.


Namespace: Xfce