localize.pl (8e9e5c11) localize.pl (a0e9f0af)
1:
2eval 'exec perl -wS $0 ${1+"$@"}'
3 if 0;
4
5
6#**************************************************************
7#
8# Licensed to the Apache Software Foundation (ASF) under one

--- 266 unchanged lines hidden (view full) ---

275"#\n".
276"#**************************************************************\n".
277"# \n".
278"# Licensed to the Apache Software Foundation (ASF) under one\n".
279"# or more contributor license agreements. See the NOTICE file\n".
280"# distributed with this work for additional information\n".
281"# regarding copyright ownership. The ASF licenses this file\n".
282"# to you under the Apache License, Version 2.0 (the\n".
1:
2eval 'exec perl -wS $0 ${1+"$@"}'
3 if 0;
4
5
6#**************************************************************
7#
8# Licensed to the Apache Software Foundation (ASF) under one

--- 266 unchanged lines hidden (view full) ---

275"#\n".
276"#**************************************************************\n".
277"# \n".
278"# Licensed to the Apache Software Foundation (ASF) under one\n".
279"# or more contributor license agreements. See the NOTICE file\n".
280"# distributed with this work for additional information\n".
281"# regarding copyright ownership. The ASF licenses this file\n".
282"# to you under the Apache License, Version 2.0 (the\n".
283"# "License"); you may not use this file except in compliance\n".
283"# \"License\"); you may not use this file except in compliance\n".
284"# with the License. You may obtain a copy of the License at\n".
285"# \n".
286"# http://www.apache.org/licenses/LICENSE-2.0\n".
287"# \n".
288"# Unless required by applicable law or agreed to in writing,\n".
289"# software distributed under the License is distributed on an\n".
284"# with the License. You may obtain a copy of the License at\n".
285"# \n".
286"# http://www.apache.org/licenses/LICENSE-2.0\n".
287"# \n".
288"# Unless required by applicable law or agreed to in writing,\n".
289"# software distributed under the License is distributed on an\n".
290"# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n".
290"# \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n".
291"# KIND, either express or implied. See the License for the\n".
292"# specific language governing permissions and limitations\n".
293"# under the License.\n".
294"# \n".
295"#**************************************************************\n";
296}
297######## Check input sdf file and use only the correct part
298sub merge_gsicheck{

--- 32 unchanged lines hidden (view full) ---

331 else { print "."; }
332 }
333}
334
335sub add_paths
336{
337 my $langhash_ref = shift;
338 my $root_dir = $ENV{ SRC_ROOT };
291"# KIND, either express or implied. See the License for the\n".
292"# specific language governing permissions and limitations\n".
293"# under the License.\n".
294"# \n".
295"#**************************************************************\n";
296}
297######## Check input sdf file and use only the correct part
298sub merge_gsicheck{

--- 32 unchanged lines hidden (view full) ---

331 else { print "."; }
332 }
333}
334
335sub add_paths
336{
337 my $langhash_ref = shift;
338 my $root_dir = $ENV{ SRC_ROOT };
339 my $ooo_l10n_dir = "$root_dir/l10n/source";
340 my $so_l10n_dir = "$root_dir/l10n_so/source";
339 my $ooo_l10n_dir = "$root_dir/../extras/l10n/source";
341
342 if( -e $ooo_l10n_dir )
343 {
344 foreach my $lang ( keys( %{ $langhash_ref } ) )
345 {
346 my $loc_file = "$ooo_l10n_dir/$lang/localize.sdf";
347 if( -e $loc_file )
348 {
349 push @sdfparticles , "$ooo_l10n_dir/$lang/localize.sdf";
350 }
351 else { print "WARNING: $loc_file not found ....\n"; }
352 }
353 }
354 else { die "ERROR: Can not find directory $ooo_l10n_dir!!!" }
340
341 if( -e $ooo_l10n_dir )
342 {
343 foreach my $lang ( keys( %{ $langhash_ref } ) )
344 {
345 my $loc_file = "$ooo_l10n_dir/$lang/localize.sdf";
346 if( -e $loc_file )
347 {
348 push @sdfparticles , "$ooo_l10n_dir/$lang/localize.sdf";
349 }
350 else { print "WARNING: $loc_file not found ....\n"; }
351 }
352 }
353 else { die "ERROR: Can not find directory $ooo_l10n_dir!!!" }
355 if( -e $so_l10n_dir )
356 {
357 foreach my $lang ( keys( %{ $langhash_ref } ) )
358 {
359 my $loc_file = "$so_l10n_dir/$lang/localize.sdf";
360 if( -e $loc_file )
361 {
362 push @sdfparticles , "$ooo_l10n_dir/$lang/localize.sdf";
363 }
364 else { #print "WARNING: $loc_file not found ....\n";
365 }
366 }
367
368 }
369}
370sub collectfiles{
371 print STDOUT "### Localize\n";
372 my $localizehash_ref;
373 my ( $bAll , $bUseLocalize, $langhash_ref , $bHasSourceLanguage , $bFakeEnglish ) = parseLanguages();
374
375 # Enable autoflush on STDOUT
376 # $| = 1;

--- 692 unchanged lines hidden ---
354}
355sub collectfiles{
356 print STDOUT "### Localize\n";
357 my $localizehash_ref;
358 my ( $bAll , $bUseLocalize, $langhash_ref , $bHasSourceLanguage , $bFakeEnglish ) = parseLanguages();
359
360 # Enable autoflush on STDOUT
361 # $| = 1;

--- 692 unchanged lines hidden ---