Bug 12705 - News not possible for one sublanguage if two sublanguages are installed
To test: - Install two language variants (e.g. de-DE and de-CH) - Create OPAC news for each of them - Verify that they are displayed in OPAC as appropriate Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Works Ok, no koha-qa errors Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Works ok, all installed languages now show up in the pull downs and display for the selected language in the OPAC. Passes tests and QA script. Signed-off-by: Mason James <mtj@kohaaloha.com>
This commit is contained in:
parent
74b78a4081
commit
a2dc1e4eca
|
|
@ -65,12 +65,15 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
|
|||
# get lang list
|
||||
my @lang_list;
|
||||
my $tlangs = getTranslatedLanguages() ;
|
||||
|
||||
foreach my $language ( @$tlangs ) {
|
||||
push @lang_list,
|
||||
{
|
||||
language => $language->{'rfc4646_subtag'},
|
||||
selected => ( $new_detail->{lang} eq $language->{'rfc4646_subtag'} ? 1 : 0 ),
|
||||
};
|
||||
foreach my $sublanguage ( @{$language->{'sublanguages_loop'}} ) {
|
||||
push @lang_list,
|
||||
{
|
||||
language => $sublanguage->{'rfc4646_subtag'},
|
||||
selected => ( $new_detail->{lang} eq $sublanguage->{'rfc4646_subtag'} ? 1 : 0 ),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
my $branches = GetBranches;
|
||||
|
|
|
|||
Loading…
Reference in New Issue