Author: jani Date: Sun Sep 29 10:43:57 2013 New Revision: 1527297 URL: http://svn.apache.org/r1527297 Log: prepare for "merge" command.
Added: openoffice/branches/l10n40/main/languages/scripts/ openoffice/branches/l10n40/main/languages/scripts/runConvert (with props) Modified: openoffice/branches/l10n40/main/l10ntools/source/gConPoWrap.cxx openoffice/branches/l10n40/main/l10ntools/source/gConSrcWrap.cxx openoffice/branches/l10n40/main/l10ntools/source/gConTreeWrap.cxx openoffice/branches/l10n40/main/l10ntools/source/gConUlfWrap.cxx openoffice/branches/l10n40/main/l10ntools/source/gConXcsWrap.cxx openoffice/branches/l10n40/main/l10ntools/source/gConXcuWrap.cxx openoffice/branches/l10n40/main/l10ntools/source/gConXhpWrap.cxx openoffice/branches/l10n40/main/l10ntools/source/gConXrmWrap.cxx Modified: openoffice/branches/l10n40/main/l10ntools/source/gConPoWrap.cxx URL: http://svn.apache.org/viewvc/openoffice/branches/l10n40/main/l10ntools/source/gConPoWrap.cxx?rev=1527297&r1=1527296&r2=1527297&view=diff ============================================================================== --- openoffice/branches/l10n40/main/l10ntools/source/gConPoWrap.cxx (original) +++ openoffice/branches/l10n40/main/l10ntools/source/gConPoWrap.cxx Sun Sep 29 10:43:57 2013 @@ -160,6 +160,9 @@ void convert_po::handleNL() /********************** I M P L E M E N T A T I O N **********************/ void convert_po::execute() { + if (mbMergeMode) + throw "Merge not implemented"; + PoWrap::yylex(); startLook(); } Modified: openoffice/branches/l10n40/main/l10ntools/source/gConSrcWrap.cxx URL: http://svn.apache.org/viewvc/openoffice/branches/l10n40/main/l10ntools/source/gConSrcWrap.cxx?rev=1527297&r1=1527296&r2=1527297&view=diff ============================================================================== --- openoffice/branches/l10n40/main/l10ntools/source/gConSrcWrap.cxx (original) +++ openoffice/branches/l10n40/main/l10ntools/source/gConSrcWrap.cxx Sun Sep 29 10:43:57 2013 @@ -64,6 +64,9 @@ namespace SrcWrap /********************** I M P L E M E N T A T I O N **********************/ void convert_src::execute() { + if (mbMergeMode) + throw "Merge not implemented"; + SrcWrap::yylex(); } Modified: openoffice/branches/l10n40/main/l10ntools/source/gConTreeWrap.cxx URL: http://svn.apache.org/viewvc/openoffice/branches/l10n40/main/l10ntools/source/gConTreeWrap.cxx?rev=1527297&r1=1527296&r2=1527297&view=diff ============================================================================== --- openoffice/branches/l10n40/main/l10ntools/source/gConTreeWrap.cxx (original) +++ openoffice/branches/l10n40/main/l10ntools/source/gConTreeWrap.cxx Sun Sep 29 10:43:57 2013 @@ -74,6 +74,9 @@ void convert_tree::execute() std::string sLang; std::string sFile, sFile2; + if (mbMergeMode) + throw "Merge not implemented"; + // prepare list with languages if (mbMergeMode) { Modified: openoffice/branches/l10n40/main/l10ntools/source/gConUlfWrap.cxx URL: http://svn.apache.org/viewvc/openoffice/branches/l10n40/main/l10ntools/source/gConUlfWrap.cxx?rev=1527297&r1=1527296&r2=1527297&view=diff ============================================================================== --- openoffice/branches/l10n40/main/l10ntools/source/gConUlfWrap.cxx (original) +++ openoffice/branches/l10n40/main/l10ntools/source/gConUlfWrap.cxx Sun Sep 29 10:43:57 2013 @@ -52,6 +52,9 @@ namespace UlfWrap /********************** I M P L E M E N T A T I O N **********************/ void convert_ulf::execute() { + if (mbMergeMode) + throw "Merge not implemented"; + UlfWrap::yylex(); } Modified: openoffice/branches/l10n40/main/l10ntools/source/gConXcsWrap.cxx URL: http://svn.apache.org/viewvc/openoffice/branches/l10n40/main/l10ntools/source/gConXcsWrap.cxx?rev=1527297&r1=1527296&r2=1527297&view=diff ============================================================================== --- openoffice/branches/l10n40/main/l10ntools/source/gConXcsWrap.cxx (original) +++ openoffice/branches/l10n40/main/l10ntools/source/gConXcsWrap.cxx Sun Sep 29 10:43:57 2013 @@ -62,6 +62,9 @@ namespace XcsWrap /********************** I M P L E M E N T A T I O N **********************/ void convert_xcs::execute() { + if (mbMergeMode) + throw "Merge not implemented"; + // currently no .xcs files generate en-US translation, so stop trying XcsWrap::yylex(); } Modified: openoffice/branches/l10n40/main/l10ntools/source/gConXcuWrap.cxx URL: http://svn.apache.org/viewvc/openoffice/branches/l10n40/main/l10ntools/source/gConXcuWrap.cxx?rev=1527297&r1=1527296&r2=1527297&view=diff ============================================================================== --- openoffice/branches/l10n40/main/l10ntools/source/gConXcuWrap.cxx (original) +++ openoffice/branches/l10n40/main/l10ntools/source/gConXcuWrap.cxx Sun Sep 29 10:43:57 2013 @@ -63,6 +63,9 @@ namespace XcuWrap /********************** I M P L E M E N T A T I O N **********************/ void convert_xcu::execute() { + if (mbMergeMode) + throw "Merge not implemented"; + XcuWrap::yylex(); } Modified: openoffice/branches/l10n40/main/l10ntools/source/gConXhpWrap.cxx URL: http://svn.apache.org/viewvc/openoffice/branches/l10n40/main/l10ntools/source/gConXhpWrap.cxx?rev=1527297&r1=1527296&r2=1527297&view=diff ============================================================================== --- openoffice/branches/l10n40/main/l10ntools/source/gConXhpWrap.cxx (original) +++ openoffice/branches/l10n40/main/l10ntools/source/gConXhpWrap.cxx Sun Sep 29 10:43:57 2013 @@ -74,6 +74,9 @@ void convert_xhp::execute() std::string sLang; std::string sFile, sFile2; + if (mbMergeMode) + throw "Merge not implemented"; + // prepare list with languages miCntLanguages = mcMemory.prepareMerge(); if (mbMergeMode) Modified: openoffice/branches/l10n40/main/l10ntools/source/gConXrmWrap.cxx URL: http://svn.apache.org/viewvc/openoffice/branches/l10n40/main/l10ntools/source/gConXrmWrap.cxx?rev=1527297&r1=1527296&r2=1527297&view=diff ============================================================================== --- openoffice/branches/l10n40/main/l10ntools/source/gConXrmWrap.cxx (original) +++ openoffice/branches/l10n40/main/l10ntools/source/gConXrmWrap.cxx Sun Sep 29 10:43:57 2013 @@ -59,6 +59,9 @@ namespace XrmWrap /********************** I M P L E M E N T A T I O N **********************/ void convert_xrm::execute() { + if (mbMergeMode) + throw "Merge not implemented"; + XrmWrap::yylex(); // write last part of file. Added: openoffice/branches/l10n40/main/languages/scripts/runConvert URL: http://svn.apache.org/viewvc/openoffice/branches/l10n40/main/languages/scripts/runConvert?rev=1527297&view=auto ============================================================================== --- openoffice/branches/l10n40/main/languages/scripts/runConvert (added) +++ openoffice/branches/l10n40/main/languages/scripts/runConvert Sun Sep 29 10:43:57 2013 @@ -0,0 +1,13 @@ +#!/bin/bash + + +cd ${SOURCE_ROOT_DIR}/main/languages/gCon_test/aoo40 +LANG="ast bg ca cs da de el en-GB es eu fa fi fr gd gl he hi hu id it ja keyid km ko lt nb nl pl pt pt-BR ro ru sh sk sl sr sv ta th tr ug uk vi zh-CN zh-TW" +for MODULE in `ls da` +do + echo + FILELIST=`cat ../module_lst/${MODULE}.lst` + ${SOLARVER}/unxlngx6.pro/bin/genLang convert ${MODULE} ${SOURCE_ROOT_DIR}/main/languages/source \"${LANG}\" -f ${FILELIST} -v + done +done + Propchange: openoffice/branches/l10n40/main/languages/scripts/runConvert ------------------------------------------------------------------------------ svn:executable = *