From 123ada6af7bd336aa07260646ee0adca33c8cbbc Mon Sep 17 00:00:00 2001 From: Rob Snelders Date: Tue, 8 Feb 2011 20:59:20 +0100 Subject: translated comments --- linguistic/source/dicimp.cxx | 12 ++++++------ linguistic/source/dlistimp.cxx | 2 +- linguistic/source/grammarchecker.cxx | 2 +- linguistic/source/lngopt.cxx | 2 +- linguistic/source/lngprophelp.cxx | 4 ++-- linguistic/source/lngsvcmgr.cxx | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) (limited to 'linguistic/source') diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx index f7f34694bfe9..9a44092bd86d 100644 --- a/linguistic/source/dicimp.cxx +++ b/linguistic/source/dicimp.cxx @@ -298,7 +298,7 @@ ULONG DictionaryNeo::loadEntries(const OUString &rMainURL) ULONG nErr = sal::static_int_cast< ULONG >(-1); - // Header einlesen + // read header BOOL bNegativ; USHORT nLang; nDicVersion = ReadDicVersion(pStream, nLang, bNegativ); @@ -321,7 +321,7 @@ ULONG DictionaryNeo::loadEntries(const OUString &rMainURL) USHORT nLen = 0; sal_Char aWordBuf[ BUFSIZE ]; - // Das erste Wort einlesen + // Read the first word if (!pStream->IsEof()) { *pStream >> nLen; @@ -338,8 +338,8 @@ ULONG DictionaryNeo::loadEntries(const OUString &rMainURL) while(!pStream->IsEof()) { - // Aus dem File einlesen - // Einfuegen ins Woerterbuch ohne Konvertierung + // Read from file + // Paste in dictionary without converting if(*aWordBuf) { ByteString aDummy( aWordBuf ); @@ -350,7 +350,7 @@ ULONG DictionaryNeo::loadEntries(const OUString &rMainURL) } *pStream >> nLen; - if (pStream->IsEof()) // #75082# GPF in online-spelling + if (pStream->IsEof()) break; if (0 != (nErr = pStream->GetError())) return nErr; @@ -493,7 +493,7 @@ ULONG DictionaryNeo::saveEntries(const OUString &rURL) pVerStr = pVerStr6; else pVerStr = eDicType == DictionaryType_POSITIVE ? pVerStr2 : pVerStr5; - strcpy( aWordBuf, pVerStr ); // #100211# - checked + strcpy( aWordBuf, pVerStr ); USHORT nLen = sal::static_int_cast< USHORT >(strlen( aWordBuf )); *pStream << nLen; if (0 != (nErr = pStream->GetError())) diff --git a/linguistic/source/dlistimp.cxx b/linguistic/source/dlistimp.cxx index b4a51de2dc25..85325e7105cd 100644 --- a/linguistic/source/dlistimp.cxx +++ b/linguistic/source/dlistimp.cxx @@ -790,7 +790,7 @@ uno::Sequence< rtl::OUString > DicList::getSupportedServiceNames_Static() throw( { osl::MutexGuard aGuard( GetLinguMutex() ); - uno::Sequence< rtl::OUString > aSNS( 1 ); // auch mehr als 1 Service moeglich + uno::Sequence< rtl::OUString > aSNS( 1 ); // more than 1 service possible aSNS.getArray()[0] = A2OU( SN_DICTIONARY_LIST ); return aSNS; } diff --git a/linguistic/source/grammarchecker.cxx b/linguistic/source/grammarchecker.cxx index bf782c0579fd..3837ceaa32e7 100644 --- a/linguistic/source/grammarchecker.cxx +++ b/linguistic/source/grammarchecker.cxx @@ -260,7 +260,7 @@ uno::Sequence< OUString > GrammarChecker::getSupportedServiceNames_Static( ) th { //osl::Guard< osl::Mutex > aGuard(GetMutex()); - uno::Sequence< OUString > aSNS( 1 ); // auch mehr als 1 Service moeglich + uno::Sequence< OUString > aSNS( 1 ); // more than 1 service possible aSNS.getArray()[0] = A2OU( "com.sun.star.linguistic2.GrammarChecker" );//SN_LINGU_SERVCICE_MANAGER return aSNS; } diff --git a/linguistic/source/lngopt.cxx b/linguistic/source/lngopt.cxx index 4e102bf1aaa6..2056e4d1b4d6 100644 --- a/linguistic/source/lngopt.cxx +++ b/linguistic/source/lngopt.cxx @@ -656,7 +656,7 @@ uno::Sequence< OUString > LinguProps::getSupportedServiceNames_Static() { MutexGuard aGuard( GetLinguMutex() ); - uno::Sequence< OUString > aSNS( 1 ); // auch mehr als 1 Service moeglich + uno::Sequence< OUString > aSNS( 1 ); // more than 1 service possible aSNS.getArray()[0] = A2OU( SN_LINGU_PROPERTIES ); return aSNS; } diff --git a/linguistic/source/lngprophelp.cxx b/linguistic/source/lngprophelp.cxx index 4613faa3f16a..b432bf1e5fa2 100644 --- a/linguistic/source/lngprophelp.cxx +++ b/linguistic/source/lngprophelp.cxx @@ -528,7 +528,7 @@ void PropertyHelper_Spell::SetTmpPropVals( const PropertyValues &rPropVals ) nResMaxNumberOfSuggestions = GetDefaultNumberOfSuggestions(); bResIsSpellWithDigits = bIsSpellWithDigits; bResIsSpellCapitalization = bIsSpellCapitalization; - // + INT32 nLen = rPropVals.getLength(); if (nLen) { @@ -690,7 +690,7 @@ void PropertyHelper_Hyphen::SetTmpPropVals( const PropertyValues &rPropVals ) nResHyphMinLeading = nHyphMinLeading; nResHyphMinTrailing = nHyphMinTrailing; nResHyphMinWordLength = nHyphMinWordLength; - // + INT32 nLen = rPropVals.getLength(); if (nLen) { diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx index 9811263648fc..8bdfd2d3dada 100644 --- a/linguistic/source/lngsvcmgr.cxx +++ b/linguistic/source/lngsvcmgr.cxx @@ -1955,7 +1955,7 @@ uno::Sequence< OUString > LngSvcMgr::getSupportedServiceNames_Static() { osl::MutexGuard aGuard( GetLinguMutex() ); - uno::Sequence< OUString > aSNS( 1 ); // auch mehr als 1 Service moeglich + uno::Sequence< OUString > aSNS( 1 ); // more than 1 service possible aSNS.getArray()[0] = A2OU( SN_LINGU_SERVCICE_MANAGER ); return aSNS; } -- cgit