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 720-725 $(document).ready(function() { Link Here
720
        </select>
720
        </select>
721
       </li>
721
       </li>
722
     [% END %]
722
     [% END %]
723
    [% IF Koha.Preference('TranslateNotices') %]
724
        <li>
725
            <label for="lang">Preferred language for notices: </label>
726
            <select id="lang" name="lang">
727
                <option value="default">Default</option>
728
                [% FOR language IN languages %]
729
                    [% FOR sublanguage IN language.sublanguages_loop %]
730
                        [% IF language.plural %]
731
                            [% IF sublanguage.rfc4646_subtag == lang %]
732
                                <option value="[% sublanguage.rfc4646_subtag %]" selected="selected">[% sublanguage.native_description %] [% sublanguage.region_description %] ([% sublanguage.rfc4646_subtag %])</option>
733
                            [% ELSE %]
734
                                <option value="[% sublanguage.rfc4646_subtag %]">[% sublanguage.native_description %] [% sublanguage.region_description %] ([% sublanguage.rfc4646_subtag %])</option>
735
                            [% END %]
736
                        [% ELSE %]
737
                            [% IF sublanguage.rfc4646_subtag == lang %]
738
                                <option value="[% sublanguage.rfc4646_subtag %]" selected="selected">[% sublanguage.native_description %] ([% sublanguage.rfc4646_subtag %])</option>
739
                            [% ELSE %]
740
                                <option value="[% sublanguage.rfc4646_subtag %]">[% sublanguage.native_description %] ([% sublanguage.rfc4646_subtag %])</option>
741
                            [% END %]
742
                        [% END %]
743
                    [% END %]
744
                [% END %]
745
            </select>
746
        </li>
747
    [% END %]
723
   </ol>
748
   </ol>
724
  </fieldset>
749
  </fieldset>
725
    [% UNLESS nodateenrolled &&  noopacnote && noborrowernotes %]
750
    [% UNLESS nodateenrolled &&  noopacnote && noborrowernotes %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (+6 lines)
Lines 460-465 function validate1(date) { Link Here
460
        [% END %]
460
        [% END %]
461
      </li>
461
      </li>
462
    [% END %]
462
    [% END %]
463
    [% IF Koha.Preference('TranslateNotices') %]
464
        <li>
465
            <span class="label">Preferred language for notices: </span>
466
            [% translated_language %]
467
        </li>
468
    [% END %]
463
	</ol>
469
	</ol>
464
	</div>
470
	</div>
465
 </div>
471
 </div>
(-)a/members/memberentry.pl (+7 lines)
Lines 265-270 $newdata{'city'} = $input->param('city') if defined($input->param('city')) Link Here
265
$newdata{'zipcode'} = $input->param('zipcode') if defined($input->param('zipcode'));
265
$newdata{'zipcode'} = $input->param('zipcode') if defined($input->param('zipcode'));
266
$newdata{'country'} = $input->param('country') if defined($input->param('country'));
266
$newdata{'country'} = $input->param('country') if defined($input->param('country'));
267
267
268
$newdata{'lang'}    = $input->param('lang')    if defined($input->param('lang'));
269
268
# builds default userid
270
# builds default userid
269
# userid input text may be empty or missing because of syspref BorrowerUnwantedField
271
# userid input text may be empty or missing because of syspref BorrowerUnwantedField
270
if ( ( defined $newdata{'userid'} && $newdata{'userid'} eq '' ) || $check_BorrowerUnwantedField =~ /userid/ ) {
272
if ( ( defined $newdata{'userid'} && $newdata{'userid'} eq '' ) || $check_BorrowerUnwantedField =~ /userid/ ) {
Lines 772-777 if ( defined $min ) { Link Here
772
    );
774
    );
773
}
775
}
774
776
777
if ( C4::Context->preference('TranslateNotices') ) {
778
    my $translated_languages = C4::Languages::getTranslatedLanguages( 'opac', C4::Context->preference('template') );
779
    $template->param( languages => $translated_languages );
780
}
781
775
output_html_with_http_headers $input, $cookie, $template->output;
782
output_html_with_http_headers $input, $cookie, $template->output;
776
783
777
sub  parse_extended_patron_attributes {
784
sub  parse_extended_patron_attributes {
(-)a/members/moremember.pl (-1 / +7 lines)
Lines 331-338 if ( C4::Context->preference("ExportCircHistory") ) { Link Here
331
331
332
# in template <TMPL_IF name="I"> => instutitional (A for Adult, C for children)
332
# in template <TMPL_IF name="I"> => instutitional (A for Adult, C for children)
333
$template->param( $data->{'categorycode'} => 1 );
333
$template->param( $data->{'categorycode'} => 1 );
334
335
# Display the language description instead of the code
336
# Note that this is certainly wrong
337
my ( $subtag, $region ) = split '-', $patron->lang;
338
my $translated_language = C4::Languages::language_get_description( $subtag, $subtag, 'language' );
339
334
$template->param(
340
$template->param(
335
    patron          => $patron,
341
    patron          => $patron,
342
    translated_language => $translated_language,
336
    detailview      => 1,
343
    detailview      => 1,
337
    borrowernumber  => $borrowernumber,
344
    borrowernumber  => $borrowernumber,
338
    othernames      => $data->{'othernames'},
345
    othernames      => $data->{'othernames'},
339
- 

Return to bug 17762