summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorOliver Günther <mail@oliverguenther.de>2012-08-09 14:47:19 +0200
committerPhilipp Riemer <ruderphilipp@gmail.com>2012-08-10 21:57:26 +0200
commitbe88027c327b5f09d134f235db100ec54afdc30d (patch)
tree40687f89c0a6c9fa8a686e5f66863618ecfa6c46 /unotools
parentbb6bd1ff9cd3eecec7eb2cd7bd0a4dcef584c903 (diff)
fdo#39468: Translate German comments in toolkit,unotools, & xmloff
Also checked the following with bin/find-german-comments (all false positives): - sysui - xml2cmp - udm - ucb Change-Id: I2c72f973f5cecf56d70b5419e56338170dd55a2e
Diffstat (limited to 'unotools')
-rw-r--r--unotools/inc/unotools/textsearch.hxx17
-rw-r--r--unotools/source/i18n/textsearch.cxx8
2 files changed, 12 insertions, 13 deletions
diff --git a/unotools/inc/unotools/textsearch.hxx b/unotools/inc/unotools/textsearch.hxx
index 1f955bc3e83c..b070c988b5ee 100644
--- a/unotools/inc/unotools/textsearch.hxx
+++ b/unotools/inc/unotools/textsearch.hxx
@@ -27,7 +27,6 @@
#include <com/sun/star/util/XTextSearch.hpp>
#include <com/sun/star/util/SearchOptions.hpp>
-// Forward-Deklaration
class CharClass;
namespace com {
@@ -45,7 +44,7 @@ namespace utl
{
// ............................................................................
-// SS - Klasse fuers Suchen
+// Utility class for searching
class UNOTOOLS_DLLPUBLIC SearchParam
{
public:
@@ -109,13 +108,13 @@ public:
void SetTransliterationFlags( long nValue ) { nTransliterationFlags = nValue; }
};
-// Klasse zum Suchen eines Strings in einem String.
-// Unterstuetzt werden folgende Verfahren:
-// - normalen Text (Bayer/Moore)
-// - regulaere Ausdruecke
-// - gewichtete Levenshtein Distanz
+// Utility class for searching a substring in a string.
+// The following metrics are supported
+// - ordinary text (Bayer/Moore)
+// - regular expressions
+// - weighted Levenshtein distance
//
-// Es kann Vorwaerts und Rueckwaerts gesucht werden!
+// This class allows forward and backward searching!
class UNOTOOLS_DLLPUBLIC TextSearch
{
@@ -129,7 +128,7 @@ class UNOTOOLS_DLLPUBLIC TextSearch
const ::com::sun::star::lang::Locale& rLocale );
public:
- // rText ist der zusuchende String
+ // rText is the string being searched for
// this first two CTORs are deprecated!
TextSearch( const SearchParam & rPara, LanguageType nLanguage );
TextSearch( const SearchParam & rPara, const CharClass& rCClass );
diff --git a/unotools/source/i18n/textsearch.cxx b/unotools/source/i18n/textsearch.cxx
index b78a45f63956..05835970cc3e 100644
--- a/unotools/source/i18n/textsearch.cxx
+++ b/unotools/source/i18n/textsearch.cxx
@@ -51,7 +51,7 @@ SearchParam::SearchParam( const String &rText,
nTransliterationFlags = 0;
- // Werte fuer "Gewichtete Levenshtein-Distanz"
+ // Parameters for weighted Levenshtein distance
bLEV_Relaxed = sal_True;
nLEV_OtherX = 2;
nLEV_ShorterY = 1;
@@ -207,9 +207,9 @@ TextSearch::~TextSearch()
}
/*
- * Die allgemeinen Methoden zu Suchen. Diese rufen dann die entpsrecheden
- * Methoden fuer die normale Suche oder der Suche nach Regular-Expressions
- * ueber die MethodenPointer auf.
+ * General search methods. These methods will call the respective
+ * methods, such as ordinary string searching or regular expression
+ * matching, using the method pointer.
*/
#if defined _MSC_VER
#pragma optimize("", off)