templates/Behavior/I18n/objectSetLocale.php
/**
* Sets the locale for translations
*
* @param string $locale Locale to use for the translation, e.g. 'fr_FR'
*
* @return $this The current object (for fluent API support)
*/
public function set<?php echo $localeColumnName ?>($locale = '<?php echo $defaultLocale ?>')
{
$this->currentLocale = $locale;
return $this;
}