http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12705 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bgkriegel@gmail.com --- Comment #2 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Marc, your patch works and has no errors, but I wonder if someone could see this as a regression because you can't put a news on a specific variant of a language. You can't right now, but the problem is the strange structure returned by getTranslatedLanguages() If you change this foreach my $language ( @$tlangs ) { push @lang_list, { language => $language->{'rfc4646_subtag'}, selected => ( $new_detail->{lang} eq $language->{'rfc4646_subtag'} ? 1 : 0 ), }; } with this foreach my $language ( @$tlangs ) { foreach my $sublanguage ( @{$language->{'sublanguages_loop'}} ) { push @lang_list, { language => $sublanguage->{'rfc4646_subtag'}, selected => ( $new_detail->{lang} eq $sublanguage->{'rfc4646_subtag'} ? 1 : 0 ), }; } } } then the problem is solved. Perhaps a new feature could be a multiple selection on target languages or interfaces for news display location. Another feature could show here only 'active' languages, i.e. only push if ( $sublanguage->{'enabled'} ) -- You are receiving this mail because: You are watching all bug changes.