From 27768c4bb7db2d4c737666757608bdc5c84fb7dc Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Fri, 7 Apr 2006 14:01:57 +0000 Subject: [PATCH] INTEGRATION: CWS internatiodel (1.3.110); FILE MERGED 2006/02/10 19:30:26 er 1.3.110.1: #i52115# move LangIDs and ISO conversion from tools to i18npool; introduce class MsLangId and libi18nisolang --- sd/source/ui/unoidl/unopool.cxx | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/sd/source/ui/unoidl/unopool.cxx b/sd/source/ui/unoidl/unopool.cxx index 74476907a55c..aa882f43dfe1 100644 --- a/sd/source/ui/unoidl/unopool.cxx +++ b/sd/source/ui/unoidl/unopool.cxx @@ -4,9 +4,9 @@ * * $RCSfile: unopool.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: rt $ $Date: 2005-09-09 06:53:44 $ + * last change: $Author: vg $ $Date: 2006-04-07 15:01:57 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -33,8 +33,8 @@ * ************************************************************************/ -#ifndef _ISOLANG_HXX -#include +#ifndef INCLUDED_I18NPOOL_MSLANGID_HXX +#include #endif #ifndef _COMPHELPER_PROPERTSETINFO_HXX_ @@ -65,11 +65,7 @@ LanguageType SdUnoGetLanguage( const lang::Locale& rLocale ) if ( rLocale.Language.getLength() == 0 ) return LANGUAGE_SYSTEM; - String aLangStr = rLocale.Language; - String aCtryStr = rLocale.Country; - // Variant is ignored - - LanguageType eRet = ConvertIsoNamesToLanguage( aLangStr, aCtryStr ); + LanguageType eRet = MsLangId::convertLocaleToLanguage( rLocale ); if ( eRet == LANGUAGE_NONE ) eRet = LANGUAGE_SYSTEM; //! or throw an exception?