public Library GetCoreLibrary(Parser parser) { if (this.coreLibrary == null) { this.coreLibrary = this.GetLibraryFromKey("en:Core"); // canonical key will work even if english locale not used. if (this.coreLibrary == null) { LibraryMetadata coreLibMetadata = this.GetLibraryMetadataFromAnyPossibleKey("en:Core"); TODO.GetCoreNameFromMetadataWithLocale(); string coreNameInLocale = coreLibMetadata.Name; this.coreLibrary = this.ImportLibrary(parser, null, coreNameInLocale); } } return(this.coreLibrary); }