2009-02-20 09:57:02 +00:00
|
|
|
#!/usr/bin/perl -w
|
|
|
|
#
|
|
|
|
use strict;
|
|
|
|
|
|
|
|
while (<STDIN>) {
|
|
|
|
chomp;
|
|
|
|
|
2018-12-02 17:56:30 +00:00
|
|
|
if (/(__|Notify.progress|Notify.msg|Notify.info|Notify.error)\(['"](.*?)['"]\)/) {
|
2009-02-20 09:57:02 +00:00
|
|
|
my $msg = $2;
|
|
|
|
|
|
|
|
$msg =~ s/\"/\\\"/g;
|
|
|
|
|
|
|
|
print "print T_js_decl(\"$msg\");\n";
|
|
|
|
}
|
|
|
|
}
|