A localization principle for orbifold theories