<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>100329</bug_id>
          
          <creation_ts>2012-10-24 22:39:22 -0700</creation_ts>
          <short_desc>Rename Localizer to Locale</short_desc>
          <delta_ts>2012-10-29 01:53:24 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Platform</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>100627</dependson>
    
    <dependson>100634</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kent Tamura">tkent</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>keishi</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>750375</commentid>
    <comment_count>0</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2012-10-24 22:39:22 -0700</bug_when>
    <thetext>I&apos;d like to rename them to LocalizerFoo. However  Alexey objected the name &apos;Localizer&apos;.
https://bugs.webkit.org/show_bug.cgi?id=96355#c7

Alexey, do you have a proposal for the name?  LocaleData, LocalizedData?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>750378</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-10-24 22:43:34 -0700</bug_when>
    <thetext>Can you describe in several ways what this class is? One way to pick a good name is to start with such a description.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>750396</commentid>
    <comment_count>2</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2012-10-24 23:07:01 -0700</bug_when>
    <thetext>Ok.

What is Localizer class?
 - An object of Localizer class is associated to a specific locale
 - It converts number strings represented in the HTML5 format to localized number strings , and vice versa.
 - It formats date/time data represented in DateComponents class to localized strings, and parses localized date/time strings.
 - It provides localized date format patterns for date, datetime, month, and time input types
 - It provides various localized data to build UI. e.g. localized month names, localized AM/PM, localized decimal point, localized day-of-week names, the first day of week, text direction

It is a combination of NSLocale, NSNumberFormatter, NSDateFormatter, NSCalendar, and it&apos;s similar to QLocale of Qt.

We discussed the name before introducing Localizer, and other class name candidates were Locale, LocaleData, and LocaleInfo. We dropped Locale because locale.h will conflict with a C standard header.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>750939</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-10-25 09:51:01 -0700</bug_when>
    <thetext>&gt; We dropped Locale because locale.h will conflict with a C standard header.

This is certainly a good reason not to use this name for the header, but how about using it for the class? This happened before with String, so we had PlatformString.h, and now have WTFString.h. WebCore/platform/PlatformLocale.h doesn&apos;t look bad.

Alternatively, you could consider following Cocoa design, and actually having separate classes for each of these.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>753020</commentid>
    <comment_count>4</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2012-10-28 18:07:18 -0700</bug_when>
    <thetext>Alexey, thank you for the comment.
PlatformLocale.h and Locale class sound reasonable. I&apos;ll rename so.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>