app/models/toc_item.rb
# TODO - sure, we can code this with english labels, but it should STORE ids.
sure, we can code this with english labels, but it should STORE ids.
sure we can code this with english labels but it should STORE ids .
def for_uris(lang)
      InfoItem 
      lang = lang.iso_code if lang.respond_to?(:iso_code)
      @@for_uris ||= {}
      @@for_uris[lang] ||= FOR_URIS.map do
        |label| TocItem.cached_find_translated(:label, label, lang)
      end.flatten.compact
    end
def for_uris ( lang ) InfoItem lang = lang . iso_code if lang . respond_to? ( :iso_code ) @@for_uris ||= { } @@for_uris [ lang ] ||= FOR_URIS . map do | label | TocItem . cached_find_translated ( :label , label , lang ) end . flatten . compact end
TODO - sure, we can code this with english labels, but it should STORE ids.
TODO - sure we can code this with english labels but it should STORE ids .
# Argh. Must be loaded.
lang
<not_specific>