Changeset 1649

Show
Ignore:
Timestamp:
02/24/08 00:10:22 (3 months ago)
Author:
neuro
Message:

Brings more translation
Adds some changes to the content editor
Brings localisation to Standard issue
Brings localisation to archives plugin
Fix typo version to 5.0.3

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/app/helpers/content_helper.rb

    r1510 r1649  
    7171 
    7272  def category_links(article) 
    73     "Posted in " + article.categories.map { |c| link_to h(c.name), category_url(c), :rel => 'tag'}.join(", ") 
     73    _("Posted in") + " " + article.categories.map { |c| link_to h(c.name), category_url(c), :rel => 'tag'}.join(", ") 
    7474  end 
    7575 
    7676  def tag_links(article) 
    77     "Tags " + article.tags.map { |tag| link_to tag.display_name, tag.permalink_url, :rel => "tag"}.sort.join(", ") 
     77    _("Tags") + " " + article.tags.map { |tag| link_to tag.display_name, tag.permalink_url, :rel => "tag"}.sort.join(", ") 
    7878  end 
    7979 
  • trunk/app/views/admin/categories/_categories.html.erb

    r1570 r1649  
    33    <th class="first"><%= _("Title") %></th> 
    44    <th><%= _("Posts") %></th> 
    5     <th><%= _("Published") %></th> 
     5    <th><%= _("Status") %></th> 
    66    <th><%= _("View") %></th> 
    77    <th><%= _("Edit") %></th> 
  • trunk/app/views/admin/content/_form.html.erb

    r1648 r1649  
    22<!--[form:articles]--> 
    33<fieldset class="set admin" style="display: block"> 
     4  <legend><%= _("Write post") %></legend> 
    45  <div <%='style="width: 48%; float: left;"' if this_blog.editor == 1 %>> 
    56     <ul> 
     
    1314          <%= t_textarea 'article', 'body', {:height => '300', :style => 'width : 100%'} %> 
    1415       </li> 
    15        <li> 
    16           <%= link_to_function _("Optional extended content") + " (+/-)",update_page { |page| page.visual_effect(:toggle_blind, "extended", :duration => 0.5) } %> 
     16       <li class="paginate l"> 
     17          <label for="article_extended"> 
     18          <%= link_to_function _("Optional Extended Content") + " (+/-)",update_page { |page| page.visual_effect(:toggle_blind, "extended", :duration => 0.2) } %> 
     19          </label> 
     20          <p id="extended" <%= "style='display: none;'" if @article.extended.blank? %>> 
     21            <%= t_textarea 'article', 'extended', :height => '450', :style => 'display: none;' %> 
     22          </p> 
    1723       </li> 
    18        <li id="extended"<%- if @article.extended.blank? -%> style="display:none;"<%- end -%>> 
    19           <label for="article_extended"><%= _("Optional Extended Content")%>:</label> 
    20           <%= t_textarea 'article', 'extended', {:height => '450', :style => 'width: 100%;'}  %> 
    21        </li> 
    22        <li> 
    23           <label for="categories" class="block"><%= _("Categories")%>:</label> 
    24           <select id="categories" class="large" name="categories[]" multiple="multiple" size="10"> 
     24       <li class="paginate l"> 
     25          <label for="categories" class="block"> 
     26            <%= link_to_function _("Categories") + " (+/-)",update_page { |page| page.visual_effect(:toggle_blind, "categories", :duration => 0.2) } %> 
     27          </label> 
     28          <select id="categories" class="large" name="categories[]" multiple="multiple" size="10" <%= "style='display:none;'" if @article.categories.blank? %>> 
    2529             <%= options_from_collection_for_select(@categories, "id", "name", @selected) %> 
    2630                  </select> 
    2731       </li> 
    28        <li> 
    29           <label for="article_keywords"><%= _("Tags")%>:</label> 
    30           <%= text_field 'article', 'keywords', :style => 'width: 100%;' %> 
    31        </li> 
     32       <li class="paginate l" id="tags"> 
     33          <label class="block" for="article_keywords"> 
     34          <%= link_to_function _("Tags") + " (+/-)",update_page { |page| page.visual_effect(:toggle_blind, "article_keywords", :duration => 0.2) } %> 
     35          </label> 
     36          <%= text_field 'article', 'keywords', :style => 'width: 90%;' + "display:none;" if @article.keywords.blank? %> 
     37      </li> 
     38      <li class="paginate l"> 
     39        <label class="block"> 
     40          <%= link_to_function _("Publishing options") + " (+/-)",update_page { |page| page.visual_effect(:toggle_blind, "publishing_options", :duration => 0.2) } %> 
     41        </label> 
     42        <div id="publishing_options" <%= "style='display: none;'" unless @article.published.blank? %> > 
     43          <p> 
     44           <label for="article_published_at" class="float"><%= _("Publish at")%>:</label> 
     45           <%= datetime_select 'article', 'published_at', :include_blank => true  %> 
     46         </p> 
     47         <p> 
     48          <label for="article_published" class="float"><%= _("Online")%>:</label> 
     49          <%= check_box 'article', 'published'  %> 
     50        </p> 
     51        </div> 
     52      </li> 
    3253     </ul> 
    3354     <p class="r"><%= save(_("Save") + " &raquo;") %></p> 
     
    6283     </li> 
    6384     <li> 
    64        <label for="article_published" class="float"><%= _("Online")%>:</label> 
    65        <%= check_box 'article', 'published'  %> 
    66      </li> 
    67      <li> 
    68         <label for="article_published_at" class="float"><%= _("Publish at")%>:</label> 
    69         <%= datetime_select 'article', 'published_at', :include_blank => true  %> 
    70      </li> 
    71      <li> 
    7285        <label for="article_text_filter" class="float"><%= _("Textfilter")%>: </label> 
    73         <%= select 'article', 'text_filter', text_filter_options %> 
     86        <%= hidden_field_tag 'text_filter', this_blog.text_filter %> 
    7487     </li> 
    7588  </ul> 
  • trunk/lang/fr_FR.rb

    r1648 r1649  
    1212  l.store "Things you can do", "Vous pouvez" 
    1313  l.store "with %s AER OS XK iconset iconset %s", "avec %s les icÃŽnes AER OS XK iconset %s" 
    14    
     14     
    1515  #accounts/login.rhtml 
    1616  l.store "Administration", "Administration" 
     
    162162  l.store "no comments", "aucun commentaire" 
    163163  l.store "Posts", "Billets" 
     164  l.store "Comments", "Commentaires" 
     165  l.store "Categories", "Catégories" 
     166   
    164167  #admin/content/_attachment.rhtml 
    165168  l.store "Remove", "Supprimer" 
     
    345348  l.store "seperate with spaces", "séparez-les par des espaces" 
    346349  l.store "Category", "Catégorie" 
    347    
     350 
    348351  #admin/resources/_metadata_edit.rhtml 
    349352  l.store "Remove iTunes Metadata", "Supprimer les méta données iTunes" 
     
    367370  #admin/resources/new.rhtml 
    368371  l.store "Upload a File to your Site", "Envoyer un fichier sur votre site" 
    369   l.store "Upload", "Envoyer
     372  l.store "Upload", "Ajouter un fichier joint
    370373  l.store "Upload a new Resource", "Ajouter une piÚce jointe" 
    371374  l.store "File", "Fichier" 
     
    550553  l.store "Error occurred while updating Content Type.", "Une erreur est survenue lors de la mise à jour du type du contenu." 
    551554  l.store "complete", "complet" 
     555   
     556  # Themes 
     557  l.store "Home", "Accueil" 
     558  l.store "About", "À propos" 
     559  l.store "Designed by %s ported to typo by %s ", "Design par %s porté sous Typo par %s" 
     560  l.store "Powered by %s", "Propulsé par %s" 
     561  l.store "Read full article", "Lien permanent" 
     562  l.store "Search", "Chercher" 
     563  l.store "Continue reading...", "Lire la suite..." 
     564  l.store "Posted by", "Publié par" 
     565  l.store "January", "Janvier" 
     566  l.store "February", "Février" 
     567  l.store "March", "Mars" 
     568  l.store "April", "Avril" 
     569  l.store "May", "Mai" 
     570  l.store "June", "Juin" 
     571  l.store "July", "Juillet" 
     572  l.store "August", "Août" 
     573  l.store "Septembre", "Septembre" 
     574  l.store "October", "Octobre" 
     575  l.store "November", "Novembre" 
     576  l.store "December", "Décembre" 
     577  l.store "This entry was posted on %s", "Ce billet a été posté le %s" 
     578  l.store "Posted in", "Publié sous" 
     579  l.store "and %s", "et %s" 
     580  l.store "Atom feed", "flux Atom" 
     581  l.store "You can follow any any response to this entry through the %s", "Vous pouvez suivre la discussion autour de cet article via le %s" 
     582  l.store "You can leave a %s", "Vous pouvez déposer un %s" 
     583  l.store "or a %s from your own site", "ou un %s depuis votre site" 
     584  l.store "later", "plus tard" 
     585  l.store "Leave a comment", "déposer un commentaire" 
     586  l.store "Name %s", "Votre nom %s" 
     587  l.store "required", "obligatoire" 
    552588end 
  • trunk/lib/typo_version.rb

    r1615 r1649  
    1 TYPO_VERSION = '5.0.2
     1TYPO_VERSION = '5.0.3
  • trunk/public/stylesheets/administration.css

    r1627 r1649  
    285285 
    286286.paginate { 
    287   background: url("../images/admin/bc-bg.gif") repeat-x top left; 
     287  background: url("../images/admin/bc-bg.gif") #e7e7e7 repeat-x top left; 
    288288  padding: 5px 20px; 
    289289  margin-bottom: 15px; 
     
    292292        border-right: #ddd 1px solid; 
    293293        text-align: center; 
     294 
    294295} 
    295296 
     
    942943        padding-bottom: 0; 
    943944} 
     945 
     946li.paginate { 
     947                margin-bottom: 15px; 
     948                border-left: #ddd 5px solid; 
     949} 
     950 
  • trunk/themes/standard_issue/layouts/default.html.erb

    r1576 r1649  
    1717            <ul> 
    1818                <li class="page_item <%= 'current_page_item' if (controller.controller_name == "articles" and controller.action_name == "index") %>"> 
    19                     <%= link_to "Home", this_blog.base_url %> 
     19                    <%= link_to _("Home"), this_blog.base_url %> 
    2020                </li> 
    2121                <li class="page_item <%= 'current_page_item' if (controller.action_name != 'index' and controller.action_name != 'view_page') %>"> 
    22                     <%= link_to "Articles", {:controller => "articles", :action => "archives"} if (controller.controller_name != "index" )%> 
     22                    <%= link_to _("Articles"), {:controller => "articles", :action => "archives"} if (controller.controller_name != "index" )%> 
    2323                </li> 
    2424                <li class="page_item <%= 'current_page_item' if (controller.controller_name == "articles" and controller.action_name == "view_page" and params[:name].to_s == 'about') %>"> 
    25                     <%= link_to "About", this_blog.base_url + "/pages/about" %> 
     25                    <%= link_to _("About"), this_blog.base_url + "/pages/about" %> 
    2626                </li> 
    2727            </ul> 
     
    4949        <div class="wrap"> 
    5050        <p id="legal"> 
    51                 Designed by <%= link_to 'NodeThirtyThree', 'http://www.nodethirtythree.com/' %> ported to Typo by 
    52                 <%= link_to "Frédéric de Villamil", 'http://fredericdevillamil.com' %><br /> 
    53                 Powered by <%= link_to 'typo', 'http://typosphere.org' %> 
     51                <%= _("Designed by %s ported to typo by %s ", link_to ('NodeThirtyThree', 'http://www.nodethirtythree.com/'),  
     52                link_to ("Frédéric de Villamil", 'http://fredericdevillamil.com')) %> <br /> 
     53                <%= _("Powered by %s", link_to ('typo', 'http://typosphere.org')) %> 
    5454            </p> 
    5555        </div> 
  • trunk/themes/standard_issue/views/articles/_article.html.erb

    r1640 r1649  
    77      <div class="extended"> 
    88        <% if controller.action_name == 'index' -%> 
    9           <p><%= link_to_permalink article,"Continue reading..." %></p> 
     9          <p><%= link_to_permalink article,_("Continue reading...") %></p> 
    1010        <% else -%> 
    1111          <%= article.html(:extended) %> 
     
    1616        <div class="meta"> 
    1717                <% if controller.controller_name == "articles" and controller.action_name == 'show' %> 
    18                 <p><small>This entry was posted on <abbr class="published" title="<%= article.published_at.xmlschema %>"><%= js_distance_of_time_in_words_to_now article.published_at %></abbr> <%= content_tag(:span, "and " + category_links(@article), :class => 'categories') unless @article.categories.empty? %>. You can follow any any response to this entry through the <a href="<%= @auto_discovery_url_atom %>">Atom feed</a>. <%= "You can leave a " + link_to_permalink(article, 'comments', 'comments') << ',' if article.allow_comments? %> <%= "Or a " + link_to_permalink(article, 'trackback', 'trackbacks')  << ' from your own site' if article.allow_pings? %>.</small><br /> 
     18                <p><small> 
     19                  <%= _("This entry was posted on %s", content_tag(:abbr, js_distance_of_time_in_words_to_now (article.published_at), {:class => 'published', :title => article.published_at.xmlschema})) %> 
     20                    <%= _("and %s", category_links(@article)) unless @article.categories.empty? %>.  
     21                    <%= _("You can follow any any response to this entry through the %s", link_to(_("Atom feed"), @auto_discovery_url_atom)) %>.  
     22                    <%= _("You can leave a %s", link_to_permalink(article, _('comment'), 'comments')) if article.allow_comments? %>  
     23                    <%= _("or a %s from your own site", link_to_permalink(article, _('trackback'), 'trackbacks')) if article.allow_pings? %>.</small><br /> 
    1924                        <small><%= tag_links(@article) unless @article.tags.empty? %></small></p> 
    2025                <% else %> 
    2126        <p class="author"> 
    22         Posted by <cite><%= author_link(article) %></cite> 
     27        <%= _("Posted by") %> <cite><%= author_link(article) %></cite> 
    2328        <abbr class="published" title="<%= article.published_at.xmlschema %>"><%= js_distance_of_time_in_words_to_now article.published_at %></abbr> 
    2429        </p> 
  • trunk/themes/standard_issue/views/articles/_comment.html.erb

    r1566 r1649  
    33    <%= content_tag(:div, gravatar_tag(comment.email)) if this_blog.use_gravatar and comment.email %> 
    44    <cite><%= (comment.url.blank?) ? h(comment.author) : link_to(h(comment.author), comment.url) %></cite> 
    5     <abbr title="<%= comment.created_at.xmlschema %>"><%= distance_of_time_in_words comment.article.published_at, comment.created_at %> later:</abbr> 
     5    <abbr title="<%= comment.created_at.xmlschema %>"><%= distance_of_time_in_words comment.article.published_at, comment.created_at %> <%= _("later")%>:</abbr> 
    66  </div> 
    77    <%= comment.html %> 
  • trunk/themes/standard_issue/views/articles/_comment_form.html.erb

    r1566 r1649  
    1111 
    1212<div id="respond" class="post"> 
    13         <h2 class="title">Leave a comment</h2> 
     13        <h2 class="title"><%= _("Leave a comment")%></h2> 
    1414 
    1515  <p> 
    1616                <%= text_field "comment", "author" %>  
    17                 <label for="comment_author">Name <small>(required)</small></label> 
     17                <label for="comment_author"><%= _("Name %s", content_tag(:small, '('+_('required')+')' ))%></label> 
    1818  </p> 
    1919 
  • trunk/themes/standard_issue/views/shared/_search.html.erb

    r1580 r1649  
    22    <% form_tag({ :controller => 'articles', :action => 'search' }, 
    33                { :method => 'get', :id => 'sform' }) do -%> 
    4                         <h3>Search</h3> 
     4                        <h3><%= _("Search")%></h3> 
    55      <p><input type="text" id="q" name="q" value="" /></p> 
    66    <% end -%> 
  • trunk/vendor/plugins/archives_sidebar/lib/archives_sidebar.rb

    r1577 r1649  
    3131    @archives = article_counts.map do |entry| 
    3232      { 
    33         :name => "#{Date::MONTHNAMES[entry.month.to_i]} #{entry.year}", 
     33        :name => _(Date::MONTHNAMES[entry.month.to_i]) + " #{entry.year}", 
    3434        :month => entry.month.to_i, 
    3535        :year => entry.year.to_i,