Bugzilla – Attachment 109274 Details for
Bug 25067
Move PO file manipulation code into gulp tasks
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25067: Add translate create|update commands that call gulp
Bug-25067-Add-translate-createupdate-commands-that.patch (text/plain), 1.20 KB, created by
Julian Maurice
on 2020-08-28 10:23:12 UTC
(
hide
)
Description:
Bug 25067: Add translate create|update commands that call gulp
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2020-08-28 10:23:12 UTC
Size:
1.20 KB
patch
obsolete
>From 4d30ec88a79bd04111f8472007a720b4d53a4982 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Wed, 22 Apr 2020 09:30:58 +0200 >Subject: [PATCH] Bug 25067: Add translate create|update commands that call > gulp > >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >--- > misc/translator/translate | 14 +++++++++++--- > 1 file changed, 11 insertions(+), 3 deletions(-) > >diff --git a/misc/translator/translate b/misc/translator/translate >index 08764f0b42..4469743f77 100755 >--- a/misc/translator/translate >+++ b/misc/translator/translate >@@ -70,9 +70,17 @@ if ( $cmd =~ /^(install|compress|uncompress)$/ ) { > $installer->$cmd(\@files); > } > >- Koha::Caches->get_instance()->flush_all if $cmd ne 'update'; >-} >-else { >+ Koha::Caches->get_instance()->flush_all; >+} elsif ($cmd eq 'create' or $cmd eq 'update') { >+ my $command = "gulp po:$cmd"; >+ $command .= " --silent" if (!$verbose); >+ $command .= " --lang $lang" if ($lang); >+ >+ print STDERR "Deprecation notice: PO creation and update are now gulp tasks. See docs/development/internationalization.md\n"; >+ print STDERR "Running `$command`\n"; >+ >+ system($command); >+} else { > usage(); > } > >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 25067
:
102432
|
103383
|
103403
|
103404
|
103440
|
103557
|
103558
|
103562
|
103563
|
103564
|
103565
|
103566
|
106503
|
106504
|
106505
|
106506
|
106507
|
106807
|
109272
|
109273
|
109274
|
109275
|
109276
|
109277
|
109295
|
109296
|
109297
|
110011
|
110012
|
110013
|
110014
|
110015
|
110016
|
110017
|
110018
|
110019
|
110776
|
111642
|
111643
|
113252
|
113255
|
113258