<?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>111398</bug_id>
          
          <creation_ts>2013-03-04 19:59:32 -0800</creation_ts>
          <short_desc>[GTK] Enable translations for WebKit2</short_desc>
          <delta_ts>2013-03-07 08:31:12 -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>New Bugs</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gustavo Noronha (kov)">gustavo</reporter>
          <assigned_to name="Gustavo Noronha (kov)">gustavo</assigned_to>
          <cc>cgarcia</cc>
    
    <cc>mrobinson</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>847207</commentid>
    <comment_count>0</comment_count>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2013-03-04 19:59:32 -0800</bug_when>
    <thetext>[GTK] Enable translations for WebKit2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>847216</commentid>
    <comment_count>1</comment_count>
      <attachid>191386</attachid>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2013-03-04 20:15:25 -0800</bug_when>
    <thetext>Created attachment 191386
Enable translation for WebKit2GTK+

Something that we might want to consider: custom rule that installs .mo files a second time but with a different name for WebKit2GTK+, which would need adjusting our usage of GETTEXT_PACKAGE as well, but would allow having different versions of wk1gtk and wk2gtk installed. I am not sure if it&apos;s really useful to have this flexibility - the Debian package sure would build both from the same source, so there would always be the same version of both in the archive, in addition, sharing is a good thing. But... something that needs considering.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>847619</commentid>
    <comment_count>2</comment_count>
      <attachid>191484</attachid>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2013-03-05 06:34:38 -0800</bug_when>
    <thetext>Created attachment 191484
Patch for EWS</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>847674</commentid>
    <comment_count>3</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2013-03-05 07:38:25 -0800</bug_when>
    <thetext>Do you also need to update the paths listed in POTFILES.in? I think you can tell if it&apos;s working properly by running intltool-update -m from the directory containing POTFILES.in.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>847677</commentid>
    <comment_count>4</comment_count>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2013-03-05 07:48:15 -0800</bug_when>
    <thetext>Unsure why the patch is not getting applied.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>847684</commentid>
    <comment_count>5</comment_count>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2013-03-05 07:58:42 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; Do you also need to update the paths listed in POTFILES.in? I think you can tell if it&apos;s working properly by running intltool-update -m from the directory containing POTFILES.in.

Good catch! I haven&apos;t been able to properly test this locally because everything complains libc doesn&apos;t know the locale and it falls back to C, my system apps all work, though, I asked in #gnome-hackers but got no reply, let me know if any of you has a clue what may be causing this in my jhbuild env?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>847690</commentid>
    <comment_count>6</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2013-03-05 08:05:39 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; Good catch! I haven&apos;t been able to properly test this locally because everything complains libc doesn&apos;t know the locale and it falls back to C, my system apps all work, though, I asked in #gnome-hackers but got no reply, let me know if any of you has a clue what may be causing this in my jhbuild env?


Sorry. I&apos;m pretty clueless about translations except for the basics about getting intltool working.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>847703</commentid>
    <comment_count>7</comment_count>
      <attachid>191501</attachid>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2013-03-05 08:25:37 -0800</bug_when>
    <thetext>Created attachment 191501
Patch for EWS</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>847704</commentid>
    <comment_count>8</comment_count>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2013-03-05 08:27:00 -0800</bug_when>
    <thetext>(In reply to comment #6)
&gt; Sorry. I&apos;m pretty clueless about translations except for the basics about getting intltool working.

Guess I&apos;ll make dist and try it out on a debian package ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>847716</commentid>
    <comment_count>9</comment_count>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2013-03-05 08:47:43 -0800</bug_when>
    <thetext>I tested applying the patch locally with svn-apply and the error seems to be sr@latin.po and sr.po cause failed hunks, I&apos;ll see if I can figure out what that is.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>849592</commentid>
    <comment_count>10</comment_count>
      <attachid>191886</attachid>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2013-03-06 18:39:01 -0800</bug_when>
    <thetext>Created attachment 191886
Patch

This has been properly tested, it turns out what was causing my &quot;locale not supported&quot; issues was setting LC_ALL explicitly in the wk2 process launcher. I believe that should not be needed, let me know if there&apos;s some use case that was supposed to support that I should test. I don&apos;t think the EWS will be able to apply this one as well, I haven&apos;t figured out why the sr*.po files cause trouble, I think we&apos;ll have to land this one without the help of the EWS and CQ... let me know if it looks OK to you</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>849620</commentid>
    <comment_count>11</comment_count>
      <attachid>191886</attachid>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2013-03-06 19:13:43 -0800</bug_when>
    <thetext>Comment on attachment 191886
Patch

Looks good, apart from the fact that the paths in the po files are incorrect. Maybe there&apos;s a way to automatically fix those. :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>850116</commentid>
    <comment_count>12</comment_count>
      <attachid>191886</attachid>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2013-03-07 08:31:02 -0800</bug_when>
    <thetext>Comment on attachment 191886
Patch

http://trac.webkit.org/changeset/145081</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>191386</attachid>
            <date>2013-03-04 20:15:25 -0800</date>
            <delta_ts>2013-03-05 06:34:38 -0800</delta_ts>
            <desc>Enable translation for WebKit2GTK+</desc>
            <filename>0001-Patch.patch</filename>
            <type>text/plain</type>
            <size>0</size>
            <attacher name="Gustavo Noronha (kov)">gustavo</attacher>
            
              <data encoding="base64"></data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>191484</attachid>
            <date>2013-03-05 06:34:38 -0800</date>
            <delta_ts>2013-03-05 08:25:37 -0800</delta_ts>
            <desc>Patch for EWS</desc>
            <filename>0001-Patch.patch</filename>
            <type>text/plain</type>
            <size>0</size>
            <attacher name="Gustavo Noronha (kov)">gustavo</attacher>
            
              <data encoding="base64"></data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>191501</attachid>
            <date>2013-03-05 08:25:37 -0800</date>
            <delta_ts>2013-03-06 18:39:01 -0800</delta_ts>
            <desc>Patch for EWS</desc>
            <filename>0001-Patch.patch</filename>
            <type>text/plain</type>
            <size>0</size>
            <attacher name="Gustavo Noronha (kov)">gustavo</attacher>
            
              <data encoding="base64"></data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>191886</attachid>
            <date>2013-03-06 18:39:01 -0800</date>
            <delta_ts>2013-03-07 08:31:02 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>0001-Patch.patch</filename>
            <type>text/plain</type>
            <size>0</size>
            <attacher name="Gustavo Noronha (kov)">gustavo</attacher>
            
              <data encoding="base64"></data>

          </attachment>
      

    </bug>

</bugzilla>