main/shell/source/all/ooofilereader/metainforeader.cxx
/** Get the default language of the whole document, if no such field, en-US is returned.
*/
Get the default language of the whole document, if no such field, en-US is returned.
Get the default language of the whole document if no such field en - US is returned .
LocaleSet_t CMetaInfoReader::getDefaultLocale()
{
    if (hasTag(META_INFO_LANGUAGE))
    {
		::std::wstring locale = m_AllMetaInfo[META_INFO_LANGUAGE].first;
		return isValidLocale(locale) ? ::std::make_pair(locale.substr( 0,2), locale.substr( 3,2)) : EN_US_LOCALE;
    }
    else
        return EN_US_LOCALE;
}
LocaleSet_t CMetaInfoReader :: getDefaultLocale ( ) { if ( hasTag ( META_INFO_LANGUAGE ) ) { :: std :: wstring locale = m_AllMetaInfo [ META_INFO_LANGUAGE ] . first ; return isValidLocale ( locale ) ? :: std :: make_pair ( locale . substr ( 0 , 2 ) , locale . substr ( 3 , 2 ) ) : EN_US_LOCALE ; } else return EN_US_LOCALE ; }
Get the default language of the whole document, if no such field, en-US is returned.
Get the default language of the whole document if no such field en - US is returned .