should be just: virtual /*no const when return by value*/ std::string GetLocale() const