Skip to content

Commit 86ad6f2

Browse files
AndreUlrichAndreUlrich
authored andcommitted
Item283: first shot of fixing the translation tool for Foswiki
1 parent 74c62f1 commit 86ad6f2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

core/tools/check_translations

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ use strict;
55
my $use = <<EOF
66
Use:
77
\$ tools/check_translations
8-
Outputs TWiki translation status in TWikiML format, suitable for inclusion in a TWiki topic.
8+
Outputs translation status in Foswiki ML format, suitable for inclusion in a topic.
99
\$ tools/check_translations --raw
10-
Outputs TWiki translation status in raw gettext's msgfmt output format (old style)
10+
Outputs translation status in raw gettext's msgfmt output format (old style)
1111
\$ tools/check_translations --upload
12-
Generates the same output when called without parameters, then uploads it to the Codev.TWikiTranslationStatus at TWiki.org. You'll be asked for your WikiName and password.
12+
Generates the same output when called without parameters, then uploads it to Development.FoswikiTranslationStatus at foswiki.org. You'll be asked for your WikiName and password.
1313
EOF
1414
;
1515

@@ -37,7 +37,7 @@ sub list_translators {
3737
}
3838
if ($line =~ m/^#\s*(TWiki:Main\/\w*),/) {
3939
my $topic = $1;
40-
$topic =~ s#TWiki:#http://twiki.org/cgi-bin/view/#;
40+
$topic =~ s#TWiki:#http://www.fowswiki.org/bin/view/#;
4141
print " $topic\n";
4242
}
4343
}
@@ -123,14 +123,14 @@ EOF
123123
;
124124

125125
my $ua = LWP::UserAgent->new;
126-
$ua->agent("TWiki check_translations Script");
127-
my $req = POST 'http://twiki.org/cgi-bin/save/Codev/TWikiTranslationStatus', [ text => $text ];
126+
$ua->agent("Foswiki check_translations Script");
127+
my $req = POST 'http://www.foswiki.org/bin/save/Development/FoswikiTranslationStatus', [ text => $text ];
128128
$req->authorization_basic($wikiname, $password);
129129
my $resp = $ua->request($req);
130130
if ($resp->is_redirect) {
131-
print "I: Translation status successfully uploaded to twiki.org!\n";
131+
print "I: Translation status successfully uploaded to Foswiki.org!\n";
132132
} else {
133-
print "E: Translation status not uploaded to twiki.org. Did you type your correct WikiName and password?\n";
133+
print "E: Translation status not uploaded to Foswiki.org. Did you type your correct WikiName and password?\n";
134134
print $resp->content;
135135
}
136136
} else {

0 commit comments

Comments
 (0)