Bug 15306: Do not display the translate link if only 1 language is installed
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 7 Jan 2016 12:34:54 +0000 (12:34 +0000)
committerJulian Maurice <julian.maurice@biblibre.com>
Mon, 7 Mar 2016 08:42:32 +0000 (09:42 +0100)
commit24975cd7ef6fb58f4443dcf12bcb9af9f2deef09
tree6e74f1e65b47afa5d9ec9fd43430131ab890d3f8
parentfd65d2264e830c1a41e2cbfbe94049ca7d1eddda
Bug 15306: Do not display the translate link if only 1 language is installed

It doesn't make sense to offer the option to translate an item type
description into another language if there is only one language
installed.

Test plan:
Generates templates for only 1 language
Edit an item type and confirm that the link "translate into..." is not
displayed.
Generates templates for another language
Confirm that the link is now displayed.

Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
(cherry picked from commit adef1d1020255373ec6f954bcd1a02e382305047)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
admin/itemtypes.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt