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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (+25 lines)
Lines 715-720 $(document).ready(function() { Link Here
715
        </select>
715
        </select>
716
       </li>
716
       </li>
717
     [% END %]
717
     [% END %]
718
    [% IF Koha.Preference('TranslateNotices') %]
719
        <li>
720
            <label for="lang">Preferred language for notices: </label>
721
            <select id="lang" name="lang">
722
                <option value="default">Default</option>
723
                [% FOR language IN languages %]
724
                    [% FOR sublanguage IN language.sublanguages_loop %]
725
                        [% IF language.plural %]
726
                            [% IF sublanguage.rfc4646_subtag == lang %]
727
                                <option value="[% sublanguage.rfc4646_subtag %]" selected="selected">[% sublanguage.native_description %] [% sublanguage.region_description %] ([% sublanguage.rfc4646_subtag %])</option>
728
                            [% ELSE %]
729
                                <option value="[% sublanguage.rfc4646_subtag %]">[% sublanguage.native_description %] [% sublanguage.region_description %] ([% sublanguage.rfc4646_subtag %])</option>
730
                            [% END %]
731
                        [% ELSE %]
732
                            [% IF sublanguage.rfc4646_subtag == lang %]
733
                                <option value="[% sublanguage.rfc4646_subtag %]" selected="selected">[% sublanguage.native_description %] ([% sublanguage.rfc4646_subtag %])</option>
734
                            [% ELSE %]
735
                                <option value="[% sublanguage.rfc4646_subtag %]">[% sublanguage.native_description %] ([% sublanguage.rfc4646_subtag %])</option>
736
                            [% END %]
737
                        [% END %]
738
                    [% END %]
739
                [% END %]
740
            </select>
741
        </li>
742
    [% END %]
718
   </ol>
743
   </ol>
719
  </fieldset>
744
  </fieldset>
720
    [% UNLESS nodateenrolled &&  noopacnote && noborrowernotes %]
745
    [% UNLESS nodateenrolled &&  noopacnote && noborrowernotes %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (+6 lines)
Lines 452-457 function validate1(date) { Link Here
452
        [% END %]
452
        [% END %]
453
      </li>
453
      </li>
454
    [% END %]
454
    [% END %]
455
    [% IF Koha.Preference('TranslateNotices') %]
456
        <li>
457
            <span class="label">Preferred language for notices: </span>
458
            [% translated_language %]
459
        </li>
460
    [% END %]
455
	</ol>
461
	</ol>
456
	</div>
462
	</div>
457
 </div>
463
 </div>
(-)a/members/memberentry.pl (+7 lines)
Lines 267-272 $newdata{'city'} = $input->param('city') if defined($input->param('city')) Link Here
267
$newdata{'zipcode'} = $input->param('zipcode') if defined($input->param('zipcode'));
267
$newdata{'zipcode'} = $input->param('zipcode') if defined($input->param('zipcode'));
268
$newdata{'country'} = $input->param('country') if defined($input->param('country'));
268
$newdata{'country'} = $input->param('country') if defined($input->param('country'));
269
269
270
$newdata{'lang'}    = $input->param('lang')    if defined($input->param('lang'));
271
270
# builds default userid
272
# builds default userid
271
# userid input text may be empty or missing because of syspref BorrowerUnwantedField
273
# userid input text may be empty or missing because of syspref BorrowerUnwantedField
272
if ( ( defined $newdata{'userid'} && $newdata{'userid'} eq '' ) || $check_BorrowerUnwantedField =~ /userid/ ) {
274
if ( ( defined $newdata{'userid'} && $newdata{'userid'} eq '' ) || $check_BorrowerUnwantedField =~ /userid/ ) {
Lines 779-784 if ( defined $min ) { Link Here
779
    );
781
    );
780
}
782
}
781
783
784
if ( C4::Context->preference('TranslateNotices') ) {
785
    my $translated_languages = C4::Languages::getTranslatedLanguages( 'opac', C4::Context->preference('template') );
786
    $template->param( languages => $translated_languages );
787
}
788
782
output_html_with_http_headers $input, $cookie, $template->output;
789
output_html_with_http_headers $input, $cookie, $template->output;
783
790
784
sub  parse_extended_patron_attributes {
791
sub  parse_extended_patron_attributes {
(-)a/members/moremember.pl (-1 / +7 lines)
Lines 325-332 if (C4::Context->preference('EnhancedMessagingPreferences')) { Link Here
325
325
326
# in template <TMPL_IF name="I"> => instutitional (A for Adult, C for children) 
326
# in template <TMPL_IF name="I"> => instutitional (A for Adult, C for children) 
327
$template->param( $data->{'categorycode'} => 1 );
327
$template->param( $data->{'categorycode'} => 1 );
328
329
# Display the language description instead of the code
330
# Note that this is certainly wrong
331
my ( $subtag, $region ) = split '-', $patron->lang;
332
my $translated_language = C4::Languages::language_get_description( $subtag, $subtag, 'language' );
333
328
$template->param(
334
$template->param(
329
    patron          => $patron,
335
    patron          => $patron,
336
    translated_language => $translated_language,
330
    detailview      => 1,
337
    detailview      => 1,
331
    borrowernumber  => $borrowernumber,
338
    borrowernumber  => $borrowernumber,
332
    othernames      => $data->{'othernames'},
339
    othernames      => $data->{'othernames'},
333
- 

Return to bug 17762