Multisite fix and added localizations

Fixes the multisite permalink problem with restore_current_blog function. 

Added missing localizations, also to JS.