From ab8eda59e025be6a3e19ecde9fae237a48402226 Mon Sep 17 00:00:00 2001 From: Magnus Enger Date: Mon, 2 Mar 2015 11:45:25 +0100 Subject: [PATCH] Bug 13772 - koha-translate still looks for CCSR and prog koha-translate still tries to use the CCSR and prog OPAC themes. To reproduce: - Make sure you have at least one other language than en installed - Try to update the language with "koha-translate -u " - Observe warnings similar to this: $ sudo koha-translate -u nb-NO /usr/share/koha/opac/htdocs/opac-tmpl/ccsr/en/: Input must be a directory. (Symbolic links are not supported at the moment) Try `/usr/share/koha/misc/translator/tmpl_process3.pl --help for more information. /usr/share/koha/opac/htdocs/opac-tmpl/prog/en/: Input must be a directory. (Symbolic links are not supported at the moment) Try `/usr/share/koha/misc/translator/tmpl_process3.pl --help for more information. To test: (This is probably easiest to test on a gitified setup) - Apply the patch to your git repo - Copy the modified koha-ranslate to a place where you can use it, e.g.: $ sudo cp debian/scripts/koha-translate /usr/sbin/koha-translate - Run "koha-translate -u " again - Observe the lack of warnings --- debian/scripts/koha-translate | 2 -- 1 file changed, 2 deletions(-) diff --git a/debian/scripts/koha-translate b/debian/scripts/koha-translate index 0d978a3..3504009 100755 --- a/debian/scripts/koha-translate +++ b/debian/scripts/koha-translate @@ -153,8 +153,6 @@ remove_lang() fi if print_installed | grep -q $lang; then - rm -rf $KOHA_INSTALL_DIR/opac/htdocs/opac-tmpl/prog/$lang - rm -rf $KOHA_INSTALL_DIR/opac/htdocs/opac-tmpl/ccsr/$lang rm -rf $KOHA_INSTALL_DIR/opac/htdocs/opac-tmpl/bootstrap/$lang rm -rf $KOHA_INSTALL_DIR/intranet/htdocs/intranet-tmpl/prog/$lang else -- 1.9.1