Bugzilla – Attachment 159025 Details for
Bug 35174
Remove .po files from the codebase
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35174: Don't run gulp po commands if po dir is missing
Bug-35174-Dont-run-gulp-po-commands-if-po-dir-is-m.patch (text/plain), 1.12 KB, created by
Jonathan Druart
on 2023-11-16 08:02:12 UTC
(
hide
)
Description:
Bug 35174: Don't run gulp po commands if po dir is missing
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-11-16 08:02:12 UTC
Size:
1.12 KB
patch
obsolete
>From 502e47ea556d4ef49edc419f692bfda28453d9d7 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 16 Nov 2023 08:45:15 +0100 >Subject: [PATCH] Bug 35174: Don't run gulp po commands if po dir is missing > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > gulpfile.js | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/gulpfile.js b/gulpfile.js >index 3e471a6f5e7..4676eee69a3 100644 >--- a/gulpfile.js >+++ b/gulpfile.js >@@ -428,6 +428,11 @@ exports.watch = function () { > watch(STAFF_CSS_BASE + "/src/**/*.scss", series('staff_css')); > }; > >+if (args['_'][0].match("po:") && !fs.existsSync('misc/translator/po')) { >+ console.log("misc/translator/po does not exist. You should clone koha-l10n there. See https://wiki.koha-community.org/wiki/Translation_files for more details."); >+ process.exit(1); >+} >+ > exports['po:create'] = parallel(...poTypes.map(type => poTasks[type].create)); > exports['po:update'] = parallel(...poTypes.map(type => poTasks[type].update)); > exports['po:extract'] = parallel(...poTypes.map(type => poTasks[type].extract)); >-- >2.34.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 35174
:
159021
|
159022
|
159023
|
159024
| 159025 |
159038