PSR-2 & indentation fixes
Use inline function instead of global function
Clear localization cache when viewing new packages
PSR-2
Clear translations cache when installing packages
Clear translations cache when uninstalling packages
Clear translations cache when upgrading packages
Add Localization::clearCache method
Merge pull request #1275 from mlocati/add-package-translations

Clear translations cache when installing/updating/removing packages