@@ -, +, @@ --- Koha/Manual.pm | 4 ++-- installer/data/mysql/atomicupdate/bug_19817.sql | 3 +++ installer/data/mysql/sysprefs.sql | 3 ++- .../prog/en/modules/admin/preferences/enhanced_content.pref | 13 +++++++++++++ 4 files changed, 20 insertions(+), 3 deletions(-) --- a/Koha/Manual.pm +++ a/Koha/Manual.pm @@ -17,12 +17,12 @@ sub _get_help_version { } sub _get_base_url { - # FIXME /en/ must be configurable (or guessed) my $KohaManualBaseURL = C4::Context->preference('KohaManualBaseURL') || 'http://koha-community.org/manual'; + my $KohaManualLanguage = C4::Context->preference('KohaManualLanguage') || 'en'; if ( $KohaManualBaseURL =~ m|^/| ) { $KohaManualBaseURL = C4::Context->preference('staffClientBaseURL') . $KohaManualBaseURL; } - return $KohaManualBaseURL . '/' . _get_help_version . '/en/html'; + return $KohaManualBaseURL . '/' . _get_help_version . '/' . $KohaManualLanguage . '/html'; # TODO html could be a KohaManualFormat with pdf, html, epub } our $mapping = { --- a/installer/data/mysql/atomicupdate/bug_19817.sql +++ a/installer/data/mysql/atomicupdate/bug_19817.sql @@ -1,2 +1,5 @@ INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES ('KohaManualBaseURL','http://koha-community.org/manual/','','Where is the Koha manual/documentation located?','Free'); + +INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) +VALUES ('KohaManualLanguage','en','en|ar|cs|es|fr|it|pt_BR|tr|zh_TW','What is the language of the online manual you want to use?','Choice'); --- a/installer/data/mysql/sysprefs.sql +++ a/installer/data/mysql/sysprefs.sql @@ -47,7 +47,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('AnonSuggestions','0',NULL,'Set to enable Anonymous suggestions to AnonymousPatron borrowernumber','YesNo'), ('AnonymousPatron','0',NULL,'Set the identifier (borrowernumber) of the anonymous patron. Used for Suggestion and reading history privacy',''), ('ArticleRequests', '0', NULL, 'Enables the article request feature', 'YesNo'), -('ArticleRequestsMandatoryFields', '', NULL, 'Comma delimited list of required fields for bibs where article requests rule = ''yes''', 'multiple'), +('ArticleRequestsMandatoryFields', '', NULL, 'Comma delimited list of required fields for bibs where article requests rule = ''yes''', 'Choice'), ('ArticleRequestsMandatoryFieldsItemsOnly', '', NULL, 'Comma delimited list of required fields for bibs where article requests rule = ''item_only''', 'multiple'), ('ArticleRequestsMandatoryFieldsRecordOnly', '', NULL, 'Comma delimited list of required fields for bibs where article requests rule = ''bib_only''', 'multiple'), ('AudioAlerts','0','','Enable circulation sounds during checkin and checkout in the staff interface. Not supported by all web browsers yet.','YesNo'), @@ -239,6 +239,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('itemcallnumber','082ab',NULL,'The MARC field/subfield that is used to calculate the itemcallnumber (Dewey would be 082ab or 092ab; LOC would be 050ab or 090ab) could be 852hi from an item record','free'), ('KohaAdminEmailAddress','root@localhost','','Define the email address where patron modification requests are sent','free'), ('KohaManualBaseURL','http://koha-community.org/manual/','','Where is the Koha manual/documentation located?','Free'), +('KohaManualLanguage','en','en|ar|cs|es|fr|it|pt_BR|tr|zh_TW','What is the language of the online manual you want to use?','multiple'), ('LabelMARCView','standard','standard|economical','Define how a MARC record will display','Choice'), ('language','en',NULL,'Set the default language in the staff client.','Languages'), ('LetterLog','1',NULL,'If ON, log all notices sent','YesNo'), --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref @@ -398,3 +398,16 @@ Enhanced Content: - You can specify the location of the Koha manual to use. By default it is http://koha-community.org/manual/ - If starts with '/', the value of staffClientBaseURL will be used as a prefix. - Note that it will be suffixed by the version / the language / the format (/17.11/en/html) + - + - Language of the online manual + - pref: KohaManualLanguage + choices: + en: English + ar: Arabic + cs: Czech + es: Spanish + fr: French + it: Italian + pt_BR: Portuguese – Brazil + tr: Turkish + zh_TW: Chinese – Taiwan --