<?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>233483</bug_id>
          
          <creation_ts>2021-11-24 15:30:46 -0800</creation_ts>
          <short_desc>check-webkit-style: regenerate localized strings when LocalizedStrings source files change</short_desc>
          <delta_ts>2021-12-01 15:31:23 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=232642</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Kilzer (:ddkilzer)">ddkilzer</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>jbedard</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1817712</commentid>
    <comment_count>0</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2021-11-24 15:30:46 -0800</bug_when>
    <thetext>The webkit-patch script should regenerate localized strings when LocalizedStrings*.* source files change, and exit with an error if the Source/WebCore/en.lproj/Localizable.strings contains local changes (that didn&apos;t exist before).

It&apos;s too easy to make localized string changes and forget to run Tools/Scripts/update-webkit-localizable-strings.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1818109</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2021-11-28 17:59:45 -0800</bug_when>
    <thetext>should this be part of style checker? Webkit-patch changes would only help people who use webkit-patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1818216</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2021-11-29 08:02:48 -0800</bug_when>
    <thetext>webkit-patch invokes check-webkit-style (as will git-webkit), that&apos;s the right place to do this sort of thing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1819158</commentid>
    <comment_count>3</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2021-12-01 02:20:15 -0800</bug_when>
    <thetext>My thinking was that knowledge of the changed files in the patch being uploaded would be needed in order to make a decision about whether this check needs to be done, and webkit-patch would have that (not check-WebKit-style).

For example, if LocalizedStrings.cpp or LocalizedStringsCocoa.mm changed, then this should be checked, but otherwise it should not (to save time).

I guess the actual code to do the checking could be in check-webkit-style, and the logic about whether to run the checker could be in webkit-patch, though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1819216</commentid>
    <comment_count>4</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2021-12-01 06:45:27 -0800</bug_when>
    <thetext>(In reply to David Kilzer (:ddkilzer) from comment #3)
&gt; My thinking was that knowledge of the changed files in the patch being
&gt; uploaded would be needed in order to make a decision about whether this
&gt; check needs to be done, and webkit-patch would have that (not
&gt; check-WebKit-style).
&gt; 
&gt; For example, if LocalizedStrings.cpp or LocalizedStringsCocoa.mm changed,
&gt; then this should be checked, but otherwise it should not (to save time).
&gt; 
&gt; I guess the actual code to do the checking could be in check-webkit-style,
&gt; and the logic about whether to run the checker could be in webkit-patch,
&gt; though.

check-webkit-style actually owns the knowledge of the changed files, since it only operates on the blocks of code a user is changing</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1819442</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-12-01 15:31:23 -0800</bug_when>
    <thetext>&lt;rdar://problem/85942550&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>