https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39851
--- Comment #8 from Jonathan Druart <[email protected]> --- Created attachment 199731 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199731&action=edit Bug 39851: Compare all sublanguages for a given language To know if a language is available we list all the languages in the first level of the array. Example for "fr": [8] { current 0, group_enabled undef, language "fr", native_description "Français", plural 1, rfc4646_subtag "fr-CA", sublanguages_loop [ [0] { extension undef, language "fr", native_description "Français", privateuse undef, region "CA", region_description "Canada", rfc4646_subtag "fr-CA", script undef, script_description undef, variant undef, variant_description undef }, [1] { extension undef, language "fr", native_description "Français", privateuse undef, region "FR", region_description "France", rfc4646_subtag "fr-FR", script undef, script_description undef, variant undef, variant_description undef } ] }, The rfc4646_subtag entry at the "language" level get one of the 2 values from the sublanguages_loop, randomly! So if you request fr-FR but fr-CA is set, then it's considered not available and one of the languages in @languages will be picked randomly (actually the first one, but it's not sorted consistently!) -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
