Changeset 1649
- Timestamp:
- 02/24/08 00:10:22 (3 months ago)
- Files:
-
- trunk/app/helpers/content_helper.rb (modified) (1 diff)
- trunk/app/views/admin/categories/_categories.html.erb (modified) (1 diff)
- trunk/app/views/admin/content/_form.html.erb (modified) (3 diffs)
- trunk/lang/fr_FR.rb (modified) (5 diffs)
- trunk/lib/typo_version.rb (modified) (1 diff)
- trunk/public/stylesheets/administration.css (modified) (3 diffs)
- trunk/themes/standard_issue/layouts/default.html.erb (modified) (2 diffs)
- trunk/themes/standard_issue/views/articles/_article.html.erb (modified) (2 diffs)
- trunk/themes/standard_issue/views/articles/_comment.html.erb (modified) (1 diff)
- trunk/themes/standard_issue/views/articles/_comment_form.html.erb (modified) (1 diff)
- trunk/themes/standard_issue/views/shared/_search.html.erb (modified) (1 diff)
- trunk/vendor/plugins/archives_sidebar/lib/archives_sidebar.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/app/helpers/content_helper.rb
r1510 r1649 71 71 72 72 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(", ") 74 74 end 75 75 76 76 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(", ") 78 78 end 79 79 trunk/app/views/admin/categories/_categories.html.erb
r1570 r1649 3 3 <th class="first"><%= _("Title") %></th> 4 4 <th><%= _("Posts") %></th> 5 <th><%= _(" Published") %></th>5 <th><%= _("Status") %></th> 6 6 <th><%= _("View") %></th> 7 7 <th><%= _("Edit") %></th> trunk/app/views/admin/content/_form.html.erb
r1648 r1649 2 2 <!--[form:articles]--> 3 3 <fieldset class="set admin" style="display: block"> 4 <legend><%= _("Write post") %></legend> 4 5 <div <%='style="width: 48%; float: left;"' if this_blog.editor == 1 %>> 5 6 <ul> … … 13 14 <%= t_textarea 'article', 'body', {:height => '300', :style => 'width : 100%'} %> 14 15 </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> 17 23 </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? %>> 25 29 <%= options_from_collection_for_select(@categories, "id", "name", @selected) %> 26 30 </select> 27 31 </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> 32 53 </ul> 33 54 <p class="r"><%= save(_("Save") + " »") %></p> … … 62 83 </li> 63 84 <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>72 85 <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 %> 74 87 </li> 75 88 </ul> trunk/lang/fr_FR.rb
r1648 r1649 12 12 l.store "Things you can do", "Vous pouvez" 13 13 l.store "with %s AER OS XK iconset iconset %s", "avec %s les icÃŽnes AER OS XK iconset %s" 14 14 15 15 #accounts/login.rhtml 16 16 l.store "Administration", "Administration" … … 162 162 l.store "no comments", "aucun commentaire" 163 163 l.store "Posts", "Billets" 164 l.store "Comments", "Commentaires" 165 l.store "Categories", "Catégories" 166 164 167 #admin/content/_attachment.rhtml 165 168 l.store "Remove", "Supprimer" … … 345 348 l.store "seperate with spaces", "séparez-les par des espaces" 346 349 l.store "Category", "Catégorie" 347 350 348 351 #admin/resources/_metadata_edit.rhtml 349 352 l.store "Remove iTunes Metadata", "Supprimer les méta données iTunes" … … 367 370 #admin/resources/new.rhtml 368 371 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" 370 373 l.store "Upload a new Resource", "Ajouter une piÚce jointe" 371 374 l.store "File", "Fichier" … … 550 553 l.store "Error occurred while updating Content Type.", "Une erreur est survenue lors de la mise à jour du type du contenu." 551 554 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" 552 588 end trunk/lib/typo_version.rb
r1615 r1649 1 TYPO_VERSION = '5.0. 2'1 TYPO_VERSION = '5.0.3' trunk/public/stylesheets/administration.css
r1627 r1649 285 285 286 286 .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; 288 288 padding: 5px 20px; 289 289 margin-bottom: 15px; … … 292 292 border-right: #ddd 1px solid; 293 293 text-align: center; 294 294 295 } 295 296 … … 942 943 padding-bottom: 0; 943 944 } 945 946 li.paginate { 947 margin-bottom: 15px; 948 border-left: #ddd 5px solid; 949 } 950 trunk/themes/standard_issue/layouts/default.html.erb
r1576 r1649 17 17 <ul> 18 18 <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 %> 20 20 </li> 21 21 <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" )%> 23 23 </li> 24 24 <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" %> 26 26 </li> 27 27 </ul> … … 49 49 <div class="wrap"> 50 50 <p id="legal"> 51 Designed by <%= link_to 'NodeThirtyThree', 'http://www.nodethirtythree.com/' %> ported to Typo by52 <%= 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')) %> 54 54 </p> 55 55 </div> trunk/themes/standard_issue/views/articles/_article.html.erb
r1640 r1649 7 7 <div class="extended"> 8 8 <% if controller.action_name == 'index' -%> 9 <p><%= link_to_permalink article, "Continue reading..."%></p>9 <p><%= link_to_permalink article,_("Continue reading...") %></p> 10 10 <% else -%> 11 11 <%= article.html(:extended) %> … … 16 16 <div class="meta"> 17 17 <% 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 /> 19 24 <small><%= tag_links(@article) unless @article.tags.empty? %></small></p> 20 25 <% else %> 21 26 <p class="author"> 22 Posted by<cite><%= author_link(article) %></cite>27 <%= _("Posted by") %> <cite><%= author_link(article) %></cite> 23 28 <abbr class="published" title="<%= article.published_at.xmlschema %>"><%= js_distance_of_time_in_words_to_now article.published_at %></abbr> 24 29 </p> trunk/themes/standard_issue/views/articles/_comment.html.erb
r1566 r1649 3 3 <%= content_tag(:div, gravatar_tag(comment.email)) if this_blog.use_gravatar and comment.email %> 4 4 <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> 6 6 </div> 7 7 <%= comment.html %> trunk/themes/standard_issue/views/articles/_comment_form.html.erb
r1566 r1649 11 11 12 12 <div id="respond" class="post"> 13 <h2 class="title"> Leave a comment</h2>13 <h2 class="title"><%= _("Leave a comment")%></h2> 14 14 15 15 <p> 16 16 <%= 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> 18 18 </p> 19 19 trunk/themes/standard_issue/views/shared/_search.html.erb
r1580 r1649 2 2 <% form_tag({ :controller => 'articles', :action => 'search' }, 3 3 { :method => 'get', :id => 'sform' }) do -%> 4 <h3> Search</h3>4 <h3><%= _("Search")%></h3> 5 5 <p><input type="text" id="q" name="q" value="" /></p> 6 6 <% end -%> trunk/vendor/plugins/archives_sidebar/lib/archives_sidebar.rb
r1577 r1649 31 31 @archives = article_counts.map do |entry| 32 32 { 33 :name => "#{Date::MONTHNAMES[entry.month.to_i]}#{entry.year}",33 :name => _(Date::MONTHNAMES[entry.month.to_i]) + " #{entry.year}", 34 34 :month => entry.month.to_i, 35 35 :year => entry.year.to_i,
