Changeset 5639
- Timestamp:
- 06/26/09 22:39:35 (3 years ago)
- File:
-
- 1 edited
-
trunk/tools/update_pot_file.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/update_pot_file.pl
r3706 r5639 11 11 my $cwd = cwd; 12 12 my $localedir = catdir ( $cwd, 'share', 'locale' ); 13 unless(-d $localedir) { 14 # Search for the 'locale' directory when 'share/locale' 15 # directory is not found 16 my @files = File::Find::Rule->directory()-> 17 name('locale')->relative->in($cwd); 18 if(scalar @files > 0) { 19 $localedir = $files[0]; 20 } else { 21 die "locale directory not found.\n"; 22 } 23 } 24 13 25 my $pot_file = catfile( $localedir, 'messages.pot' ); 14 26 my $pmfiles = catfile( $cwd, 'files.txt' );
Note: See TracChangeset
for help on using the changeset viewer.
