Summary: | Only show warn about existing directory on installing translations when verbose is used | ||
---|---|---|---|
Product: | Koha | Reporter: | Katrin Fischer <katrin.fischer> |
Component: | I18N/L10N | Assignee: | Bernardo Gonzalez Kriegel <bgkriegel> |
Status: | CLOSED FIXED | QA Contact: | Alex Arnaud <alex.arnaud> |
Severity: | trivial | ||
Priority: | P5 - low | CC: | aleisha, alex.arnaud, bgkriegel, f.demians, jonathan.druart, lucas |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | Trivial patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: |
20.11.00, 20.05.01
|
|
Circulation function: | |||
Attachments: |
Bug 25346: Supress warning message when install dir exists
Bug 25346: Supress warning message when install dir exists Bug 25346: Supress warning message when install dir exists |
Description
Katrin Fischer
2020-05-01 16:06:39 UTC
Created attachment 105104 [details] [review] Bug 25346: Supress warning message when install dir exists To see it enable verbose mode To test: 1) Install lang with install dir (cd misc/translator; ./tranlste install de-DE) check message: "de-DE installer dir /...mysql/de-DE already exists." 2) Apply patch 3) Repeat 1, now message is gone 4) Repeat 1 in verbose mode (./translate install de-DE -v) check the message now appears at the bottom. (In reply to Katrin Fischer from comment #0) > When installing a language that is already present on the system, this error > is displayed: > It's not an error but a warning, can be suppressed by this patch. Created attachment 105264 [details] [review] Bug 25346: Supress warning message when install dir exists To see it enable verbose mode To test: 1) Install lang with install dir (cd misc/translator; ./tranlste install de-DE) check message: "de-DE installer dir /...mysql/de-DE already exists." 2) Apply patch 3) Repeat 1, now message is gone 4) Repeat 1 in verbose mode (./translate install de-DE -v) check the message now appears at the bottom. Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Created attachment 105578 [details] [review] Bug 25346: Supress warning message when install dir exists To see it enable verbose mode To test: 1) Install lang with install dir (cd misc/translator; ./tranlste install de-DE) check message: "de-DE installer dir /...mysql/de-DE already exists." 2) Apply patch 3) Repeat 1, now message is gone 4) Repeat 1 in verbose mode (./translate install de-DE -v) check the message now appears at the bottom. Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Alex Arnaud <alex.arnaud@biblibre.com> Pushed to master for 20.11, thanks to everybody involved! backported to 20.05.x for 20.05.01 doesn't apply cleanly, please rebase if needed on 19.11.x |