Update lib/base.php

Correction of typo "locate" -> "locale".
Merge pull request #1377 from irgsmirx/patch-3

Update lib/base.php