[Libreoffice-commits] .: l10ntools/source
Stephan Bergmann
sbergmann at kemper.freedesktop.org
Fri Jul 13 06:35:53 PDT 2012
l10ntools/source/gsicheck.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 05a0aaa25efc53c4cfa8a955dbf96bbb63b8bc98
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Jul 13 15:35:42 2012 +0200
fdo#51954: More tools->rtl string conversion regressions
Change-Id: If9c5b0a0876540e9546617faaa5dcb4ae1e5a2cb
diff --git a/l10ntools/source/gsicheck.cxx b/l10ntools/source/gsicheck.cxx
index 98e4b31..b2981a3 100644
--- a/l10ntools/source/gsicheck.cxx
+++ b/l10ntools/source/gsicheck.cxx
@@ -479,7 +479,7 @@ sal_Bool GSIBlock::HasSuspiciousChars( GSILine* pTestee, GSILine* pSource )
rtl::OStringToOUString(
pTestee->GetText().copy(0, nPos), RTL_TEXTENCODING_UTF8));
sal_Int32 nErrorPos = aUTF8Tester.getLength();
- rtl::OString aContext( pTestee->GetText().copy( nPos, 20 ) );
+ rtl::OString aContext( helper::abbreviate( pTestee->GetText(), nPos, 20 ) );
PrintError(rtl::OStringBuffer(RTL_CONSTASCII_STRINGPARAM("Found double questionmark in translation only. Looks like an encoding problem at Position "))
.append(nErrorPos).getStr(),
"Text format", aContext, pTestee->GetLineNumber(), pTestee->GetUniqId());
More information about the Libreoffice-commits
mailing list