Skip to content

Commit

Permalink
Move from lang to locales of admin cache index page
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick Francois committed Oct 7, 2013
1 parent 2d61dfd commit d4e8caf
Show file tree
Hide file tree
Showing 31 changed files with 62 additions and 59 deletions.
10 changes: 5 additions & 5 deletions app/views/admin/cache/index.html.erb
@@ -1,13 +1,13 @@
<%- content_for :page_heading do %>
<i class="icon-large icon-settings"></i><h2 class="page-title"><%= _("Cache") %></h2>
<i class="icon-large icon-settings"></i><h2 class="page-title"><%= t(".cache") %></h2>
<% end %>

<p><%= _("To save resources Publify caches content in static files. Cache is cleared each time something gets published. You may however want to clear the cache yourself.") %></p>
<p><%= t(".explaination") %></p>

<p><%= _("There are currently %d files in cache for a total amount of %d Kb", @cache_number.to_i, @cache_size.to_i / 1000) %>.</p>
<p><%= t(".stats", files_count: @cache_number.to_i, size: @cache_size.to_i / 1000) %></p>

<%= form_tag(:controller => 'cache', :action => 'index') do %>
<%= form_tag(controller: 'cache', action: 'index') do %>
<div class='form-actions'>
<%= save( _("Sweep cache")) %>
<%= submit_tag(t(".sweep_cache"), class: 'btn btn-primary') %>
</div>
<% end %>
7 changes: 4 additions & 3 deletions config/locales/da.yml
Expand Up @@ -24,9 +24,10 @@ da:
powered_by: "is proudly powered by"
cache:
index:
explanations: "To save on resources, Publify generates static files
along with your content. These files are deleted when a new article
is created. You can, at any time, delete these files yourself."
stats: "Der er %{files_count} objekter i cachen"
sweep_cache: "Sweep cache"
cache: "Cache"
explanations: "To save on resources, Publify generates static files along with your content. These files are deleted when a new article is created. You can, at any time, delete these files yourself."
accounts:
back_to: "&larr; Back to %{place}"
back_to_login: "Back to login"
Expand Down
3 changes: 3 additions & 0 deletions config/locales/de.yml
Expand Up @@ -24,6 +24,9 @@ de:
powered_by: "is proudly powered by"
cache:
index:
stats: "Es sind %{files_count} Einträge im Cache"
sweep_cache: "Sweep cache"
cache: "Cache"
explanations: "To save on resources, Publify generates static files
along with your content. These files are deleted when a new article
is created. You can, at any time, delete these files yourself."
Expand Down
7 changes: 4 additions & 3 deletions config/locales/en.yml
Expand Up @@ -24,9 +24,10 @@ en:
powered_by: "is proudly powered by"
cache:
index:
explanations: "To save on resources, Publify generates static files
along with your content. These files are deleted when a new article
is created. You can, at any time, delete these files yourself."
stats: "There are currently %{files_count} files in cache for a total amount of %{size} Kb"
sweep_cache: "Sweep cache"
cache: "Cache"
explanations: "To save on resources, Publify generates static files along with your content. These files are deleted when a new article is created. You can, at any time, delete these files yourself."
accounts:
back_to: "&larr; Back to %{place}"
back_to_login: "Back to login"
Expand Down
3 changes: 3 additions & 0 deletions config/locales/es-MX.yml
Expand Up @@ -24,6 +24,9 @@ es-MX:
powered_by: "is proudly powered by"
cache:
index:
stats: "There are currently %{files_count} files in cache for a total amount of %{size} Kb"
sweep_cache: "Sweep cache"
cache: "Cach&eacute;"
explanations: "To save on resources, Publify generates static files
along with your content. These files are deleted when a new article
is created. You can, at any time, delete these files yourself."
Expand Down
4 changes: 3 additions & 1 deletion config/locales/fr.yml
Expand Up @@ -24,8 +24,10 @@ fr:
powered_by: "tourne fièrement sous"
cache:
index:
stats: "Il y a actuellement %{files_count} fichiers en cache pour un total de %{size} kilo octets."
sweep_cache: "Vider le cache"
cache: "Cache"
explanations: "Afin d'économiser des ressources, Publify génère des fichiers statiques avec votre contenu. Ces fichiers sont supprimés lors d'une nouvelle publication. Vous pouvez cependant les effacer vous même."

accounts:
back_to: "&larr; Revenir à %{place}"
back_to_login: "S'identifier"
Expand Down
3 changes: 3 additions & 0 deletions config/locales/he-IL.yml
Expand Up @@ -24,6 +24,9 @@ he-IL:
powered_by: "is proudly powered by"
cache:
index:
stats: "There are currently %{files_count} files in cache for a total amount of %{size} Kb"
sweep_cache: "Sweep cache"
cache: "Cache"
explanations: "To save on resources, Publify generates static files
along with your content. These files are deleted when a new article
is created. You can, at any time, delete these files yourself."
Expand Down
3 changes: 3 additions & 0 deletions config/locales/it.yml
Expand Up @@ -24,6 +24,9 @@ it:
powered_by: "is proudly powered by"
cache:
index:
stats: "There are currently %{files_count} files in cache for a total amount of %{size} Kb"
sweep_cache: "Sweep cache"
cache: "Cache"
explanations: "To save on resources, Publify generates static files
along with your content. These files are deleted when a new article
is created. You can, at any time, delete these files yourself."
Expand Down
3 changes: 3 additions & 0 deletions config/locales/ja.yml
Expand Up @@ -24,6 +24,9 @@ ja:
powered_by: "is proudly powered by"
cache:
index:
stats: "ページキャッシュに%{files_count}個の記事があります"
sweep_cache: "キャッシュをクリア"
cache: "キャッシュ"
explanations: "To save on resources, Publify generates static files
along with your content. These files are deleted when a new article
is created. You can, at any time, delete these files yourself."
Expand Down
3 changes: 3 additions & 0 deletions config/locales/lt.yml
Expand Up @@ -24,6 +24,9 @@ lt:
powered_by: "is proudly powered by"
cache:
index:
stats: "Es sind %{files_count} Einträge im Cache"
sweep_cache: "Sweep cache"
cache: "Cache"
explanations: "To save on resources, Publify generates static files
along with your content. These files are deleted when a new article
is created. You can, at any time, delete these files yourself."
Expand Down
3 changes: 3 additions & 0 deletions config/locales/nb-NO.yml
Expand Up @@ -24,6 +24,9 @@ nb-NO:
powered_by: "bruker med stolthet"
cache:
index:
stats: "Det finnes for øyeblikket %{files_count} filer i cachen som utgjør totalt %{size} kB"
sweep_cache: "Sweep cache"
cache: "Cache"
explanations: "For å lagre resurser cacher Publify innholdet i statiske filer. Cachen slettes hver gang noe publiseres. Du kan også velge å slette cachen selv."
accounts:
back_to: "&larr; Tilbake til %{place}"
Expand Down
7 changes: 4 additions & 3 deletions config/locales/nl.yml
Expand Up @@ -24,9 +24,10 @@ nl:
powered_by: "wordt trots aangedreven door"
cache:
index:
explanations: "To save on resources, Publify generates static files
along with your content. These files are deleted when a new article
is created. You can, at any time, delete these files yourself."
stats: "There are currently %{files_count} files in cache for a total amount of %{size} Kb"
sweep_cache: "Sweep cache"
cache: "Cache"
explanations: "To save on resources, Publify generates static files along with your content. These files are deleted when a new article is created. You can, at any time, delete these files yourself."
accounts:
back_to: "&larr; Terug naar %{place}"
back_to_login: "Back to login"
Expand Down
3 changes: 3 additions & 0 deletions config/locales/pl.yml
Expand Up @@ -24,6 +24,9 @@ pl:
powered_by: "dumnie działa na"
cache:
index:
stats: "There are currently %{files_count} files in cache for a total amount of %{size} Kb"
sweep_cache: "Sweep cache"
cache: "Bufor"
explanations: "To save on resources, Publify generates static files
along with your content. These files are deleted when a new article
is created. You can, at any time, delete these files yourself."
Expand Down
7 changes: 4 additions & 3 deletions config/locales/pt-BR.yml
Expand Up @@ -24,9 +24,10 @@ pt-BR:
powered_by: "is proudly powered by"
cache:
index:
explanations: "Para economizar recursos, Publify gera arquivos estáticos
            juntamente com o seu conteúdo. Esses arquivos são apagados automaticamente quando um novo
artigo é criado. Você pode, a qualquer momento, excluir esses arquivos."
stats: "There are currently %{files_count} files in cache for a total amount of %{size} Kb"
sweep_cache: "Sweep cache"
cache: "Cach&eacute;"
explanations: "Para economizar recursos, Publify gera arquivos estáticos juntamente com o seu conteúdo. Esses arquivos são apagados automaticamente quando um novo artigo é criado. Você pode, a qualquer momento, excluir esses arquivos."
accounts:
back_to: "&larr; Voltar para %{place}"
back_to_login: "Voltar para o login"
Expand Down
3 changes: 3 additions & 0 deletions config/locales/ro.yml
Expand Up @@ -24,6 +24,9 @@ ro:
powered_by: "is proudly powered by"
cache:
index:
stats: "There are currently %{files_count} files in cache for a total amount of %{size} Kb"
sweep_cache: "Sweep cache"
cache: "Cache"
explanations: "To save on resources, Publify generates static files
along with your content. These files are deleted when a new article
is created. You can, at any time, delete these files yourself."
Expand Down
7 changes: 4 additions & 3 deletions config/locales/ru.yml
Expand Up @@ -24,9 +24,10 @@ ru:
powered_by: "С гордостью работает на"
cache:
index:
explanations: "To save on resources, Publify generates static files
along with your content. These files are deleted when a new article
is created. You can, at any time, delete these files yourself."
stats: "There are currently %{files_count} files in cache for a total amount of %{size} Kb"
sweep_cache: "Sweep cache"
cache: "Cache"
explanations: "To save on resources, Publify generates static files along with your content. These files are deleted when a new article is created. You can, at any time, delete these files yourself."
accounts:
back_to: "&larr; Назад %{place}"
back_to_login: "Назад к форме входа"
Expand Down
7 changes: 4 additions & 3 deletions config/locales/zh-CN.yml
Expand Up @@ -24,9 +24,10 @@ zh-CN:
powered_by: "is proudly powered by"
cache:
index:
explanations: "To save on resources, Publify generates static files
along with your content. These files are deleted when a new article
is created. You can, at any time, delete these files yourself."
stats: "有%{files_count}個項目在Cache中"
sweep_cache: "Sweep cache"
cache: "儲存"
explanations: "To save on resources, Publify generates static files along with your content. These files are deleted when a new article is created. You can, at any time, delete these files yourself."
accounts:
back_to: "&larr; 返回 %{place}"
back_to_login: "Back to login"
Expand Down
3 changes: 3 additions & 0 deletions config/locales/zh-TW.yml
Expand Up @@ -24,6 +24,9 @@ zh-TW:
powered_by: "is proudly powered by"
cache:
index:
stats: "有%{files_count}個項目在Cache中"
sweep_cache: "Sweep cache"
cache: "儲存"
explanations: "To save on resources, Publify generates static files
along with your content. These files are deleted when a new article
is created. You can, at any time, delete these files yourself."
Expand Down
2 changes: 0 additions & 2 deletions lang/da_DK.rb
Expand Up @@ -791,7 +791,6 @@
l.store "Blacklist Patterns", "Blacklist mønstre"
l.store "Blog settings", "Blog indstillinger"
l.store "Body", "Tekst"
l.store "Cache", "Cache"
l.store "Category title", "Kategorititel"
l.store "Choose password", "Kodeord"
l.store "Comments and Trackbacks for", "Kommentarer og trackbacks for"
Expand Down Expand Up @@ -917,7 +916,6 @@
l.store "Text Filters", "Tekst Filtre"
l.store "Textfilter", "Textfilter"
l.store "The below settings act as defaults when you choose to publish an enclosure with iTunes metadata", "The below settings act as defaults when you choose to publish an enclosure with iTunes metadata" #Need translate
l.store "There are %d entries in the cache", "Der er %d objekter i cachen"
l.store "Things you can do", "Du kan udføre følgende ..."
l.store "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!","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!" #Need translate
l.store "Toggle Extended Content", "Slå udvidet indhold til/fra"
Expand Down
2 changes: 0 additions & 2 deletions lang/de_DE.rb
Expand Up @@ -787,7 +787,6 @@
l.store "Blacklist Patterns", "Blacklist Muster"
l.store "Blog settings", "Blog Einstellungen"
l.store "Body", "Text"
l.store "Cache", "Cache"
l.store "Category title", "Name der Kategorie"
l.store "Choose password", "Passwort"
l.store "Comments and Trackbacks for", "Kommentare und Trackbacks für"
Expand Down Expand Up @@ -903,7 +902,6 @@
l.store "Text Filters", "Textfilter"
l.store "Textfilter", "Textfilter"
l.store "The below settings act as defaults when you choose to publish an enclosure with iTunes metadata", "Folgende Einstellungen wirken als Voreinstellungen, wenn Sie einen Anhang mit iTunes Metadaten veröffentlichen"
l.store "There are %d entries in the cache", "Es sind %d Einträge im Cache"
l.store "Things you can do", "Folgendes können Sie tun ..."
l.store "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!","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!" #Need translate
l.store "Toggle Extended Content", "Erweiterten Inhalt umschalten"
Expand Down
1 change: 0 additions & 1 deletion lang/es_MX.rb
Expand Up @@ -794,7 +794,6 @@
l.store "Blacklist Patterns", "Lista negra"
l.store "Blog settings", "Preferencias del Blog"
l.store "Body", "Comentario"
l.store "Cache", "Cach&eacute;"
l.store "Category title", "T&iacute;tulo de la categor&iacute;a"
l.store "Choose password", "Escoge una contrase&ntilde;a"
l.store "Comments and Trackbacks for", "Comentarios y Trackbacks para"
Expand Down
7 changes: 0 additions & 7 deletions lang/fr_FR.rb
Expand Up @@ -156,13 +156,6 @@
# app/models/post_type.rb
l.store "This article type already exists", ""


# app/views/admin/cache/index.html.erb
l.store "To save resources Publify caches content in static files. Cache is cleared each time something gets published. You may however want to clear the cache yourself.", "Afin d'économiser des ressources, Publify génère des fichiers statiques avec votre contenu. Ces fichiers sont supprimés lors d'une nouvelle publication. Vous pouvez cependant les effacer vous même."
l.store "There are currently %d files in cache for a total amount of %d Kb", "Il y a actuellement %d fichiers en cache pour un total de %d kilo octets."
l.store "Sweep cache", "Vider le cache"
l.store "Cache", "Cache"

# app/views/admin/content/_attachment.html.erb
l.store "Remove", "Supprimer"
l.store "Currently this article has the following resources", "Les fichiers suivants sont actuellement liés à ce billet"
Expand Down
1 change: 0 additions & 1 deletion lang/it_IT.rb
Expand Up @@ -798,7 +798,6 @@
l.store "Blog advanced settings", "Settaggi avanzati del blog"
l.store "Blog settings", "Configurazione blog"
l.store "Body", "Messaggio"
l.store "Cache", "Cache"
l.store "Cache was cleared", "Cache pulita"
l.store "Category", "Catégorie"
l.store "Category could not be created.", "La categoria non puo' essere creata"
Expand Down
3 changes: 0 additions & 3 deletions lang/ja_JP.rb
Expand Up @@ -785,7 +785,6 @@
l.store "Blacklist", "ブラックリスト"
l.store "Blacklist Patterns", "ブラックリストパターン"
l.store "Blog settings", "ブログ設定"
l.store "Cache", "キャッシュ"
l.store "Cache was cleared", "キャッシュはクリアされました"
l.store "Category", "カテゴリ"
l.store "Category could not be created.", "カテゴリは追加できませんでした"
Expand Down Expand Up @@ -922,13 +921,11 @@
l.store "Summary", "サマリー"
l.store "Sun", "日"
l.store "Sunday", "日曜日"
l.store "Sweep cache", "キャッシュをクリア"
l.store "System information", "システム情報"
l.store "Text Filter Details", "テキストフィルター詳細"
l.store "Text Filters", "テキストフィルター"
l.store "The below settings act as defaults when you choose to publish an enclosure with iTunes metadata", "以下の項目は、公開を選択した場合にデフォルトのiTunesのメタデータとして設定されます"
l.store "Themes", "テーマ"
l.store "There are %d entries in the page cache", "ページキャッシュに%d個の記事があります"
l.store "Thu", "木"
l.store "Thursday", "木曜日"
l.store "Tue", "火"
Expand Down
2 changes: 0 additions & 2 deletions lang/lt_LT.rb
Expand Up @@ -795,7 +795,6 @@
l.store "Blacklist Patterns", "Juodojo sąrašo šablonas"
l.store "Blog settings", "Dienoraščio nustatymai"
l.store "Body", "Tekstas"
l.store "Cache", "Cache"
l.store "Category title", "kategorijos pavadinimas"
l.store "Choose password", "Pasirinkite slaptažodį"
l.store "Comments and Trackbacks for", "Komentarai ir dienoraščių nuorodos"
Expand Down Expand Up @@ -911,7 +910,6 @@
l.store "Text Filters", "Textfilter"
l.store "Textfilter", "Teksto filtras"
l.store "The below settings act as defaults when you choose to publish an enclosure with iTunes metadata", "Folgende Einstellungen wirken als Voreinstellungen, wenn Sie einen Anhang mit iTunes Metadaten veröffentlichen"
l.store "There are %d entries in the cache", "Es sind %d Einträge im Cache"
l.store "Things you can do", "Jūs galite daryti ..."
l.store "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!","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!" #Need translate
l.store "Toggle Extended Content", "Sutraukti išplėsta turinį"
Expand Down
8 changes: 0 additions & 8 deletions lang/nb_NO.rb
Expand Up @@ -174,14 +174,6 @@
l.store "Just Marked As Spam", "Kun markert som Spam"
l.store "Spam", "Spam"


# app/views/admin/cache/index.html.erb
l.store "To save resources Publify caches content in static files. Cache is cleared each time something gets published. You may however want to clear the cache yourself.",
"For å lagre resurser cacher Publify innholdet i statiske filer. Cachen slettes hver gang noe publiseres. Du kan også velge å slette cachen selv."
l.store "There are currently %d files in cache for a total amount of %d Kb", "Det finnes for øyeblikket %d filer i cachen som utgjør totalt %d kB"
l.store "Sweep cache", ""
l.store "Cache", "Cache"

# app/views/admin/categories/_categories.html.erb
l.store "Reorder", "Arranger"
l.store "Sort alphabetically", "Sorter alfabetisk"
Expand Down
1 change: 0 additions & 1 deletion lang/pl_PL.rb
Expand Up @@ -802,7 +802,6 @@
l.store "Blog advanced settings", "Ustawienia zaawansowane bloga"
l.store "Blog settings", "Ustawienia bloga"
l.store "Body", "Treść"
l.store "Cache", "Bufor"
l.store "Cache was cleared", "Bufor opróżniono"
l.store "Category", "Kategoria"
l.store "Category could not be created.", "Kategoria nie została utworzona."
Expand Down
1 change: 0 additions & 1 deletion lang/pt_BR.rb
Expand Up @@ -796,7 +796,6 @@
l.store "Blacklist Patterns", "Lista negra"
l.store "Blog settings", "Preferencias del Blog"
l.store "Body", "Comentario"
l.store "Cache", "Cach&eacute;"
l.store "Category title", "T&iacute;tulo de la categor&iacute;a"
l.store "Choose password", "Escoge una contrase&ntilde;a"
l.store "Comments and Trackbacks for", "Comentarios y Trackbacks para"
Expand Down
1 change: 0 additions & 1 deletion lang/ro_RO.rb
Expand Up @@ -776,7 +776,6 @@
l.store "Blacklist Patterns", "Lista neagră"
l.store "Blog settings", "Setările blogului"
l.store "Body", "Conținut"
l.store "Cache", "Cache"
l.store "Category title", "Numele categoriei"
l.store "Choose password", "Parola"
l.store "Comments and Trackbacks for", "Comentarii și retrolegături pentru"
Expand Down

0 comments on commit d4e8caf

Please sign in to comment.