[bug 746564] Replace 'request.locale' with 'request.LANGUAGE_CODE'