Typo, : instead of ::
App::setLocale instead of App::locale

App::locale is undefined.