void getResource(
string
$file, string
$dir, string
$ext, [string
$prefix = '.'], [string
$culture = null])
|
|
Locate the resource for a particular culture. The parameter $resource must be the filename without the file extension.
e.g. support a resource of indexpage.tpl, then the parameter $resource should be $resouce = 'indexpage'; Resources are searched using "$resource.$prefix.$culture.$ext". Where each $culture is enumerated from "<LANG>_<COUNTYRY>_<VAIRANT>" "<LANG>_<COUNTYRY>" and then "<LANG>". If no culture specific resource is found, it returns the default "$resource.$ext".
Parameters: