Remove deprecated i18n::include_locale_file()

Use Zend_Translate instead.
This commit is contained in:
Sean Harvey 2012-11-15 11:26:49 +13:00
parent 587d669861
commit f41650c64f

View File

@ -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.
*