for the call to the function upath, get the directory name of the resulting system path, join the result and string 'locale', into a valid file path, substitute it for globalpath. append settings.LOCALE_PATHS converted into a list to a list containing an element globalpath, return it.
return [ globalpath ] + list ( settings . LOCALE_PATHS )