fixing localization caps
Merge pull request #3170 from sebv/localization

Fixed localization caps + added tests