<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CKAN: Ticket #1350: i18n of new javascript</title>
    <link>http://localhost/ticket/1350</link>
    <description>&lt;p&gt;
New js code running produced in the work following &lt;a class="closed ticket" href="http://localhost/ticket/1294" title="enhancement: [super] Package creation and editing UX improvements (closed: fixed)"&gt;#1294&lt;/a&gt; contains various string literals, and needs proper internationalisation.
&lt;/p&gt;
&lt;p&gt;
See files:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;application.js
&lt;/li&gt;&lt;li&gt;templates.js
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Furthermore, efforts can be made to tidy up strings as described in &lt;a class="closed ticket" href="http://localhost/ticket/1329" title="defect: i18n poor in some templates - missing i18n tags (closed: fixed)"&gt;#1329&lt;/a&gt;.
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>CKAN</title>
      <url>http://assets.okfn.org/p/ckan/img/ckan_logo_shortname.png</url>
      <link>http://localhost/ticket/1350</link>
    </image>
    <generator>Trac 0.12.3</generator>
    <item>
      
        <dc:creator>zephod</dc:creator>

      <pubDate>Wed, 21 Sep 2011 13:17:28 GMT</pubDate>
      <title>description changed</title>
      <link>http://localhost/ticket/1350#comment:1</link>
      <guid isPermaLink="false">http://localhost/ticket/1350#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;description&lt;/strong&gt;
              modified (&lt;a href="/ticket/1350?action=diff&amp;amp;version=1"&gt;diff&lt;/a&gt;)
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>zephod</dc:creator>

      <pubDate>Wed, 21 Sep 2011 16:58:08 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost/ticket/1350#comment:2</link>
      <guid isPermaLink="false">http://localhost/ticket/1350#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Was going to reimplement an old workaround described by Friedrich, where a language.js file is served through the home controller (with appropriate settings in routing.py) and so ${_('string literals')} will be translated. See:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://bitbucket.org/okfn/ckan/src/2832e49d6baa/ckan/controllers/home.py#cl-48"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://bitbucket.org/okfn/ckan/src/2832e49d6baa/ckan/controllers/home.py#cl-48&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="https://bitbucket.org/okfn/ckan/src/2832e49d6baa/ckan/templates/home/language.js"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://bitbucket.org/okfn/ckan/src/2832e49d6baa/ckan/templates/home/language.js&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
However the string-extraction mechanism seems geared towards Genshi templates and hacks are required to make it read a javascript file neatly (ie. without putting the *entire file* into a string for translation). A more elegant solution seems to be using an xi:include to pull in a genshi template which contains an html &amp;lt;script&amp;gt; tag.
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;cset:d5bf4c7ba293
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Issue is resolved; strings are now translated.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>zephod</dc:creator>

      <pubDate>Mon, 03 Oct 2011 13:54:16 GMT</pubDate>
      <title>milestone changed</title>
      <link>http://localhost/ticket/1350#comment:3</link>
      <guid isPermaLink="false">http://localhost/ticket/1350#comment:3</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;milestone&lt;/strong&gt;
                changed from &lt;em&gt;ckan-current-sprint&lt;/em&gt; to &lt;em&gt;ckan-sprint-2011-09-26&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>