From: Tomas Cohen Arazi Date: Fri, 31 Jan 2014 19:52:15 +0000 (-0300) Subject: Bug 11655: koha-translate --list no longer shows 'en' X-Git-Tag: v3.16.00-beta~809 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=6aa021896827e846e58f88a8c5387df122688c53;p=koha_fer Bug 11655: koha-translate --list no longer shows 'en' 'en' is not a translation and it doesn't make any sense to return it as part of the installed translations or the available ones. It becomes relevant to remove it as users upgrading their installed translations end up grepping the output to remove 'en' like in: for lang in $(koha-translate --list | grep -v -x -e 'en') ; do koha-translate --update $lang done instead of simply issuing the koha-translate --list command. To test: - Run ./koha-translate --list ./koha-translate --list --available => It shouldn't return 'en' in the result list. Sponsored-by: Universidad Nacional de Cordoba Signed-off-by: Chris Cormack Signed-off-by: Jonathan Druart Signed-off-by: Galen Charlton --- diff --git a/debian/scripts/koha-translate b/debian/scripts/koha-translate index 78bc23eb00..0164a72677 100755 --- a/debian/scripts/koha-translate +++ b/debian/scripts/koha-translate @@ -71,14 +71,15 @@ print_available() { # Loop over only one opac theme for i in $( ls $PO_DIR | grep opac-t-prog ); do - echo `basename $i -i-opac-t-prog-v-3006000.po` + echo `basename $i -i-opac-t-prog-v-3006000.po` | \ + grep -v -x -e en done } print_installed() { ls $KOHA_INSTALL_DIR/opac/htdocs/opac-tmpl/prog/ | \ - grep -v -e images -e itemtypeimg + grep -v -e images -e itemtypeimg -x -e en } install_lang()