Changeset 1648

Show
Ignore:
Timestamp:
02/23/08 16:48:35 (3 months ago)
Author:
neuro
Message:

Fixes the localization issue
Removes the simple / advanced admin

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/app/models/blog.rb

    r1614 r1648  
    5959  setting :canonical_server_url,       :string, ''  # Deprecated 
    6060  setting :lang,                       :string, 'en_US' 
    61   setting :display_advanced,           :integer, 0 
    6261 
    6362  # Spam 
     
    9493  setting :send_outbound_pings,        :boolean, true 
    9594  setting :email_from,                 :string, 'typo@example.com' 
    96   setting :editor,                     :integer, 1 
     95  setting :editor,                     :integer, 2 
    9796  setting :cache_option,               :string, 'caches_action_with_params' 
    9897 
  • trunk/app/views/admin/content/_articles.html.erb

    r1634 r1648  
    1515  <td class="first"> <%= link_to_permalink article, h(article.title) %></td> 
    1616  <td><%= article.categories.map { |c| link_to h(c.name), {:controller => 'admin/categories', :action => 'show', :id => c.id}}.join(", ") %></td> 
    17   <td><%= link_to _(pluralize(article.comments.size, 'comment')), :controller => '/admin/comments', :article_id => article.id, :action => 'list' %></td> 
     17  <td><%= link_to _(pluralize(article.comments.size, 'comments')), :controller => '/admin/comments', :article_id => article.id, :action => 'list' %></td> 
    1818  <td><%= article.published_at.strftime("%d/%m/%Y at %H:%M") %></td> 
    1919  <td><%= author_link(article)%></td> 
  • trunk/app/views/admin/content/_form.html.erb

    r1636 r1648  
    3939</fieldset> 
    4040 
    41 <% if this_blog.display_advanced == 1 %> 
    4241<fieldset class="set admin"> 
    4342  <legend><%= _("Upload")%></legend> 
     
    4645  </div> 
    4746</fieldset> 
    48 <% end %> 
    4947 
    5048<fieldset class="set admin"> 
    5149  <legend><%= _("Options")%></legend> 
    5250  <ul> 
    53         <% if this_blog.display_advanced == 1 %> 
    5451     <li> 
    5552       <label for="article_permalink" class="float"><%= _("Permalink")%>:</label> 
     
    6461        <%= check_box 'article', 'allow_pings'  %> 
    6562     </li> 
    66         <% else %> 
    67                 <%= hidden_field_tag 'article_allow_comments', 1 %> 
    68                 <%= hidden_field_tag 'article_allow_pings', 1 %> 
    69         <% end %> 
    7063     <li> 
    7164       <label for="article_published" class="float"><%= _("Online")%>:</label> 
     
    7669        <%= datetime_select 'article', 'published_at', :include_blank => true  %> 
    7770     </li> 
    78         <% if this_blog.display_advanced == 1 %> 
    7971     <li> 
    8072        <label for="article_text_filter" class="float"><%= _("Textfilter")%>: </label> 
    8173        <%= select 'article', 'text_filter', text_filter_options %> 
    8274     </li> 
    83         <% else %> 
    84                 <%= hidden_field_tag 'article_text_filter', this_blog.text_filter%> 
    85         <% end %> 
    8675  </ul> 
    8776</fieldset> 
  • trunk/app/views/admin/feedback/list.html.erb

    r1587 r1648  
    66  <%= task_showmod(count_unconfirmed, "Limit to unconfirmed", limit_to_unconfirmed) %> 
    77  <%= task_showmod(count_unconfirmed_spam, "Limit to unconfirmed spam", limit_to_unconfirmed_spam) %> 
    8   <%= tab _("Blacklist"), :controller=>"blacklist", :action=>"index" if (this_blog.display_advanced == 1) %> 
     8  <%= tab _("Blacklist"), :controller=>"blacklist", :action=>"index" %> 
    99<% end %> 
    1010 
  • trunk/app/views/admin/settings/index.html.erb

    r1611 r1648  
    2727                    </li> 
    2828                        <li> 
    29                                 <label class="float" for="base_url"><%= _("Blog URL")%>:</label> 
     29                                <label class="float" for="base_wurl"><%= _("Blog URL")%>:</label> 
    3030                                <input name="setting[base_url]" id="base_url" type="text" value="<%=h this_blog.base_url %>" size="<%= this_blog.base_url.length %> " /> 
    3131                        </li> 
     
    3535                                        <%= fetch_langs %> 
    3636                                </select> 
    37                         </li> 
    38       <li><%= _("This option let you choose between the simple admin interface or the complete one, displaying much more options and therefore more complicated to use. For advanced users only!") %></li> 
    39                         <li> 
    40                                 <label class="float" for="display_advanced">Choose interface:</label> 
    41                                 <input type="radio" name="setting[display_advanced]" value="0" id="display_advanced_0" <%= 'checked="checked"' if this_blog.display_advanced == 0 %>/> 
    42                                 <label for="display_advanced_0"><%= _("Use simple interface (default)")%></label> 
    43                                 <span class="float"> 
    44                                         <input type="radio" name="setting[display_advanced]" value="1" id="display_advanced_1" <%= 'checked="checked"' if this_blog.display_advanced == 1 %>/> 
    45                                         <label for="display_advanced_1"><%= _("Use complete admin")%></label> 
    46                                 </span> 
    4737                        </li> 
    4838                        <li><%= _("By default, Typo generates static HTML pages for your posts. However, if you plan to publish posts in the futur, you may want to use semi dynamic caching") %>.</li> 
  • trunk/lang/de_DE.rb

    r1587 r1648  
    66  l.store "Feedback", "Diskussion" 
    77  l.store "Design", "Design" 
    8   l.store "Users", ["Benutzer", "Benutzer"] 
     8  l.store "%d Users", ["Benutzer", "%d Benutzer"] 
    99  l.store "Settings", "Einstellungen" 
    1010  l.store "Things you can do", "Folgendes können Sie tun ..." 
     
    6464  #admin/cache/list.rhtml 
    6565  l.store "Cache", "Cache" 
    66   l.store "There are %d entries in the page cache", ["Eine Seite im Cache", "%d Seiten sind aktuell im Cache"] 
    6766   
    6867  #admin/categories/_categories.rhtml 
    6968  l.store "Category title", "Name der Kategorie" 
    70   l.store "Articles", ["Artikel", "Artikel"] 
     69  l.store "%d Articles", ["Artikel", "%d Artikel"] 
    7170   
    7271  #admin/categories/_form.rhtml 
     
    7877   
    7978  #admin/categorie/destroy.rhtml 
    80   l.store "Categories", ["Kategorie", "Kategorien"] 
     79  l.store "%d Categories", ["Kategorie", "%d Kategorien"] 
    8180  l.store "Show this category", "Kategorie anzeigen" 
    8281  l.store "Delete this category", "Kategorie löschen" 
     
    128127  l.store "Post title", "Titel des Artikels" 
    129128  l.store "Posted at", "Veröffentlicht am" 
    130   l.store "Comments", ["Kommentar", "Kommentare"] 
    131   l.store "Trackbacks", ["Trackback", "Trackbacks"] 
     129  l.store "%d Comments", ["Kommentar", "%d Kommentare"] 
     130  l.store "%d Trackbacks", ["Trackback", "%d Trackbacks"] 
    132131  l.store "Status", "Status" 
    133132  l.store "Offline", "Offline" 
     
    145144  l.store "Article Content", "Artikel Inhalt" 
    146145  l.store "Extended Content", "Erweiterter Inhalt" 
    147   l.store "Tags", ["Tag", "Tags"] 
     146  l.store "%d Tags", ["Tag", "%d Tags"] 
    148147  l.store "Save", "Speichern" 
    149148  l.store "Article Attachments", "Artikel AnhÀnge" 
  • trunk/lang/es_MX.rb

    r1643 r1648  
    88  l.store "Discuss", "Discusi&oacute;n" 
    99  l.store "Design", "Dise&ntilde;o" 
    10   l.store "Users", ["Usuario", "Usuarios"] 
     10  l.store "%d Users", ["Usuario", "%d Usuarios"] 
    1111  l.store "Settings", "Configuraci&oacute;n" 
    1212  l.store "Things you can do", "Cosas que puedes hacer" 
     
    6666  #admin/cache/list.rhtml 
    6767  l.store "Cache", "Cach&eacute;" 
    68   l.store "There are %d entries in the page cache", ["Hay %d p&aacute;gina en el cach&eacute;","Hay %d p&aacute;ginas en el cach&eacute; de p&aacute;ginas"] 
    6968   
    7069  #admin/categories/_categories.rhtml 
    7170  l.store "Category title", "T&iacute;tulo de la categor&iacute;a" 
    72   l.store "Articles", ["Art&iacute;culo", "Art&iacute;culos"] 
     71  l.store "%d Articles", ["Art&iacute;culo", "%d Art&iacute;culos"] 
    7372   
    7473  #admin/categories/_form.rhtml 
     
    8079   
    8180  #admin/categorie/destroy.rhtml 
    82   l.store "Categories", ["Categor&iacute;", "Categor&iacute;as"] 
     81  l.store "%d Categories", ["Categor&iacute;", "%d Categor&iacute;as"] 
    8382  l.store "Show this category", "Mostrar esta categor&iacute;a" 
    8483  l.store "Delete this category", "Eliminar esta categor&iacute;a" 
     
    130129  l.store "Post title", "T&iacute;tulo del art&iacute;culo" 
    131130  l.store "Posted at", "Publicado el" 
    132   l.store "Comments", ["Comentario", "Comentarios"] 
    133   l.store "Trackbacks", ["Trackback", "Trackbacks"] 
     131  l.store "%d Comments", ["Comentario", "%d Comentarios"] 
     132  l.store "%d Trackbacks", ["Trackback", "%d Trackbacks"] 
    134133  l.store "Status", "Estado" 
    135134  l.store "Offline", "Offline" 
     
    146145  l.store "Article Content", "Contenido del Art&iacute;culo" 
    147146  l.store "Extended Content", "Contenido Extendido" 
    148   l.store "Tags", ["Tag", "Tags"] 
     147  l.store "Tags", "Tags" 
    149148  l.store "Save", "Guardar" 
    150149  l.store "Article Attachments", "Archivos adjuntos" 
     
    270269  l.store "Empty Fragment Cache", "Limpiar el cach&eacute; por fragmentos" 
    271270  l.store "Rebuild cached HTML", "Reconstruir HTML cacheado" 
    272   l.store "There are %d entries in the cache", ["Hay %d p&aacute;gina en el cach&eacute;", "Hay %d p&aacute;ginas en el cach&eacute;"] 
    273271  l.store "days", "d&iacute;as" 
    274272   
  • trunk/lang/fr_FR.rb

    r1634 r1648  
    88  l.store "Themes", "ThÚmes" 
    99  l.store "Plugins", "Greffons" 
    10   l.store "Users", ["Utilisateur", "Utilisateurs"] 
     10  l.store "Users", "Utilisateurs" 
    1111  l.store "Settings", "Configuration" 
    1212  l.store "Things you can do", "Vous pouvez" 
     
    8383  #admin/cache/list.rhtml 
    8484  l.store "Cache", "Cache" 
    85   l.store "There are %d entries in the page cache", ["Une seule page en cache", "%d pages sont actuellement stockées en cache"] 
    8685   
    8786  #admin/categories/_categories.rhtml 
    8887  l.store "Category title", "Nom de la catégorie" 
    89   l.store "Articles", ["Billet", "Billets"] 
     88  l.store "%d Articles", ["Un Billet", "%d Billets"] 
    9089   
    9190  #admin/categories/_form.rhtml 
     
    9796   
    9897  #admin/categorie/destroy.rhtml 
    99   l.store "Categories", ["Catégorie", "Catégories"] 
     98  l.store "%d categories",  ["Une catégorie", "%d Catégories"] 
    10099  l.store "Show this category", "Voir cette catégorie" 
    101100  l.store "Delete this category", "Supprimer cette catégorie" 
     
    154153  l.store "Post title", "Titre du billet" 
    155154  l.store "Posted at", "Date de publication" 
    156   l.store "Comments", ["Commentaire", "Commentaires"] 
    157   l.store "Trackbacks", ["Rétrolien", "Rétroliens"] 
     155  l.store "%d Comments", ["Un commentaire", "%d Commentaires"] 
     156  l.store "%d Trackbacks", ["Un rétrolien", "%d Rétroliens"] 
    158157  l.store "View", "Voir" 
    159158  l.store "Status", "État" 
     
    174173  l.store "Article Content", "Contenu du billet" 
    175174  l.store "Extended Content", "Contenu étendu" 
    176   l.store "Tags", ["Mot clé", "Mots clé"] 
     175  l.store "Tags", "Mots clés" 
    177176  l.store "Save", "Sauver" 
    178177  l.store "Article Attachments", "PiÚces Jointes" 
     
    300299  l.store "Empty Fragment Cache", "Vider le cache" 
    301300  l.store "Rebuild cached HTML", "Reconstruire le HTML en cache" 
    302   l.store "There are %d entries in the cache", ["Une seule page en cache", "%d pages sont actuellement stockées en cache"] 
    303301  l.store "days", "jours" 
    304302   
  • trunk/lang/it_IT.rb

    r1627 r1648  
    77  l.store "Feedback", "Commenti" 
    88  l.store "Design", "Temi" 
    9   l.store "Users", ["Utente", "Utenti"] 
     9  l.store "%d Users", ["Utente", "%d Utenti"] 
    1010  l.store "Settings", "Configurazione" 
    1111  l.store "Things you can do", "Cose che puoi fare" 
     
    8080  #admin/cache/list.rhtml 
    8181  l.store "Cache", "Cache" 
    82   l.store "There are %d entries in the page cache", ["Una sola pagina nella cache", "Ci sono %d pagine nella cache"] 
    8382   
    8483  #admin/categories/_categories.rhtml 
    8584  l.store "Category title", "Nome della categoria" 
    86   l.store "Articles", ["Categoria", "Categorie"] 
     85  l.store "%d Articles", ["Categoria", "%d Categorie"] 
    8786   
    8887  #admin/categories/_form.rhtml 
     
    9493   
    9594  #admin/categorie/destroy.rhtml 
    96   l.store "Categories", ["Categoria", "Categorie"] 
     95  l.store "%d Categories", ["Categoria", "%d Categorie"] 
    9796  l.store "Show this category", "Mostra questa categoria" 
    9897  l.store "Delete this category", "Elimina questa categoria" 
     
    150149  l.store "Post title", "Titolo articolo" 
    151150  l.store "Posted at", "Data pubblicazione" 
    152   l.store "Comments", ["Commento", "Commenti"] 
    153   l.store "Trackbacks", ["Trackback", "Trackbacks"] 
     151  l.store "%d Comments", ["Commento", "%d Commenti"] 
     152  l.store "%d Trackbacks", ["Trackback", "%d Trackbacks"] 
    154153  l.store "View", "Vedi" 
    155154  l.store "Status", "Stato" 
     
    172171  l.store "Article Content", "Contenuto Articolo" 
    173172  l.store "Extended Content", "Contenuto esteso" 
    174   l.store "Tags", ["Tag", "Tags"] 
     173  l.store "%d Tags", ["Tag", "%d Tags"] 
    175174  l.store "Save", "Salva" 
    176175  l.store "Article Attachments", "Allegati articolo" 
     
    312311  l.store "Empty Fragment Cache", "Svuota la cache" 
    313312  l.store "Rebuild cached HTML", "Ricostruisci l'html in cache" 
    314   l.store "There are %d entries in the cache", ["Una sola pagina nella cache", "%d pagine sono attualmente nella cache"] 
    315313  l.store "days", "giorni" 
    316314   
  • trunk/lang/pl_PL.rb

    r1643 r1648  
    1111  l.store "Design", "WyglÄ 
    1212d" 
    13   l.store "Users", ["UÅŒytkownik", "UÅŒytkownicy"] 
     13  l.store "%d Users", ["UÅŒytkownik", "%d UÅŒytkownicy"] 
    1414  l.store "Settings", "Ustawienia" 
    1515  l.store "Things you can do", "Dostępne działania" 
     
    8888  #admin/cache/list.rhtml 
    8989  l.store "Cache", "Bufor" 
    90   l.store "There are %d entries in the page cache", ["Bufor jest pusty", "Bufor zawiera %d pozycje", "Bufor zawiera %d pozycji"] 
    9190   
    9291  #admin/categories/_categories.rhtml 
    9392  l.store "Category title", "Tytuł kategorii" 
    94   l.store "Articles", ["Artykuł", "Artykuły"] 
     93  l.store "%d Articles", ["Artykuł", "%d Artykuły"] 
    9594   
    9695  #admin/categories/_form.rhtml 
     
    102101   
    103102  #admin/categorie/destroy.rhtml 
    104   l.store "Categories", ["Kategoria", "Kategorie"] 
     103  l.store "%d Categories", ["Kategoria", "%d Kategorie"] 
    105104  l.store "Show this category", "PokaÅŒ tÄ 
    106105 kategorię" 
     
    167166  l.store "Post title", "Tytuł wpisu" 
    168167  l.store "Posted at", "Data publikacji" 
    169   l.store "Comments", ["Komentarz", "Komentarze"] 
    170   l.store "Trackbacks", ["Trackback", "Trackbacki"] 
     168  l.store "%d Comments", ["Komentarz", "%d Komentarze"] 
     169  l.store "%d Trackbacks", ["Trackback", "%d Trackbacki"] 
    171170  l.store "View", "Obejrzyj" 
    172171  l.store "Status", "Stan" 
     
    189188  l.store "Article Content", "Treść artykułu" 
    190189  l.store "Extended Content", "Treść rozszerzona" 
    191   l.store "Tags", ["Tag", "Tagi"] 
     190  l.store "%d Tags", ["Tag", "%d Tagi"] 
    192191  l.store "Save", "Zapisz" 
    193192  l.store "Article Attachments", "ZałĠ
     
    361360  l.store "Empty Fragment Cache", "Usuń bufor fragmentów" 
    362361  l.store "Rebuild cached HTML", "Przebuduj bufor HTML" 
    363   l.store "There are %d entries in the cache", ["Brak pozycji w buforze", "Bufor zawiera %d pozycje", "Bufor zawiera %d pozycji"] 
    364362  l.store "days", "dni" 
    365363   
  • trunk/lang/ro_RO.rb

    r1587 r1648  
    66  l.store "Discuss", "Discuții" 
    77  l.store "Design", "Design" 
    8   l.store "Users", ["Utilizator", "Utilizatori"] 
     8  l.store "%d Users", ["Utilizator", "%d Utilizatori"] 
    99  l.store "Settings", "Configurare" 
    1010  l.store "Things you can do", "Acțiuni" 
     
    6464  #admin/cache/list.rhtml 
    6565  l.store "Cache", "Cache" 
    66   l.store "There are %d entries in the page cache", ["În cache se află o singură pagină", "În cache se păstrează %d pagini"] 
    6766   
    6867  #admin/categories/_categories.rhtml 
    6968  l.store "Category title", "Numele categoriei" 
    70   l.store "Articles", ["Articol", "Articole"] 
     69  l.store "%d Articles", ["Articol", "%d Articole"] 
    7170   
    7271  #admin/categories/_form.rhtml 
     
    7877   
    7978  #admin/categorie/destroy.rhtml 
    80   l.store "Categories", ["Categorie", "Categorii"] 
     79  l.store "%d Categories", ["Categorie", "%d Categorii"] 
    8180  l.store "Show this category", "Afișează această categorie" 
    8281  l.store "Delete this category", "Șterge această categorie" 
     
    128127  l.store "Post title", "Titlul articolului" 
    129128  l.store "Posted at", "Data publicării" 
    130   l.store "Comments", ["Comentariu", "Comentarii"] 
    131   l.store "Trackbacks", ["Retrolegătură", "Retrolegături"] 
     129  l.store "%d Comments", ["Comentariu", "%d Comentarii"] 
     130  l.store "%d Trackbacks", ["Retrolegătură", "%d Retrolegături"] 
    132131  l.store "Status", "Status" 
    133132  l.store "Offline", "Offline" 
     
    144143  l.store "Article Content", "Conținutul articolului" 
    145144  l.store "Extended Content", "Conținutul extins" 
    146   l.store "Tags", ["Cuvînt cheie", "Cuvinte cheie"] 
     145  l.store "%d Tags", ["Cuvînt cheie", "%d Cuvinte cheie"] 
    147146  l.store "Save", "Salvează" 
    148147  l.store "Article Attachments", "Atașamentele articolului" 
     
    268267  l.store "Empty Fragment Cache", "Golește cache" 
    269268  l.store "Rebuild cached HTML", "Reconstruiește paginile din cache" 
    270   l.store "There are %d entries in the cache", ["O singură pagină se află în cache", "În cache se păstrează %d pagini"] 
    271269  l.store "days", "zile" 
    272270