summaryrefslogtreecommitdiff
path: root/transex3
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2005-02-14 10:43:50 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2005-02-14 10:43:50 +0000
commit097253aa55200d1c4aaf3123c2adccc6df631690 (patch)
tree6351dbfdc7d786e296a2af06e7fa0a2063a5c934 /transex3
parentfb72dec3f62533209ce9d095baf2dbd61c669571 (diff)
INTEGRATION: CWS babelfish06 (1.44.4); FILE MERGED
2005/01/28 17:27:14 ihi 1.44.4.1: #i41371# german list strings fix
Diffstat (limited to 'transex3')
-rw-r--r--transex3/source/export.cxx17
1 files changed, 13 insertions, 4 deletions
diff --git a/transex3/source/export.cxx b/transex3/source/export.cxx
index 43f9a7502c0b..ec36bda467ae 100644
--- a/transex3/source/export.cxx
+++ b/transex3/source/export.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: export.cxx,v $
*
- * $Revision: 1.44 $
+ * $Revision: 1.45 $
*
- * last change: $Author: kz $ $Date: 2005-01-13 19:16:42 $
+ * last change: $Author: hr $ $Date: 2005-02-14 11:43:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1550,6 +1550,10 @@ ByteString Export::GetPairedListString( const ByteString& sText ){
sString.EraseLeadingChars( ' ' );
return sString;
}
+ByteString Export::StripList( const ByteString& sText ){
+ ByteString s1 = sText.Copy( sText.Search( '\"' ) + 1 );
+ return s1.Copy( 0 , s1.SearchBackward( '\"' ) );
+}
/*****************************************************************************/
BOOL Export::WriteExportList( ResData *pResData, ExportList *pExportList,
@@ -1593,8 +1597,13 @@ BOOL Export::WriteExportList( ResData *pResData, ExportList *pExportList,
sText = GetPairedListString( sText );
}
else{
- if ((*pEntry)[ sCur ].Len())
- sText = (*pEntry)[ sCur ];
+ if ((*pEntry)[ sCur ].Len()){
+ if( sCur.EqualsIgnoreCaseAscii("de") ){
+ sText = StripList( (*pEntry)[ sCur ] );
+ }
+ else
+ sText = (*pEntry)[ sCur ];
+ }
}
ByteString sOutput( sProject ); sOutput += "\t";