|
Lines 70-78
if ( $cmd =~ /^(install|compress|uncompress)$/ ) {
Link Here
|
| 70 |
$installer->$cmd(\@files); |
70 |
$installer->$cmd(\@files); |
| 71 |
} |
71 |
} |
| 72 |
|
72 |
|
| 73 |
Koha::Caches->get_instance()->flush_all if $cmd ne 'update'; |
73 |
Koha::Caches->get_instance()->flush_all; |
| 74 |
} |
74 |
} elsif ($cmd eq 'create' or $cmd eq 'update') { |
| 75 |
else { |
75 |
my $command = "gulp po:$cmd"; |
|
|
76 |
$command .= " --silent" if (!$verbose); |
| 77 |
$command .= " --lang $lang" if ($lang); |
| 78 |
|
| 79 |
print STDERR "Deprecation notice: PO creation and update are now gulp tasks. See docs/development/internationalization.md\n"; |
| 80 |
print STDERR "Running `$command`\n"; |
| 81 |
|
| 82 |
system($command); |
| 83 |
} else { |
| 76 |
usage(); |
84 |
usage(); |
| 77 |
} |
85 |
} |
| 78 |
|
86 |
|
| 79 |
- |
|
|