<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>lang/TRANSLATION.markdown</filename>
    </added>
    <added>
      <filename>lang/ui/en.yml</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -5,6 +5,7 @@
 = 1.0.4
 * Changes to Japanese language translations
 * Use authlogic instead of restful_authentication (augthlogic gem now required, new migrations required) (thanks jnimety!)
+* Big overhaul of i18n by sdecleire, more international-friendly translation tokens. `en` is now the default locale (instead of `en-US`)
 
 
 = 1.0.3</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -45,7 +45,7 @@ class AdminController &lt; BaseController
   def deactivate_user
     user = User.find(params[:id])
     user.deactivate
-    flash[:notice] = &quot;The user was deactivated&quot;.l
+    flash[:notice] = :the_user_was_deactivated.l
     redirect_to :action =&gt; :users
   end  
   </diff>
      <filename>app/controllers/admin_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -40,7 +40,7 @@ class HomepageFeaturesController &lt; BaseController
     
     respond_to do |format|
       if @homepage_feature.save
-        flash[:notice] = :homepage_feature_was_successfully_created.l
+        flash[:notice] = :homepage_feature_created.l
         
         format.html { redirect_to homepage_feature_url(@homepage_feature) }
       else</diff>
      <filename>app/controllers/homepage_features_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -23,7 +23,7 @@ class PagesController &lt; BaseController
   def show
     @page = Page.live.find(params[:id])
     unless logged_in? || @page.page_public
-      flash[:error] = :this_page_is_not_public_youll_need_to_create_an_account_and_log_in_to_access_it.l
+      flash[:error] = :page_not_public_warning.l
       redirect_to :controller =&gt; 'sessions', :action =&gt; 'new'      
     end
   rescue</diff>
      <filename>app/controllers/pages_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -113,7 +113,7 @@ class PostsController &lt; BaseController
       if @post.save
         @post.create_poll(params[:poll], params[:choices]) if params[:poll]
         
-        flash[:notice] = @post.category ? :post_created_for_category.l_with_args(:category =&gt; @post.category.name.singularize) : &quot;Your post was successfully created.&quot;.l
+        flash[:notice] = @post.category ? :post_created_for_category.l_with_args(:category =&gt; @post.category.name.singularize) : :your_post_was_successfully_created.l
         format.html { 
           if @post.is_live?
             redirect_to @post.category ? category_path(@post.category) : user_post_path(@user, @post) </diff>
      <filename>app/controllers/posts_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -147,12 +147,10 @@ module BaseHelper
         case @controller.action_name
           when 'show'
             if params[:type]
-#              title = (params[:type].downcase.pluralize + '_tagged').l
               title = I18n.translate('all_' + params[:type].downcase.pluralize + '_tagged', :tag_name =&gt; @tags.map(&amp;:name).join(', '))
             else
               title = :posts_photos_and_bookmarks.l(:name =&gt; @tags.map(&amp;:name).join(', '))
             end
-#            title += ' ' + @tags.map(&amp;:name).join(', ')
             title += ' (' + :related_tags.l + ': ' + @related_tags.join(', ') + ')' if @related_tags
             title += ' | ' + app_base    
             @canonical_url = tag_url(URI.escape(@tags_raw, /[\/.?#]/)) if @tags_raw
@@ -163,22 +161,22 @@ module BaseHelper
         if @category and @category.name
           title = :posts_photos_and_bookmarks.l(:name =&gt; @category.name) + ' &amp;raquo; ' + app_base + tagline
         else
-          title = :showing_categories.l+' &amp;raquo; ' + app_base + tagline            
+          title = :showing_categories.l + ' &amp;raquo; ' + app_base + tagline            
         end
       when 'skills'
         if @skill and @skill.name
-          title = :find_an_expert_in.l+' ' + @skill.name + ' &amp;raquo; ' + app_base + tagline
+          title = :find_an_expert_in.l + ' ' + @skill.name + ' &amp;raquo; ' + app_base + tagline
         else
-          title = :find_experts.l+' &amp;raquo; ' + app_base + tagline            
+          title = :find_experts.l + ' &amp;raquo; ' + app_base + tagline            
         end
       when 'sessions'
-        title = :login.l+' &amp;raquo; ' + app_base + tagline            
+        title = :login.l + ' &amp;raquo; ' + app_base + tagline            
     end
 
     if @page_title
       title = @page_title + ' &amp;raquo; ' + app_base + tagline
     elsif title == app_base          
-		  title = :showing.l+' ' + @controller.controller_name.l + ' &amp;raquo; ' + app_base + tagline
+		  title = :showing.l + ' ' + @controller.controller_name.l + ' &amp;raquo; ' + app_base + tagline
     end
 
     title
@@ -285,7 +283,7 @@ module BaseHelper
   def pagination_info_for(paginator, options = {})
     options = {:prefix =&gt; :showing.l, :connector =&gt; '-', :suffix =&gt; &quot;&quot;}.merge(options)
     window = paginator.first_item.to_s + options[:connector] + paginator.last_item.to_s
-    options[:prefix] + &quot; &lt;strong&gt;#{window}&lt;/strong&gt; &quot; + 'of'.l + &quot; #{paginator.size} &quot; + options[:suffix]
+    options[:prefix] + &quot; &lt;strong&gt;#{window}&lt;/strong&gt; &quot; + :of.l + &quot; #{paginator.size} &quot; + options[:suffix]
   end
   
   
@@ -293,12 +291,6 @@ module BaseHelper
     session[:last_active] ||= Time.now.utc
   end
     
-  def submit_tag(value = :save_changes.l, options={} )
-    or_option = options.delete(:or)
-    return super + &quot;&lt;span class='button_or'&gt;or &quot; + or_option + &quot;&lt;/span&gt;&quot; if or_option
-    super
-  end
-
   def ajax_spinner_for(id, spinner=&quot;spinner.gif&quot;)
     &quot;&lt;img src='/plugin_assets/community_engine/images/#{spinner}' style='display:none; vertical-align:middle;' id='#{id.to_s}_spinner'&gt; &quot;
   end</diff>
      <filename>app/helpers/base_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,13 +1,13 @@
 .yui-gc
   .yui-u.first
     -box :class =&gt; &quot;fresh&quot; do 
-      %h3=&quot;What's fresh&quot;.l
+      %h3= :whats_fresh.l
       =render :partial =&gt; &quot;activities/activity&quot;, :collection =&gt; @activities
       .pagination=paginating_links @activities if @activities.page_count &gt; 1      
       
   .yui-u
     -box do 
-      %h3=&quot;Tags&quot;.l
+      %h3= :tags.l
       - tag_cloud @popular_tags, %w(nube1 nube2 nube3 nube4 nube5) do |name, css_class|
         = link_to name, tag_path(URI.escape(name, /[\/.?#]/)), :class =&gt; css_class
       %h6.all=link_to :all_tags.l, tags_path</diff>
      <filename>app/views/activities/index.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -31,7 +31,7 @@
           %td
             = h user.email
           %td
-            = user.active? ? 'active'.l : 'inactive'.l
+            = user.active? ? :active.l : inactive.l
           %td
             = link_to( :assume_id.l , assume_user_path(user) )
             = (&quot; | &quot; + link_to(:activate.l, :controller =&gt; &quot;/admin&quot;, :action =&gt; &quot;activate_user&quot;, :id =&gt; user.id)) unless user.active?</diff>
      <filename>app/views/admin/users.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -23,7 +23,7 @@
       = render :partial =&gt; &quot;users/sidebar_user&quot;, :locals =&gt; {:user =&gt; user} 
       
   -box :class =&gt; &quot;alt&quot; do 
-    %h3=:popular_catgory.l(:name =&gt; @category.name)
+    %h3=:popular_category.l(:name =&gt; @category.name)
     %ul.list.page    
       - @popular_posts.each do |post|
         =render :partial =&gt; 'posts/sidebar_post', :locals =&gt; {:post =&gt; post}</diff>
      <filename>app/views/categories/show.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 -if comment.user
   .hentry{:id =&gt; &quot;comment_#{comment.id}&quot;}
     .vcard.author
-      %h5= link_to image_tag(comment.user.avatar_photo_url(:thumb), :height =&gt; '50', :width =&gt; '50', :alt =&gt; &quot;#{comment.user.login}&quot;), user_path(comment.user), :rel =&gt; 'bookmark', :class =&gt; 'photo', :title =&gt; :users_profil.l(:user =&gt; comment.user.login)
+      %h5= link_to image_tag(comment.user.avatar_photo_url(:thumb), :height =&gt; '50', :width =&gt; '50', :alt =&gt; &quot;#{comment.user.login}&quot;), user_path(comment.user), :rel =&gt; 'bookmark', :class =&gt; 'photo', :title =&gt; :users_profile.l(:user =&gt; comment.user.login)
       %ul
         %li.fn
           = link_to comment.user.login, user_path(comment.user), :class =&gt; 'url'
@@ -10,7 +10,7 @@
             %abbr.published{&quot;title&quot;=&gt;&quot;#{comment.created_at}&quot;}
               = I18n.l(comment.created_at, :format =&gt; :short_literal_date)
         -if ( comment.can_be_deleted_by(current_user) )
-          %li.delete=link_to_remote(&quot;Delete&quot;.l, {:url =&gt; comment_path(comment.commentable_type, comment.commentable_id, comment), :method =&gt; :delete, 500 =&gt; 'alert(\'Sorry, there was a server error\'); return false',  :success =&gt; visual_effect(:fade, &quot;comment_#{comment.id}&quot;), :confirm =&gt; :are_you_sure_you_want_to_permanently_delete_this_comment.l} )
+          %li.delete=link_to_remote(:delete.l, {:url =&gt; comment_path(comment.commentable_type, comment.commentable_id, comment), :method =&gt; :delete, 500 =&gt; 'alert(\'Sorry, there was a server error\'); return false',  :success =&gt; visual_effect(:fade, &quot;comment_#{comment.id}&quot;), :confirm =&gt; :are_you_sure_you_want_to_permanently_delete_this_comment.l} )
     .entry-content= comment.comment
 
 -else</diff>
      <filename>app/views/comments/_comment.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -15,18 +15,18 @@
   .errors
   - form_remote_for(:comment, :loading =&gt; &quot;$$('div#comments div.errors')[0].innerHTML = ''; $('comment_spinner').show();&quot;, :before =&gt; &quot;tinyMCE.activeEditor.save();&quot;, :url =&gt; comments_url(commentable.class.to_s.underscore, commentable.id ), :html =&gt; {:id =&gt; 'new_comment_form', :class =&gt; &quot;MainForm&quot;}) do |f|
     %label
-      %em=&quot;(2000 character limit)&quot;.l :comment_character_limit
+      %em=:comment_character_limit.l
     = text_area :comment, :comment, {:size =&gt; &quot;86x5&quot;, :class =&gt; &quot;rich_text_editor&quot;}
     
     - if !logged_in? &amp;&amp; AppConfig.recaptcha_pub_key &amp;&amp; AppConfig.recaptcha_priv_key 
       .right{:style =&gt; 'margin-top:2em;'}= recaptcha_tags :ajax =&gt; true
       %label{&quot;for&quot;=&gt;&quot;comment[author_name&quot;}
-        =&quot;Name:&quot;.l
-        %em=&quot;(#{'Optional'.l})&quot;
+        =:name.l
+        %em=&quot;(#{:optional.l})&quot;
       = f.text_field :author_name, :size =&gt; 35
       %label{&quot;for&quot;=&gt;&quot;comment[author_email&quot;}
-        =&quot;#{'E-mail'.l}:&quot;
-        %em=&quot;(#{&quot;Required; won't be shown on site&quot;.l})&quot;
+        =&quot;#{:email.l}:&quot;
+        %em=&quot;(#{:comment_author_email_required.l})&quot;
       = f.text_field :author_email, :size =&gt; 35        
       %br
       %label 
@@ -34,15 +34,15 @@
         =:notify_me_of_follow_ups_via_email.l
       
       %label{&quot;for&quot;=&gt;&quot;comment[author_url&quot;}
-        =&quot;Web site (include http://):&quot;.l
-        %em=&quot;(#{'Optional'.l})&quot;
+        =:comment_web_site_label.l
+        %em=&quot;(#{:optional.l})&quot;
       = f.text_field :author_url, :size =&gt; 35
 
     
     %p
-      = submit_tag &quot;Add Comment&quot;.l
+      = submit_tag :add_comment.l
       = image_tag 'spinner.gif', :plugin =&gt; &quot;community_engine&quot;, :style =&gt; 'display:none;', :id =&gt; 'comment_spinner'
 - else
-  = link_to &quot;Log in to leave a comment&quot;.l, new_comment_path(commentable.class, commentable.id)
+  = link_to :log_in_to_leave_a_comment.l, new_comment_path(commentable.class, commentable.id)
   = :or.l
-  = link_to &quot;Create an account&quot;.l, signup_path
+  = link_to :create_an_account.l, signup_path</diff>
      <filename>app/views/comments/_comment_form.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -14,6 +14,6 @@
 
     .pagination=paginating_links @comments if @comments.page_count &gt; 1
 
-    %h3=&quot;Add Your Comment!&quot;.l
+    %h3=:add_your_comment.l
     %p= render :partial =&gt; 'comments/comment_form', :locals =&gt; {:commentable =&gt; @commentable}  
       </diff>
      <filename>app/views/comments/index.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -13,11 +13,11 @@
   %p.subtitle
     = feed_icon_tag :recent_posts.l, all_sb_posts_path(:format =&gt; 'rss')
     = number_with_delimiter(Topic.count) 
-    = &quot;#{'topics'.l},&quot;
+    = &quot;#{:topics.l},&quot;
     = number_with_delimiter(SbPost.count)
-    = &quot;#{'posts'.l},&quot;
+    = &quot;#{:posts.l},&quot;
     = number_with_delimiter(User.count(:conditions =&gt; &quot;sb_posts_count&gt;0&quot;))
-    = 'voices'.l
+    = :voices.l
 
   %table{:border=&gt;&quot;0&quot;, :cellspacing=&gt;&quot;0&quot;, :cellpadding=&gt;&quot;0&quot;, :class=&gt;&quot;wide forums&quot;}
     %tr</diff>
      <filename>app/views/forums/index.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -11,9 +11,9 @@
 -box do 
   %p.subtitle
     = feed_icon_tag @forum.name, forum_sb_posts_path(@forum, :format =&gt; :rss)
-    = pluralize @forum.topics_count, 'topic'.l 
+    = pluralize @forum.topics_count, :topic.l 
     , 
-    = pluralize @forum.sb_posts_count, 'post'.l
+    = pluralize @forum.sb_posts_count, :post.l
 
   - unless @forum.description.blank?
     = @forum.description_html</diff>
      <filename>app/views/forums/show.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 post_time = post.created_at
 post_time = Time.parse(post_time.to_s).rfc822 if post_time.is_a?(DateTime) #DateTime format doesn't support conversion to rfc822
 xm.item do
-  xm.title &quot;#{h(post.respond_to?(:topic_title) ? post.topic_title : post.topic.title)}, #{h post.topic.sb_posts_count == 1 ? 'posted'.l : 'replied'.l } #{'by'.l} #{h post.user.display_name} (#{post.created_at.ctime})&quot;
+  xm.title &quot;#{h(post.respond_to?(:topic_title) ? post.topic_title : post.topic.title)}, #{h post.topic.sb_posts_count == 1 ? :posted.l : :replied.l } #{:by.l} #{h post.user.display_name} (#{post.created_at.ctime})&quot;
   xm.description post.body_html
   xm.pubDate post_time
   xm.guid [request.host_with_port, post.forum_id.to_s, post.topic_id.to_s, post.id.to_s].join(&quot;:&quot;), &quot;isPermaLink&quot; =&gt; &quot;false&quot;</diff>
      <filename>app/views/layouts/_post.xml.builder</filename>
    </modified>
    <modified>
      <diff>@@ -8,7 +8,7 @@
       = render :partial =&gt; &quot;/categories/tips&quot;, :locals =&gt; {:category =&gt; nil}
 
   -box :class =&gt; &quot;alt&quot; do 
-    %a.button.positive{:href =&gt; '#', :onclick =&gt; &quot;tinyMCE.execCommand('mceCurblyAdvImage');return false;&quot;}=&quot;Upload an image for your post&quot;.l
+    %a.button.positive{:href =&gt; '#', :onclick =&gt; &quot;tinyMCE.execCommand('mceCurblyAdvImage');return false;&quot;}=:upload_an_image_for_your_post.l
     
 #yui-main
   .yui-b</diff>
      <filename>app/views/posts/new.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -49,7 +49,7 @@
         
   - if @posts and @posts.next_page
     %p{ :style =&gt; &quot;float:right;&quot; }
-    = link_to 'Next page'.l, { :page =&gt; @posts.next_page }.merge(params.reject{|k,v| k==&quot;page&quot;})
+    = link_to :next_page.l, { :page =&gt; @posts.next_page }.merge(params.reject{|k,v| k==&quot;page&quot;})
 
 
   - if @posts.page_count &gt; 1</diff>
      <filename>app/views/sb_posts/index.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -14,7 +14,7 @@
 &lt;/p&gt;
 
 &lt;% if @posts.page_count &gt; 1 -%&gt;
-&lt;div class=&quot;pagination&quot;&gt;&lt;%= 'Pages:'.l %&gt; &lt;strong&gt;&lt;%= paginating_links @posts %&gt;&lt;/strong&gt;&lt;/div&gt;
+&lt;div class=&quot;pagination&quot;&gt;&lt;%= &quot;#{:pages.l}:&quot; %&gt; &lt;strong&gt;&lt;%= paginating_links @posts %&gt;&lt;/strong&gt;&lt;/div&gt;
 &lt;% end -%&gt;
 
 &lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; class=&quot;posts wide&quot;&gt;</diff>
      <filename>app/views/sb_posts/monitored.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -18,7 +18,7 @@
           =:choose_a_photo_to_upload.l
           %em          
             - if @user.vendor?
-              =:you_may_want_to_use_your_company_logo_or_a_photo_of_one_of_your_products.l
+              =:vendor_avatar_hint.l
             =:photos_should_be_x_pixels.l
         = file_field :avatar, :uploaded_data, :size =&gt; &quot;20&quot;
 </diff>
      <filename>app/views/users/welcome_photo.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -901,8 +901,10 @@ fr:
   photo_message: &quot;Votre photo de profil vous repr&#233;sente sur {{site}}. Vous pourrez la modifier plus tard.&quot;
   #en: photo_was_successfully_created: Photo was successfully created.
   photo_was_successfully_created: Votre photo a &#233;t&#233; ajout&#233;e avec succ&#232;s.
-  #en: photos: {{count}} Photos
-  photos:
+  #en: photos: Photos
+  photos: Photos
+  #en: plural_photos: {{count}} Photos
+  plural_photos:
     one: 1 Photo
     other: &quot;{{count}} Photos&quot;
   #en: photos_should_be_x_pixels: Photos should be 300x300 pixels.</diff>
      <filename>lang/ui/fr-FR.yml</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>lang/base.yml</filename>
    </removed>
    <removed>
      <filename>lang/readme.txt</filename>
    </removed>
    <removed>
      <filename>lang/ui/en-US.yml</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>bdbc2c449b90be404e04557baa2eee9c9b04430f</id>
    </parent>
  </parents>
  <author>
    <name>bborn</name>
    <email>bruno.bornsztein@gmail.com</email>
  </author>
  <url>http://github.com/bborn/communityengine/commit/240c3276b4743f216557e7602ecaf2d0417b25c9</url>
  <id>240c3276b4743f216557e7602ecaf2d0417b25c9</id>
  <committed-date>2009-10-23T18:10:11-07:00</committed-date>
  <authored-date>2009-10-23T18:10:11-07:00</authored-date>
  <message>cleaning up en.yml</message>
  <tree>9e9041bce5282faa3f338721113f0589777bfc56</tree>
  <committer>
    <name>bborn</name>
    <email>bruno.bornsztein@gmail.com</email>
  </committer>
</commit>
