View | Details | Raw Unified | Return to bug 27490
Collapse All | Expand All

(-)a/C4/Languages.pm (-1 / +1 lines)
Lines 115-121 sub getTranslatedLanguages { Link Here
115
    my @languages;
115
    my @languages;
116
    my @enabled_languages =
116
    my @enabled_languages =
117
      ( $interface && $interface eq 'intranet' )
117
      ( $interface && $interface eq 'intranet' )
118
      ? split ",", C4::Context->preference('language')
118
      ? split ",", C4::Context->preference('StaffInterfaceLanguages')
119
      : split ",", C4::Context->preference('OPACLanguages');
119
      : split ",", C4::Context->preference('OPACLanguages');
120
120
121
    my $cache = Koha::Caches->get_instance;
121
    my $cache = Koha::Caches->get_instance;
(-)a/Koha/SharedContent.pm (-1 / +1 lines)
Lines 133-139 Prepare Koha entity data to be sent to Mana KB. Link Here
133
133
134
sub prepare_entity_data {
134
sub prepare_entity_data {
135
    my ($lang, $loggedinuser, $ressourceid, $ressourcetype) = @_;
135
    my ($lang, $loggedinuser, $ressourceid, $ressourcetype) = @_;
136
    $lang ||= C4::Context->preference('language');
136
    $lang ||= C4::Context->preference('StaffInterfaceLanguages');
137
137
138
    my $mana_email;
138
    my $mana_email;
139
    if ( $loggedinuser ne 0 ) {
139
    if ( $loggedinuser ne 0 ) {
(-)a/installer/data/mysql/atomicupdate/bug_27490-change-syspref.pl (+14 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number  => "27490",
5
    description => "Changing language syspref to StaffInterfaceLanguages",
6
    up          => sub {
7
        my ($args) = @_;
8
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
10
        $dbh->do(q{UPDATE systempreferences SET variable='StaffInterfaceLanguages' WHERE variable='language'});
11
12
        say $out "Updated system preference 'Change language to StaffInterfaceLanguages'";
13
    },
14
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-1 / +1 lines)
Lines 362-368 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
362
('KohaManualBaseURL','https://koha-community.org/manual/','','Where is the Koha manual/documentation located?','Free'),
362
('KohaManualBaseURL','https://koha-community.org/manual/','','Where is the Koha manual/documentation located?','Free'),
363
('KohaManualLanguage','en','en|ar|cs|de|es|fr|it|pt_BR|tr|zh_TW','What is the language of the online manual you want to use?','Choice'),
363
('KohaManualLanguage','en','en|ar|cs|de|es|fr|it|pt_BR|tr|zh_TW','What is the language of the online manual you want to use?','Choice'),
364
('LabelMARCView','standard','standard|economical','Define how a MARC record will display','Choice'),
364
('LabelMARCView','standard','standard|economical','Define how a MARC record will display','Choice'),
365
('language','en',NULL,'Set the default language in the staff interface.','Languages'),
365
('StaffInterfaceLanguages','en',NULL,'Set the default language in the staff interface.','Languages'),
366
('LibraryName','','','Define the library name as displayed on the OPAC',''),
366
('LibraryName','','','Define the library name as displayed on the OPAC',''),
367
('LibraryThingForLibrariesEnabled','0','','Enable or Disable Library Thing for Libraries Features','YesNo'),
367
('LibraryThingForLibrariesEnabled','0','','Enable or Disable Library Thing for Libraries Features','YesNo'),
368
('LibraryThingForLibrariesID','','','See:http://librarything.com/forlibraries/','free'),
368
('LibraryThingForLibrariesID','','','See:http://librarything.com/forlibraries/','free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/i18n_l10n.pref (-2 / +1 lines)
Lines 33-39 I18N/L10N: Link Here
33
        - as the first day of week in the calendar.
33
        - as the first day of week in the calendar.
34
    -
34
    -
35
        - "Enable the following languages on the staff interface:"
35
        - "Enable the following languages on the staff interface:"
36
        - pref: language
36
        - pref: StaffInterfaceLanguages
37
          type: staff-languages
37
          type: staff-languages
38
        - "This list can be sorted to modify the order of the languages on the interface."
38
        - "This list can be sorted to modify the order of the languages on the interface."
39
    -
39
    -
40
- 

Return to bug 27490