<html>
<head>
<style><!--
  body {background-color:#ffffff;}
  .file {border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;}
  .pathname {font-family:monospace; float:right;}
  .fileheader {margin-bottom:.5em;}
  .diff {margin:0;}
  .tasklist {padding:4px;border:1px dashed #000000;margin-top:1em;}
  .tasklist ul {margin-top:0;margin-bottom:0;}
  tr.alt {background-color:#eeeeee}
  #added {background-color:#ddffdd;}
  #addedchars {background-color:#99ff99;font-weight:bolder;}
  tr.alt #added {background-color:#ccf7cc;}
  #removed {background-color:#ffdddd;}
  #removedchars {background-color:#ff9999;font-weight:bolder;}
  tr.alt #removed {background-color:#f7cccc;}
  #info {color:#888888;}
  #context {background-color:#eeeeee;}
  td {padding-left:.3em;padding-right:.3em;}
  tr.head {border-bottom-width:1px;border-bottom-style:solid;}
  tr.head td {padding:0;padding-top:.2em;}
  .task {background-color:#ffff00;}
  .comment {padding:4px;border:1px dashed #000000;background-color:#ffffdd}
  .error {color:red;}
  hr {border-width:0px;height:2px;background:black;}
--></style>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head"><td colspan="4">Commit in <b><tt>trunk/as2api/output/html</tt></b><span id="info"> on MAIN</span></td></tr>
<tr><td><tt><a href="#file1">core_pages.rb</a></tt></td><td></td><td align="right" id="removed">-1</td><td nowrap="nowrap" align="center">302 -&gt; 303</td></tr>
<tr class="alt"><td><tt><a href="#file2">default_frameset.rb</a></tt></td><td></td><td align="right" id="removed">-1</td><td nowrap="nowrap" align="center">302 -&gt; 303</td></tr>
<tr><td><tt><a href="#file3">driver.rb</a></tt></td><td></td><td align="right" id="removed">-2</td><td nowrap="nowrap" align="center">302 -&gt; 303</td></tr>
<tr class="alt"><td><tt><a href="#file4">html_framework.rb</a></tt></td><td align="right" id="added">+25</td><td align="right" id="removed">-11</td><td nowrap="nowrap" align="center">302 -&gt; 303</td></tr>
<tr><td><tt><a href="#file5">index.rb</a></tt></td><td align="right" id="added">+1</td><td align="right" id="removed">-2</td><td nowrap="nowrap" align="center">302 -&gt; 303</td></tr>
<tr><td></td><td align="right" id="added">+26</td><td align="right" id="removed">-17</td><td></td></tr>
</table>
<small id="info">5 modified files</small><br />
<pre class="comment">
Simplify GetText usage a little, and let GetText know about the output encoding
so that it can try to transcode it's message data as required.
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname">trunk/as2api/output/html</span><br />
<div class="fileheader"><big><b>core_pages.rb</b></big> <small id="info">302 -&gt; 303</small></div>
<pre class="diff"><small id="info">--- trunk/as2api/output/html/core_pages.rb        2006-03-12 22:28:36 UTC (rev 302)
+++ trunk/as2api/output/html/core_pages.rb        2006-03-16 00:20:41 UTC (rev 303)
@@ -11,7 +11,6 @@
</small></pre><pre class="diff" id="context"> require 'output/utils'
 require 'rexml/document'
 
</pre><pre class="diff" id="removed">-bindtextdomain("as2api")
</pre><pre class="diff" id="context"> 
 class OverviewNavLinkBuilder &lt; NavLinkBuilder
   def href_on(page); page.base_path("overview-summary.html"); end
</pre></div>
<hr /><a name="file2" /><div class="file">
<span class="pathname">trunk/as2api/output/html</span><br />
<div class="fileheader"><big><b>default_frameset.rb</b></big> <small id="info">302 -&gt; 303</small></div>
<pre class="diff"><small id="info">--- trunk/as2api/output/html/default_frameset.rb        2006-03-12 22:28:36 UTC (rev 302)
+++ trunk/as2api/output/html/default_frameset.rb        2006-03-16 00:20:41 UTC (rev 303)
@@ -9,7 +9,6 @@
</small></pre><pre class="diff" id="context"> 
 require 'output/html/html_framework'
 
</pre><pre class="diff" id="removed">-bindtextdomain("as2api")
</pre><pre class="diff" id="context"> 
 class PackageFramePage &lt; Page
 
</pre></div>
<hr /><a name="file3" /><div class="file">
<span class="pathname">trunk/as2api/output/html</span><br />
<div class="fileheader"><big><b>driver.rb</b></big> <small id="info">302 -&gt; 303</small></div>
<pre class="diff"><small id="info">--- trunk/as2api/output/html/driver.rb        2006-03-12 22:28:36 UTC (rev 302)
+++ trunk/as2api/output/html/driver.rb        2006-03-16 00:20:41 UTC (rev 303)
@@ -16,8 +16,6 @@
</small></pre><pre class="diff" id="context"> require 'output/html/default_css'
 
 
</pre><pre class="diff" id="removed">-bindtextdomain("as2api")
-
</pre><pre class="diff" id="context"> def package_list(path_name, type_agregator)
   # REVISIT: Will a package list actually be useful for ActionScript, or can
   #          we always assume that any code that makes reference to a type
</pre></div>
<hr /><a name="file4" /><div class="file">
<span class="pathname">trunk/as2api/output/html</span><br />
<div class="fileheader"><big><b>html_framework.rb</b></big> <small id="info">302 -&gt; 303</small></div>
<pre class="diff"><small id="info">--- trunk/as2api/output/html/html_framework.rb        2006-03-12 22:28:36 UTC (rev 302)
+++ trunk/as2api/output/html/html_framework.rb        2006-03-16 00:20:41 UTC (rev 303)
@@ -15,9 +15,8 @@
</small></pre><pre class="diff" id="context"> require 'xhtmlwriter'
 require 'output/xml/xml_formatter'
 
</pre><pre class="diff" id="removed">-include GetText
</pre><pre class="diff" id="context"> 
</pre><pre class="diff" id="removed">-bindtextdomain("as2api")
</pre><pre class="diff" id="added">+<span id="addedchars">GetText.</span>bindtextdomain("as2api")
</pre><pre class="diff" id="context"> 
 PROJECT_PAGE = "http://www.badgers-in-foil.co.uk/projects/as2api/"
 
</pre><pre class="diff"><small id="info">@@ -32,14 +31,25 @@
</small></pre><pre class="diff" id="context">   end
 
   def build_for_page(page)
</pre><pre class="diff" id="removed">-    NavLink.new(href_on(page), <span id="removedchars">_</span>(@content), title_on(page), is_current?(page))
</pre><pre class="diff" id="added">+    NavLink.new(href_on(page), <span id="addedchars">GetText.gettext</span>(@content), title_on(page), is_current?(page))
</pre><pre class="diff" id="context">   end
</pre><pre class="diff" id="added">+
+  def _(msg)
+    GetText.gettext(msg)
+  end
</pre><pre class="diff" id="context"> end
 
 
 class Page
   include XHTMLWriter
 
</pre><pre class="diff" id="added">+  # forwards method call to GetText.  Defined here so that subclasses can use
+  # gettext-like _("foo") calls, but don't have to have every individual file
+  # call bindtextdomain
+  def _(msg)
+    GetText.gettext(msg)
+  end
+
</pre><pre class="diff" id="context">   def initialize(base_name, path_name=nil)
     @path_name = path_name
     @base_name = base_name
</pre><pre class="diff"><small id="info">@@ -76,17 +86,20 @@
</small></pre><pre class="diff" id="context">     str.gsub(/-/, "_")
   end
 
</pre><pre class="diff" id="removed">-  def with_message_locale(locale)
</pre><pre class="diff" id="added">+  def with_message_locale(locale<span id="addedchars">,&nbsp;charset</span>)
</pre><pre class="diff" id="context">     if locale
       old_locale = Locale.get
       GetText.locale = locale
</pre><pre class="diff" id="removed">-      begin
-        yield
-      ensure
-        GetText.locale = old_locale
-      end
-    else
</pre><pre class="diff" id="added">+    end
+    if charset
+      old_charset = Locale.charset
+      GetText.charset = charset
+    end
+    begin
</pre><pre class="diff" id="context">       yield
</pre><pre class="diff" id="added">+    ensure
+      GetText.locale = old_locale if locale
+      GetText.charset = old_charset if charset
</pre><pre class="diff" id="context">     end
   end
 
</pre><pre class="diff"><small id="info">@@ -120,7 +133,8 @@
</small></pre><pre class="diff" id="context">       attrs["lang"] = lang
       attrs["xml:lang"] = lang
     end
</pre><pre class="diff" id="removed">-    with_message_locale(lang_to_gettext_locale(lang)) do
</pre><pre class="diff" id="added">+    gettext_encoding = encoding || "ISO-8859-1"
+    with_message_locale(lang_to_gettext_locale(lang), gettext_encoding) do
</pre><pre class="diff" id="context">       html_html(attrs) do
         generate_head
         generate_content
</pre></div>
<hr /><a name="file5" /><div class="file">
<span class="pathname">trunk/as2api/output/html</span><br />
<div class="fileheader"><big><b>index.rb</b></big> <small id="info">302 -&gt; 303</small></div>
<pre class="diff"><small id="info">--- trunk/as2api/output/html/index.rb        2006-03-12 22:28:36 UTC (rev 302)
+++ trunk/as2api/output/html/index.rb        2006-03-16 00:20:41 UTC (rev 303)
@@ -12,9 +12,8 @@
</small></pre><pre class="diff" id="context"> require 'output/html/html_framework'
 
 
</pre><pre class="diff" id="removed">-bindtextdomain("as2api")
</pre><pre class="diff" id="added">+<span id="addedchars">GetText.</span>bindtextdomain("as2api")
</pre><pre class="diff" id="context"> 
</pre><pre class="diff" id="removed">-
</pre><pre class="diff" id="context"> class IndexTerm
   def &lt;=&gt;(other)
     cmp = term.downcase &lt;=&gt; other.term.downcase
</pre></div>
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" title="commit -&gt; email">CVSspam</a> 0.2.11</small></center>
</body></html>