Skip to content

Commit

Permalink
Item270: more filename changes that weren't tracked in the MANIFEST, …
Browse files Browse the repository at this point in the history
…and do the pot file

git-svn-id: http://svn.foswiki.org/trunk@901 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
SvenDowideit authored and SvenDowideit committed Nov 24, 2008
1 parent 9813ac5 commit 810d325
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
7 changes: 3 additions & 4 deletions core/lib/Foswiki/Contrib/core/MANIFEST
Expand Up @@ -153,11 +153,10 @@ data/System/TwentyMinuteTutorial.txt 0644
data/System/MetaData.txt 0644
data/System/ShortcutMacros.txt 0644
data/System/CommandAndCGIScripts.txt 0644
data/System/TWikiSite.txt 0644
data/System/SiteTools.txt 0644
data/System/TWikiSystemRequirements.txt 0644
data/System/TWikiTopics.txt 0644
data/System/TWikiUserAuthentication.txt 0644
data/System/SystemRequirements.txt 0644
data/System/TopicsAndWebs.txt 0644
data/System/UserAuthentication.txt 0644
data/System/TemplateWeb.txt 0644
data/System/TextEditor.txt 0644
data/System/TextFormattingFAQ.txt 0644
Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions core/tools/xgettext
@@ -1,18 +1,18 @@
#!/usr/bin/perl
#
# Script to extract strings from TWiki sources and templates
# Script to extract strings from Foswiki sources and templates

use strict;

# force the use from the root
-d 'bin' and -d "lib" and -d 'tools' and -d 'templates' or die("You may only run this utility from the root directory of TWiki sources!");
-d 'bin' and -d "lib" and -d 'tools' and -d 'templates' or die("You may only run this utility from the root directory of Foswiki sources!");

use File::Spec;

my $cwd = `pwd` ;
chomp($cwd);
unshift(@INC, File::Spec->catfile($cwd, 'lib'));
eval "use TWiki::I18N::Extract";
eval "use Foswiki::I18N::Extract";
die($@) if $@;
eval "use Locale::Maketext::Lexicon";
die($@) if $@;
Expand All @@ -24,7 +24,7 @@ die('The msgmerge command is required, it must be in your path. Try installing G

# config
my $localesDir = "locale";
my $potfile = "${localesDir}/TWiki.pot";
my $potfile = "${localesDir}/Foswiki.pot";
my $newpotfile = $potfile . '.new';

# extract strings from the source code and append to the new potfile
Expand Down Expand Up @@ -71,7 +71,7 @@ sub extract {
my ($target, @sources) = @_;
print "I: Extracting strings into $target.\n";

my $extractor = new TWiki::I18N::Extract;
my $extractor = new Foswiki::I18N::Extract;
die("Could not create an extractor. Is Locale::Maketext installed? (see above messages)") unless $extractor;

my $progress = undef;
Expand Down

0 comments on commit 810d325

Please sign in to comment.