1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-22 11:36:38 +02:00
ttrss/utils/extract-i18n-js.pl
2009-02-20 12:57:02 +03:00

16 lines
227 B
Perl
Executable File

#!/usr/bin/perl -w
#
use strict;
while (<STDIN>) {
chomp;
if (/(__|notify_progress|notify|notify_info|notify_error)\(['"](.*?)['"]\)/) {
my $msg = $2;
$msg =~ s/\"/\\\"/g;
print "print T_js_decl(\"$msg\");\n";
}
}