diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-08-02 15:26:15 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-08-02 15:26:15 +0000 |
commit | 99461b5640bfdac1ffce7b1013d1a681e3888475 (patch) | |
tree | f21ceab56e49b92e40f22bd0e7f40d0cc915d6a4 /transex3 | |
parent | e31fdf87f10981c1e6def39fb059fcafd5832fd1 (diff) |
INTEGRATION: CWS autotranslationfix (1.9.8); FILE MERGED
2004/08/02 14:14:45 ihi 1.9.8.1: #i32451# Localisation tools writes now UTF8 and not MS1252 in sdf files
Diffstat (limited to 'transex3')
-rw-r--r-- | transex3/source/xrmmerge.cxx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/transex3/source/xrmmerge.cxx b/transex3/source/xrmmerge.cxx index b91df185828d..a52ccb649b7a 100644 --- a/transex3/source/xrmmerge.cxx +++ b/transex3/source/xrmmerge.cxx @@ -2,9 +2,9 @@ * * $RCSfile: xrmmerge.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: rt $ $Date: 2004-07-13 13:54:21 $ + * last change: $Author: hr $ $Date: 2004-08-02 16:26:15 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -531,7 +531,7 @@ XRMResOutputParser::XRMResOutputParser ( const ByteString &rOutputFile ) String( rOutputFile, RTL_TEXTENCODING_ASCII_US ), STREAM_STD_WRITE | STREAM_TRUNC ); - + pOutputStream->SetStreamCharSet( RTL_TEXTENCODING_UTF8 ); if ( !pOutputStream->IsOpen()) { ByteString sError( "Unable to open output file: " ); sError += rOutputFile; @@ -649,6 +649,11 @@ void XRMResExport::EndOfText( //sOutput += ByteString::CreateFromInt64( Export::LangId[ i ] ); sOutput += sCur; sOutput += "\t"; + +// if( sCur.EqualsIgnoreCaseAscii("de") ){ +// sAct = UTF8Converter::ConvertToUTF8( sAct, RTL_TEXTENCODING_MS_1252 ); +// } + sOutput += sAct; sOutput += "\t\t\t\t"; sOutput += sTimeStamp; @@ -656,6 +661,9 @@ void XRMResExport::EndOfText( // sOutput = UTF8Converter::ConvertToUTF8( sOutput, Export::GetCharSet( Export::LangId[ i ] )); sOutput.SearchAndReplaceAll( sSearch, "_" ); + //if( sCur.EqualsIgnoreCaseAscii("de") ){ + // sOutput = UTF8Converter::ConvertToUTF8( sOutput , RTL_TEXTENCODING_MS_1252 ); + //} pOutputStream->WriteLine( sOutput ); } |