proper singleton patter for localization

we had a bunch of issues with site translations because the localization class instance was overwritten. This fixed the problem and looks also cleaner imho.