mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Remove deprecated i18n::include_locale_file()
Use Zend_Translate instead.
This commit is contained in:
parent
587d669861
commit
f41650c64f
@ -1926,20 +1926,6 @@ class i18n extends Object implements TemplateGlobalProvider {
|
||||
self::$default_locale = $locale;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include a locale file determined by module name and locale
|
||||
*
|
||||
* @deprecated 3.0 Use Zend_Translate instead
|
||||
*
|
||||
* @param string $module Module that contains the locale file
|
||||
* @param string $locale Locale to be loaded
|
||||
*/
|
||||
public static function include_locale_file($module, $locale) {
|
||||
Deprecation::notice('3.0', 'Use Zend_Translate instead.');
|
||||
|
||||
if (file_exists($file = Director::getAbsFile("$module/lang/$locale.php"))) include_once($file);
|
||||
}
|
||||
|
||||
/**
|
||||
* Includes all available language files for a certain defined locale.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user