Update lib/base.php

Correction of typo "locate" -> "locale".