diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-04-27 08:35:15 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-04-27 08:35:15 +0000 |
commit | b442920b4c9d2aa113696a2daa8b142be04f03ae (patch) | |
tree | 4ce7f8a6d6ea0003825877d21e2f70bb53b2db85 /transex3 | |
parent | b3478915e31d790f36a5c7c69ed743f7a6e555b0 (diff) |
INTEGRATION: CWS mmw01 (1.37.20); FILE MERGED
2005/04/14 16:25:06 ihi 1.37.20.1: #i45736# #121724# Support for macro migration
Diffstat (limited to 'transex3')
-rw-r--r-- | transex3/source/localize.cxx | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/transex3/source/localize.cxx b/transex3/source/localize.cxx index e4a3cd9823a3..0b642526a34d 100644 --- a/transex3/source/localize.cxx +++ b/transex3/source/localize.cxx @@ -2,9 +2,9 @@ * * $RCSfile: localize.cxx,v $ * - * $Revision: 1.37 $ + * $Revision: 1.38 $ * - * last change: $Author: kz $ $Date: 2005-01-13 19:17:41 $ + * last change: $Author: obo $ $Date: 2005-04-27 09:35:15 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -134,6 +134,7 @@ private: USHORT nMode; ByteString sLanguageRestriction; + ByteString sIsoCode99; ByteString sOutputFile; int nFileCnt; @@ -172,6 +173,8 @@ public: SourceTreeLocalizer( const ByteString &rRoot, const ByteString &rVersion , bool bLocal , bool bQuiet2_in ); ~SourceTreeLocalizer(); + ByteString getSourceLanguages( ByteString sLanguageRestriction , ByteString sCommand , ByteString rParameter ); + void SetLanguageRestriction( const ByteString& rRestrictions ) { sLanguageRestriction = rRestrictions; } void SetIsoCode99( const ByteString& rIsoCode ) @@ -319,7 +322,8 @@ void SourceTreeLocalizer::WorkOnFile( sCommand += sTempFile; if ( sLanguageRestriction.Len()) { sCommand += " -l "; - sCommand += sLanguageRestriction; + sCommand += getSourceLanguages( sLanguageRestriction , sCommand , rParameter ); + //sCommand += sLanguageRestriction; } if ( rIso.Equals("iso") && sIsoCode99.Len()) { sCommand += " -ISO99 "; @@ -366,6 +370,18 @@ void SourceTreeLocalizer::WorkOnFile( aOldCWD.SetCWD(); } +ByteString SourceTreeLocalizer::getSourceLanguages( ByteString sLanguageRestriction , ByteString sCommand , ByteString sParameter ) +{ + // Source languages in helpcontent2 and macromigration en-US only! + if( sCommand.Search("helpex") != STRING_NOTFOUND ) { + sLanguageRestriction.Assign( ByteString("en-US") ); + } + else if( sCommand.Search("xmlex") != STRING_NOTFOUND ){ + sLanguageRestriction.Assign( ByteString("en-US") ); + } + return sLanguageRestriction; +} + /*****************************************************************************/ BOOL SourceTreeLocalizer::CheckNegativeList( const ByteString &rFileName ) /*****************************************************************************/ |