Removed duplicated code from the localization files and moved it to the PE
Removed the code duplication from the base localization file
Fixed JSHint errors
Merge pull request #964 from LaurentGoderre/i18n-optimize

Optimized the localization files