Detect existing locales during upgrades.