<?xml version="1.0" encoding="UTF-8"?>
<wiki>
  <body>&lt;h1&gt;Overview&lt;/h1&gt;
&lt;p&gt;The &lt;code&gt;Locale&lt;/code&gt; class implements the &lt;span class=&quot;caps&quot;&gt;IETF&lt;/span&gt; language tags defined in &lt;span class=&quot;caps&quot;&gt;RFC&lt;/span&gt; 4646 and &lt;span class=&quot;caps&quot;&gt;RFC&lt;/span&gt; 4647.&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;The class will be String-like but will not inherit from &lt;code&gt;String&lt;/code&gt;.&lt;/li&gt;
	&lt;li&gt;The class will be case-insensitive, which will influence the various equality, comparison and hash methods.&lt;/li&gt;
	&lt;li&gt;The class will provide &lt;code&gt;to_s&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Here is a quick outline of the class. Attributes may or may not be read-only:&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;
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
&lt;/code&gt;
&lt;/pre&gt;</body>
  <created-at type="datetime">2008-08-11T04:37:15-07:00</created-at>
  <id type="integer">44352</id>
  <permalink>locale-class</permalink>
  <repository-id type="integer">39249</repository-id>
  <title>Locale Class</title>
  <updated-at type="datetime">2008-08-11T04:37:15-07:00</updated-at>
  <user-id type="integer">4651</user-id>
</wiki>
