ISchemaProvider::Localize Method
Localizes the currently loaded schema for a specified locale.
Syntax
HRESULT Localize( LCID lcid, ISchemaLocalizerSupport *pSchemaLocalizerSupport );
Parameters
- lcid
[in] The locale to localize for.- pSchemaLocalizerSupport
[in] Pointer to an ISchemaLocalizerSupport object.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
Before this method is called, the loaded schema should typically be a schema that is not localized, such as the one in %SYSTEMROOT%\System32\StructuredQuerySchema.bin. This method makes the loaded schema suitable for parsing queries in the specified locale, using the object specified in the pSchemaLocalizerSupport parameter. The localized schema can then be saved into a schema binary by calling the ISchemaProvider::SaveBinary method.
Most applications should use IQueryParserManager::CreateLoadedParser to obtain a query parser loaded with a localized schema, instead of using this method explicitly.