Commits

Anonymous committed a89d697

#i10000# localize.cxx is in a weird state

Comments (0)

Files changed (1)

transex3/source/localize.cxx

 	const ByteString &rParameter, const ByteString &rIso )
 /*****************************************************************************/
 {
-		String sFull( rFileName, RTL_TEXTENCODING_ASCII_US );
+		(void) rIso; // Remove me ;)
+        String sFull( rFileName, RTL_TEXTENCODING_ASCII_US );
 		DirEntry aEntry( sFull );
 		ByteString sFileName( aEntry.GetName(), RTL_TEXTENCODING_ASCII_US );
 
             sExecutable += rExecutable ;
 
            
-#if defined(WNT) || defined(OS2)
-			sExecutable += ".exe";
-			String sPath( Export::GetEnv( "PATH" ), RTL_TEXTENCODING_ASCII_US );
-#else
-			String sPath( Export::GetEnv( "LD_LIBRARY_PATH" ), RTL_TEXTENCODING_ASCII_US );
-#endif	 
-
-			DirEntry aExecutable( String( sExecutable, RTL_TEXTENCODING_ASCII_US ));
-			aExecutable.Find( sPath );
-
-			ByteString sCommand( aExecutable.GetFull(), RTL_TEXTENCODING_ASCII_US );
-			sCommand += " ";
-			sCommand += rParameter;
-			sCommand += " -p ";
-			sCommand += sPrj;
-			sCommand += " -r ";
-			sCommand += sRoot;
-			sCommand += " -i ";
-			sCommand += sFileName;
-			sCommand += " -o ";
-			sCommand += sTempFile;
-			if ( sLanguageRestriction.Len()) {
-				sCommand += " -l ";
-				sCommand += getSourceLanguages( sLanguageRestriction , sCommand );
-			}
-			if ( rIso.Equals("iso") && sIsoCode99.Len()) {
-				sCommand += " -ISO99 ";
-				sCommand += sIsoCode99;
-			}
-            if( bQuiet2 ){
+	    ByteString sCommand( sExecutable );
+	    sCommand += " ";
+	    sCommand += rParameter;
+	    sCommand += " -p ";
+	    sCommand += sPrj;
+	    sCommand += " -r ";
+	    sCommand += sRoot;
+	    sCommand += " -i ";
+	    sCommand += sFileName;
+	    sCommand += " -o ";
+	    sCommand += sTempFile;
+	    if ( sLanguageRestriction.Len()) {
+	    	sCommand += " -l ";
+		sCommand += getSourceLanguages( sLanguageRestriction , sCommand );
+	    }
+            
+	    if( bQuiet2 ){
                 sCommand +=" -QQ ";
             }
             //printf("DBG: %s\n",sCommand.GetBuffer());