openoffice-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1443893 - in /openoffice/branches/l10n/main/l10ntools: prj/d.lst source/gL10nMem.cxx
Date Fri, 08 Feb 2013 08:58:52 GMT
Author: jani
Date: Fri Feb  8 08:58:52 2013
New Revision: 1443893

URL: http://svn.apache.org/r1443893
Log:
changed output to test, and added copy of genLang

Modified:
    openoffice/branches/l10n/main/l10ntools/prj/d.lst
    openoffice/branches/l10n/main/l10ntools/source/gL10nMem.cxx

Modified: openoffice/branches/l10n/main/l10ntools/prj/d.lst
URL: http://svn.apache.org/viewvc/openoffice/branches/l10n/main/l10ntools/prj/d.lst?rev=1443893&r1=1443892&r2=1443893&view=diff
==============================================================================
--- openoffice/branches/l10n/main/l10ntools/prj/d.lst (original)
+++ openoffice/branches/l10n/main/l10ntools/prj/d.lst Fri Feb  8 08:58:52 2013
@@ -6,6 +6,7 @@ mkdir: %_DEST%\bin%_EXT%\help\com\sun
 mkdir: %_DEST%\bin%_EXT%\help\com\sun\star
 mkdir: %_DEST%\bin%_EXT%\help\com\sun\star\help
 
+..\%__SRC%\bin\genLang.exe %_DEST%\bin%_EXT%\genLang.exe
 ..\%__SRC%\bin\cfgex.exe %_DEST%\bin%_EXT%\cfgex.exe
 ..\%__SRC%\bin\cfgex %_DEST%\bin%_EXT%\cfgex
 ..\%__SRC%\bin\transex3.exe %_DEST%\bin%_EXT%\transex3.exe

Modified: openoffice/branches/l10n/main/l10ntools/source/gL10nMem.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/l10n/main/l10ntools/source/gL10nMem.cxx?rev=1443893&r1=1443892&r2=1443893&view=diff
==============================================================================
--- openoffice/branches/l10n/main/l10ntools/source/gL10nMem.cxx (original)
+++ openoffice/branches/l10n/main/l10ntools/source/gL10nMem.cxx Fri Feb  8 08:58:52 2013
@@ -72,12 +72,17 @@ l10nMem::~l10nMem()
 /**********************   I M P L E M E N T A T I O N   **********************/
 void l10nMem::save(const std::string& srTargetFile)
 {
-  int i;
+  int           i;
+  std::ofstream outputFile(srTargetFile.c_str(), std::ios::binary);
 
-  std::cout << "--------------- dump of l10n " << srTargetFile << "-----------------"
<< std::endl;
+  if (!outputFile.is_open())
+    throw std::string("Could not open ")+srTargetFile;
 
+	
   for (i = 0; i < (int)mcMemory.size(); ++i)
-    std::cout << "key: " << mcMemory[i].msKey << "  text: " << mcMemory[i].msText
<< std::endl;
+	outputFile << msCurrentModuleName << "\t" << msCurrentSourceFileName <<
"\t"
+	           << mcMemory[i].msKey   << "\t" << mcMemory[i].msLanguage  <<
"\t"
+               << mcMemory[i].msText  << std::endl;
   // JIX
 }
 
@@ -86,8 +91,6 @@ void l10nMem::save(const std::string& sr
 /**********************   I M P L E M E N T A T I O N   **********************/
 void l10nMem::clear()
 {
-  std::cout << "--------------- clear of l10n -----------------" << std::endl;
-
   mcMemory.clear();
   // JIX
 }



Mime
View raw message