code: void setLocale(Locale locale)
     {
        m_resourceNames = LocaleData.getStringArray(locale, LocaleData.RESOURCE_NAMES);
  
        String name;
        m_resourceNumbers.clear();
  
        for (int loop = 0; loop < m_resourceNames.length; loop++)
        {
           name = m_resourceNames[loop];
           if (name != null)
           {
              m_resourceNumbers.put(name, Integer.valueOf(loop));
           }
        }
     }
docs: This method is used to update the locale specific data used by this class.
  
  @param locale target locale