Bugzilla – Attachment 34019 Details for
Bug 13362
translate script creates dirs on update
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13362: translate script creates dirs on update
Bug-13362-translate-script-creates-dirs-on-update.patch (text/plain), 1.36 KB, created by
Bernardo Gonzalez Kriegel
on 2014-11-28 18:24:00 UTC
(
hide
)
Description:
Bug 13362: translate script creates dirs on update
Filename:
MIME Type:
Creator:
Bernardo Gonzalez Kriegel
Created:
2014-11-28 18:24:00 UTC
Size:
1.36 KB
patch
obsolete
>From 75cf269d7836a605f71ccf60b4cc1e39b7a43ecb Mon Sep 17 00:00:00 2001 >From: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Date: Fri, 28 Nov 2014 15:14:53 -0300 >Subject: [PATCH] Bug 13362: translate script creates dirs on update > >A dir creation was uncommented (by me), the effect is >create a lang dir on 'update', which is no needed. > >To test: >1) Update translation files for a uninstalled language >(cd misc/translator; ./translate update xx-YY) > >2) Check new dirs >koha-tmpl/opac-tmpl/bootstrap/xx-YY/ >koha-tmpl/intranet-tmpl/prog/xx-YY/ >koha-tmpl/intranet-tmpl/prog/en/modules/help/xx-YY/ > >3) Clean all >git clean -f -d > >4) Apply the patch > >5) Repeat 1) (i.e. update) > >6) Check no new dirs this time >--- > misc/translator/LangInstaller.pm | 1 - > 1 file changed, 1 deletion(-) > >diff --git a/misc/translator/LangInstaller.pm b/misc/translator/LangInstaller.pm >index c538b57..b3b09da 100644 >--- a/misc/translator/LangInstaller.pm >+++ b/misc/translator/LangInstaller.pm >@@ -371,7 +371,6 @@ sub update_tmpl { > " To : $self->{path_po}/$self->{lang}$trans->{suffix}\n" > if $self->{verbose}; > my $lang_dir = "$trans->{dir}/$self->{lang}"; >- mkdir $lang_dir unless -d $lang_dir; > > my $trans_dir = ( $trans->{name} =~ /help/ )?"$trans->{dir}":"$trans->{dir}/en/"; > my $excludes = ( $trans->{name} =~ /UI/ )?"-x 'help'":""; >-- >1.7.9.5
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 13362
:
34019
|
34020
|
34378