<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CKAN: Ticket #1332: i18n IndexError exceptions</title>
    <link>http://localhost/ticket/1332</link>
    <description>&lt;p&gt;
We get this i18n error for the URL &lt;a class="ext-link" href="http://no.ckan.net/authorizationgroup"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://no.ckan.net/authorizationgroup&lt;/a&gt; (which runs 1.4.2 with Norwegian translation). I'm not sure why it occurs. Fixing it is low importance though, because this site doesn't use Authorization Group feature
&lt;/p&gt;
&lt;p&gt;
Usually caused by bots. The user does not appear to be logged in.
&lt;/p&gt;
&lt;pre class="wiki"&gt;WebApp Error: &amp;lt;type 'exceptions.IndexError'&amp;gt;: list index out of range
...
Module genshi.filters.i18n:177 in _generate
&amp;lt;&amp;lt;                  msgbuf.append(*previous)
                       previous = None
                   for event in msgbuf.translate(gettext(msgbuf.format())):
                       yield event
                   if previous:
&amp;gt;&amp;gt;  for event in msgbuf.translate(gettext(msgbuf.format())):
Module genshi.filters.i18n:1029 in translate
&amp;lt;&amp;lt;                      )
               parts = parse_msg(string)
               parts_counter = {}
               for order, string in parts:
&amp;gt;&amp;gt;  parts = parse_msg(string)
Module genshi.filters.i18n:1143 in parse_msg
&amp;lt;&amp;lt;      if string:
               parts.append((stack[-1], string))
           return parts
&amp;gt;&amp;gt;  parts.append((stack[-1], string))
IndexError: list index out of range
&lt;/pre&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/1332</link>
    </image>
    <generator>Trac 0.12.3</generator>
    <item>
      
        <dc:creator>dread</dc:creator>

      <pubDate>Tue, 13 Sep 2011 09:34:14 GMT</pubDate>
      <title>description changed</title>
      <link>http://localhost/ticket/1332#comment:1</link>
      <guid isPermaLink="false">http://localhost/ticket/1332#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;description&lt;/strong&gt;
              modified (&lt;a href="/ticket/1332?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>dread</dc:creator>

      <pubDate>Wed, 14 Sep 2011 11:18:24 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost/ticket/1332#comment:2</link>
      <guid isPermaLink="false">http://localhost/ticket/1332#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;
Fixed in cset:860b357a2aec for release 1.4.3 and updated no.ckan.net.
&lt;/p&gt;
&lt;p&gt;
This problem was due to &lt;tt&gt;[1:authorization group]&lt;/tt&gt; being translated as &lt;tt&gt;[autoriseringsgruppe]&lt;/tt&gt; and I corrected it to &lt;tt&gt;[1:autoriseringsgruppe]&lt;/tt&gt;. This word has a bold tag, hence the brackets and the number is used to identify which bracketed word is which (when you have more than one).
&lt;/p&gt;
&lt;p&gt;
It is a shame that Transifex doesn't draw attention to this problem and Babel doesn't spot the error on compilation.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>