Skip to content

Commit

Permalink
Remove deprecated i18n::include_locale_file()
Browse files Browse the repository at this point in the history
Use Zend_Translate instead.
  • Loading branch information
Sean Harvey committed Nov 15, 2012
1 parent 587d669 commit f41650c
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions i18n/i18n.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1925,20 +1925,6 @@ public static function default_locale() {
public static function set_default_locale($locale) { public static function set_default_locale($locale) {
self::$default_locale = $locale; 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. * Includes all available language files for a certain defined locale.
Expand Down

0 comments on commit f41650c

Please sign in to comment.