svenfuchs
8/11/2008 - 10:14 AM

gistfile1.rbx

class Locale # is this a String? maybe not.
  attr :language, :script, :region, :variant, :extension, :private_use
  def valid?
    # validate against RFC4646
  end
  def parent
    # return 'en' for 'en-US' etc.
  end
end