<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -67,6 +67,10 @@ var ClickToGlobalize = Class.create({
     new Ajax.Request(this.options.translationsUrl, {
       onSuccess: function(transport) {
         this.translations = $H(transport.responseText.evalJSON());
+        this.translations = this.translations.inject($H({}), function(result,pair){
+          result.set(pair.key, pair.value.stripTags());
+          return result;
+        });
       }.bind(this),
       method: 'get',
       // Set on false, cause we have to wait until the end of the request</diff>
      <filename>assets/javascripts/click_to_globalize.js</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1 @@
-{'hello_world': 'Hello World'}
\ No newline at end of file
+{&quot;hello_world&quot;: &quot;Hello World&quot;, &quot;hello_moon&quot;: &quot;&lt;span class=\&quot;translation_missing\&quot;&gt;en, hello_moon&lt;/span&gt;&quot;}</diff>
      <filename>test/javascript/fixtures/translations.json</filename>
    </modified>
    <modified>
      <diff>@@ -271,6 +271,7 @@ class NonCachingFileHandler &lt; WEBrick::HTTPServlet::FileHandler
       when /\.js$/   then 'text/javascript'
       when /\.html$/ then 'text/html'
       when /\.css$/  then 'text/css'
+      when /\.json$/ then 'application/json'
       else 'text/plain'
     end
   end</diff>
      <filename>test/javascript/lib/jstest.rb</filename>
    </modified>
    <modified>
      <diff>@@ -47,7 +47,7 @@ new Test.Unit.Runner({
     this.assertEqual(TestUtil.DefaultOptions, clickToGlobalize.options);
   },
   testGetTranslations: function() {
-    expected = $H({ hello_world: 'Hello World' });
+    expected = $H({ hello_world: &quot;Hello World&quot;, hello_moon: &quot;en, hello_moon&quot; });
     this.assertEqual(expected.size(), clickToGlobalize.translations.size());
     expected.each(function(pair){
       this.assertEqual(pair.value, clickToGlobalize.translations.get(pair.key));</diff>
      <filename>test/javascript/unit/click_to_globalize_test.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2ca7b5c42f4135169657a03ddebaa6daf76c2e51</id>
    </parent>
  </parents>
  <author>
    <name>Luca Guidi</name>
    <email>guidi.luca@gmail.com</email>
  </author>
  <url>http://github.com/jodosha/click-to-globalize/commit/082c82c82dcaa292d6d51aee0ca6637a48e73a44</url>
  <id>082c82c82dcaa292d6d51aee0ca6637a48e73a44</id>
  <committed-date>2009-04-09T03:18:09-07:00</committed-date>
  <authored-date>2009-04-09T03:18:09-07:00</authored-date>
  <message>Strip I18n markers when get translations with AJAX</message>
  <tree>06e1c68dec810ecc50cc9d464622f02787d40a0b</tree>
  <committer>
    <name>Luca Guidi</name>
    <email>guidi.luca@gmail.com</email>
  </committer>
</commit>
