summaryrefslogtreecommitdiff
path: root/l10ntools/source
diff options
context:
space:
mode:
authorZolnai Tamás <zolnaitamas2000@gmail.com>2013-12-26 21:21:22 +0100
committerZolnai Tamás <tamas.zolnai@collabora.com>2013-12-27 07:14:57 +0100
commitd1c74734c8d9026b0f0c03f7382ca60165cec8c6 (patch)
tree59b36bab691b842e6a1871328ff77be6a3902644 /l10ntools/source
parentbbee59851329142cdad62120ac02af922697e99f (diff)
Transex3: NO_LOCALIZE_EXPORT
In the past, NO_LOCALIZE_EXPORT macro must be used to skip uneeded parsing of src files which has no localizable content. It is unsued by now and it is more effective to handle this files on gmake level: gb_SrsTarget_add_nonlocalizable_files gb_SrsTarget_add_nonlocalizable_templates Plus remove some empty src file. Change-Id: I8fc9b2db0b5fd7a3379d3c5be970c4fc691f4c53
Diffstat (limited to 'l10ntools/source')
-rw-r--r--l10ntools/source/export.cxx31
1 files changed, 3 insertions, 28 deletions
diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx
index 3d69d84f238f..1dabc8d02290 100644
--- a/l10ntools/source/export.cxx
+++ b/l10ntools/source/export.cxx
@@ -180,7 +180,6 @@ Export::Export(const OString &rOutput)
nList( LIST_NON ),
nListIndex( 0 ),
nListLevel( 0 ),
- bSkipFile( false ),
bMergeMode( false ),
bError( sal_False ),
bReadOver( sal_False ),
@@ -205,7 +204,6 @@ Export::Export(
nList( LIST_NON ),
nListIndex( 0 ),
nListLevel( 0 ),
- bSkipFile( false ),
bMergeMode( sal_True ),
sMergeSrc( rMergeSource ),
bError( sal_False ),
@@ -304,14 +302,6 @@ int Export::Execute( int nToken, const char * pToken )
WriteToMerged( sOrig , false );
return 0;
}
- // #define NO_LOCALIZE_EXPORT
- if( bSkipFile ){
- if ( bMergeMode ) {
- WriteToMerged( sOrig , false );
- }
- return 1;
- }
-
if ( bDefine ) {
if (( nToken != EMPTYLINE ) && ( nToken != LEVELDOWN ) && ( nToken != LEVELUP )) {
@@ -361,24 +351,9 @@ int Export::Execute( int nToken, const char * pToken )
switch ( nToken ) {
case NORMDEFINE:
- sToken = sToken.replace('\r', ' ').replace('\t', ' ');
- for (;;) {
- sal_Int32 n = 0;
- sToken = sToken.replaceFirst(" ", " ", &n);
- if (n == -1) {
- break;
- }
- }
- if( sToken.equalsIgnoreAsciiCase("#define NO_LOCALIZE_EXPORT") ){
- bSkipFile = true;
- return 0;
- }
- if ( bMergeMode )
- WriteToMerged( sOrig , false );
-
- return 0;
-
-
+ if ( bMergeMode )
+ WriteToMerged( sOrig , false );
+ return 0;
case RSCDEFINE:
bDefine = sal_True; // res. defined in macro