app/models/data_type.rb
# Not all unique data types DISPLAY with their label... translations come from
# the DB on the labels we know we like:
Not all unique data types DISPLAY with their label... translations come from
the DB on the labels we know we like.
Not all unique data types DISPLAY with their label ... translations come from the DB on the labels we know we like .
def simple_type(language_iso_code = nil)
    if DataType.image_type_ids.include? id
      DataType.image.label(language_iso_code)
    elsif DataType.text_type_ids.include? id
      DataType.text.label(language_iso_code)
    elsif DataType.sound_type_ids.include? id
      DataType.sound.label(language_iso_code)
    elsif DataType.video_type_ids.include? id
      DataType.video.label(language_iso_code)
    else
      label(language_iso_code) 
    end
  end
def simple_type ( language_iso_code = nil ) if DataType . image_type_ids . include? id DataType . image . label ( language_iso_code ) elsif DataType . text_type_ids . include? id DataType . text . label ( language_iso_code ) elsif DataType . sound_type_ids . include? id DataType . sound . label ( language_iso_code ) elsif DataType . video_type_ids . include? id DataType . video . label ( language_iso_code ) else label ( language_iso_code ) end end
Not all unique data types DISPLAY with their label... translations come from
the DB on the labels we know we like:
Not all unique data types DISPLAY with their label ... translations come from the DB on the labels we know we like :
# We'll have to use whatever we have.
language_iso_code
<not_specific>