Skip to content

Commit

Permalink
Move lang to config for permalinks
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick Francois committed Nov 12, 2013
1 parent c7ba3fe commit 9f187c1
Show file tree
Hide file tree
Showing 24 changed files with 252 additions and 71 deletions.
28 changes: 14 additions & 14 deletions app/views/admin/seo/permalinks.html.erb
@@ -1,45 +1,45 @@
<%- content_for :page_heading do %>
<i class="icon-large icon-settings"></i><h2 class="page-title"><%= _("Permalinks") %></h2>
<i class="icon-large icon-settings"></i><h2 class="page-title"><%= t(".permalinks") %></h2>
<% end %>
<%= error_messages_for 'blog' %>
<%= form_tag :action => 'permalinks' do %>
<p><%= _("Publify offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links.") %></p>
<p><%= _("Here are some examples to get you started.") %></p>
<%= form_tag action: 'permalinks' do %>
<p><%= t(".explain") %></p>
<p><%= t(".sample") %></p>

<div class='form-horizontal'>
<div class='control-group'>
<label class='control-label'><%= _("Permalink format") %></label>
<label class='control-label'><%= t(".permalink_format") %></label>
<div class='controls'>
<label class='radio' for="setting_permalink_format_yearmonthdaytitle">
<%= radio_button(:setting, :permalink_format, '/%year%/%month%/%day%/%title%') %>
<%= _("Date and title") %>
<%= t(".date_and_title") %>
<span class='help-block'><%= "#{this_blog.base_url}/#{Time.now.strftime('%Y/%m/%d')}/sample-article" %></span>
</label>
<label class='radio' for="setting_permalink_format_yearmonthtitle">
<%= radio_button(:setting, :permalink_format, '/%year%/%month%/%title%') %>
<%= _("Month and title") %>
<%= t(".month_and_title") %>
<span class='help-block'><%= "#{this_blog.base_url}/#{Time.now.strftime('%Y/%m')}/sample-article" %></span>
</label>
<label class='radio' for="setting_permalink_format_title">
<%= radio_button(:setting, :permalink_format, '/%title%') %> <%= _("Title only") %>
<%= radio_button(:setting, :permalink_format, '/%title%') %> <%= t(".title_only") %>
<span class='help-block'><%= "#{this_blog.base_url}/sample-article" %></span>
</label>
<label class='radio' for="setting_permalink_format_custom">
<%= radio_button(:setting, :permalink_format, 'custom') %> <%= _("Custom") %>
<%= radio_button(:setting, :permalink_format, 'custom') %> <%= t(".custom") %>
<%= text_field(:setting, :custom_permalink, { :class => 'span5 '})%>
</label>
</div>
</div>
</div>

<p class='clear'><%= _("You can custom your URL structure using the following tags:") %></p>
<p class='clear'><%= t(".you_can_custom_your_url_structure") %></p>
<ul>
<li><code>%title%</code>: <%= _("your article slug. <strong>Using this slug is mandatory</strong>.") %></li>
<li><code>%year%</code>: <%= _("your article year of publication.") %></li>
<li><code>%month%</code>: <%= _("your article month of publication.") %></li>
<li><code>%day%</code>: <%= _("your article day of publication.") %></li>
<li><code>%title%</code>: <%= t(".your_article_slug") %></li>
<li><code>%year%</code>: <%= t(".your_article_year") %></li>
<li><code>%month%</code>: <%= t(".your_article_month") %></li>
<li><code>%day%</code>: <%= t(".your_article_day") %></li>
</ul>

<%= save_settings %>
Expand Down
14 changes: 14 additions & 0 deletions config/locales/da.yml
Expand Up @@ -6,6 +6,20 @@ da:
last: "Last"
admin:
seo:
permalinks:
explain: "Publify offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links."
permalinks: "Permalinks"
permalink_format: "Permalink format"
date_and_title: "Date and title"
month_and_title: "Month and title"
title_only: "Title only"
custom: "Custom"
sample: "Here are some examples to get you started."
you_can_custom_your_url_structure: "You can custom your URL structure using the following tags:"
your_article_slug: "your article slug. <strong>Using this slug is mandatory</strong>."
your_article_year: "your article year of publication."
your_article_month: "your article month of publication."
your_article_day: "your article day of publication."
index:
global_settings: "Global settings"
general_settings: "Generelle indstillinger"
Expand Down
14 changes: 14 additions & 0 deletions config/locales/de.yml
Expand Up @@ -6,6 +6,20 @@ de:
last: "Last"
admin:
seo:
permalinks:
explain: "Publify offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links."
permalinks: "Permalinks"
permalink_format: "Permalink format"
date_and_title: "Date and title"
month_and_title: "Month and title"
title_only: "Title only"
custom: "Custom"
sample: "Here are some examples to get you started."
you_can_custom_your_url_structure: "You can custom your URL structure using the following tags:"
your_article_slug: "your article slug. <strong>Using this slug is mandatory</strong>."
your_article_year: "your article year of publication."
your_article_month: "your article month of publication."
your_article_day: "your article day of publication."
index:
global_settings: "Global settings"
general_settings: "Allgemeine Einstellungen"
Expand Down
14 changes: 14 additions & 0 deletions config/locales/en.yml
Expand Up @@ -6,6 +6,20 @@ en:
last: "Last"
admin:
seo:
permalinks:
explain: "Publify offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links."
permalinks: "Permalinks"
permalink_format: "Permalink format"
date_and_title: "Date and title"
month_and_title: "Month and title"
title_only: "Title only"
custom: "Custom"
sample: "Here are some examples to get you started."
you_can_custom_your_url_structure: "You can custom your URL structure using the following tags:"
your_article_slug: "your article slug. <strong>Using this slug is mandatory</strong>."
your_article_year: "your article year of publication."
your_article_month: "your article month of publication."
your_article_day: "your article day of publication."
index:
global_settings: "Global settings"
general_settings: "General settings"
Expand Down
14 changes: 14 additions & 0 deletions config/locales/es-MX.yml
Expand Up @@ -6,6 +6,20 @@ es-MX:
last: "Last"
admin:
seo:
permalinks:
explain: "Publify offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links."
permalinks: "Permalinks"
permalink_format: "Permalink format"
date_and_title: "Date and title"
month_and_title: "Month and title"
title_only: "Title only"
custom: "Custom"
sample: "Here are some examples to get you started."
you_can_custom_your_url_structure: "You can custom your URL structure using the following tags:"
your_article_slug: "your article slug. <strong>Using this slug is mandatory</strong>."
your_article_year: "your article year of publication."
your_article_month: "your article month of publication."
your_article_day: "your article day of publication."
index:
global_settings: "Global settings"
general_settings: "Preferencias generales"
Expand Down
14 changes: 14 additions & 0 deletions config/locales/fr.yml
Expand Up @@ -6,6 +6,20 @@ fr:
last: "Last"
admin:
seo:
permalinks:
explain: "Les exemples ci-dessous vous aideront à démarrerPublify vous offre la possibilité de créer une structure d'URL personnalisée pour vos liens permanents et vos archives. Cela peut vous permettre d'améliorer l'esthétique, l'utilisabilité et la viralité de vos liens."
permalinks: "Permaliens"
permalink_format: "Format des permaliens"
date_and_title: "Date et titre"
month_and_title: "Mois et titre"
title_only: "Titre uniquement"
custom: "Personnalisé"
sample: "Les exemples ci-dessous vous aideront à démarrer."
you_can_custom_your_url_structure: "Vous pouvez personnaliser la structure de vos URL à l'aide des tags suivats:"
your_article_slug: "le permalien de votre article <strong>ce champ est obligatoire</strong>"
your_article_year: "L'année de publication de votre article."
your_article_month: "Le mois de publication de votre article."
your_article_day: "Le jour de publication de votre article."
index:
global_settings: "Options générales"
general_settings: "Options générales"
Expand Down
14 changes: 14 additions & 0 deletions config/locales/he-IL.yml
Expand Up @@ -6,6 +6,20 @@ he-IL:
last: "Last"
admin:
seo:
permalinks:
explain: "Publify offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links."
permalinks: "Permalinks"
permalink_format: "Permalink format"
date_and_title: "Date and title"
month_and_title: "Month and title"
title_only: "Title only"
custom: "Custom"
sample: "Here are some examples to get you started."
you_can_custom_your_url_structure: "You can custom your URL structure using the following tags:"
your_article_slug: "your article slug. <strong>Using this slug is mandatory</strong>."
your_article_year: "your article year of publication."
your_article_month: "your article month of publication."
your_article_day: "your article day of publication."
index:
global_settings: "Global settings"
general_settings: "הגדרות כלליות"
Expand Down
14 changes: 14 additions & 0 deletions config/locales/it.yml
Expand Up @@ -6,6 +6,20 @@ it:
last: "Last"
admin:
seo:
permalinks:
explain: "Publify offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links."
permalinks: "Permalinks"
permalink_format: "Permalink format"
date_and_title: "Date and title"
month_and_title: "Month and title"
title_only: "Title only"
custom: "Custom"
sample: "Here are some examples to get you started."
you_can_custom_your_url_structure: "You can custom your URL structure using the following tags:"
your_article_slug: "your article slug. <strong>Using this slug is mandatory</strong>."
your_article_year: "your article year of publication."
your_article_month: "your article month of publication."
your_article_day: "your article day of publication."
index:
global_settings: "Global settings"
general_settings: "Configurazione generale"
Expand Down
14 changes: 14 additions & 0 deletions config/locales/ja.yml
Expand Up @@ -6,6 +6,20 @@ ja:
last: "Last"
admin:
seo:
permalinks:
explain: "Publify offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links."
permalinks: "Permalinks"
permalink_format: "Permalink format"
date_and_title: "Date and title"
month_and_title: "Month and title"
title_only: "Title only"
custom: "Custom"
sample: "Here are some examples to get you started."
you_can_custom_your_url_structure: "You can custom your URL structure using the following tags:"
your_article_slug: "your article slug. <strong>Using this slug is mandatory</strong>."
your_article_year: "your article year of publication."
your_article_month: "your article month of publication."
your_article_day: "your article day of publication."
index:
global_settings: "Global settings"
general_settings: "一般設定"
Expand Down
14 changes: 14 additions & 0 deletions config/locales/lt.yml
Expand Up @@ -6,6 +6,20 @@ lt:
last: "Last"
admin:
seo:
permalinks:
explain: "Publify offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links."
permalinks: "Permalinks"
permalink_format: "Permalink format"
date_and_title: "Date and title"
month_and_title: "Month and title"
title_only: "Title only"
custom: "Custom"
sample: "Here are some examples to get you started."
you_can_custom_your_url_structure: "You can custom your URL structure using the following tags:"
your_article_slug: "your article slug. <strong>Using this slug is mandatory</strong>."
your_article_year: "your article year of publication."
your_article_month: "your article month of publication."
your_article_day: "your article day of publication."
index:
global_settings: "Global settings"
general_settings: "Pagrindiniai nustatymai"
Expand Down
14 changes: 14 additions & 0 deletions config/locales/nb-NO.yml
Expand Up @@ -6,6 +6,20 @@ nb-NO:
last: "Last"
admin:
seo:
permalinks:
explain: "Publify tilbyr deg muligheten til å opprette en tilpasset URL-struktur for dine permalenker og arkiver. Dette kan forbedre estetikken, brukervennligheten og foroverkompatibiliteten til dine lenker."
permalinks: "Permalenker"
permalink_format: "Permalinkformat"
date_and_title: "Date and title"
month_and_title: "Month and title"
title_only: "Title only"
custom: "Custom"
sample: "Here are some examples to get you started."
you_can_custom_your_url_structure: "Du kan tilbasse URL-strukturen din ved å bruke følgende tags:"
your_article_slug: "Din artikkel-slug. <strong>Det er påkrevd å bruke denne slug</strong>."
your_article_year: "din artikkels publiseringsår"
your_article_month: "din artikkels publiseringmåned"
your_article_day: "din artikkels publiseringsdag"
index:
global_settings: "Globale innstillinger"
general_settings: "Generelle innstillinger"
Expand Down
14 changes: 14 additions & 0 deletions config/locales/nl.yml
Expand Up @@ -6,6 +6,20 @@ nl:
last: "Last"
admin:
seo:
permalinks:
explain: "Publify offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links."
permalinks: "Permalinks"
permalink_format: "Permalink format"
date_and_title: "Date and title"
month_and_title: "Month and title"
title_only: "Title only"
custom: "Custom"
sample: "Here are some examples to get you started."
you_can_custom_your_url_structure: "You can custom your URL structure using the following tags:"
your_article_slug: "your article slug. <strong>Using this slug is mandatory</strong>."
your_article_year: "your article year of publication."
your_article_month: "your article month of publication."
your_article_day: "your article day of publication."
index:
global_settings: "Global settings"
general_settings: "General settings"
Expand Down
14 changes: 14 additions & 0 deletions config/locales/pl.yml
Expand Up @@ -6,6 +6,20 @@ pl:
last: "Last"
admin:
seo:
permalinks:
explain: "Publify offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links."
permalinks: "Permalinks"
permalink_format: "Permalink format"
date_and_title: "Date and title"
month_and_title: "Month and title"
title_only: "Title only"
custom: "Custom"
sample: "Here are some examples to get you started."
you_can_custom_your_url_structure: "You can custom your URL structure using the following tags:"
your_article_slug: "your article slug. <strong>Using this slug is mandatory</strong>."
your_article_year: "your article year of publication."
your_article_month: "your article month of publication."
your_article_day: "your article day of publication."
index:
global_settings: "Global settings"
general_settings: "Ustawienia ogólne"
Expand Down
14 changes: 14 additions & 0 deletions config/locales/pt-BR.yml
Expand Up @@ -6,6 +6,20 @@ pt-BR:
last: "Anterior"
admin:
seo:
permalinks:
explain: "Publify offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links."
permalinks: "Permalinks"
permalink_format: "Permalink format"
date_and_title: "Date and title"
month_and_title: "Month and title"
title_only: "Title only"
custom: "Custom"
sample: "Here are some examples to get you started."
you_can_custom_your_url_structure: "You can custom your URL structure using the following tags:"
your_article_slug: "your article slug. <strong>Using this slug is mandatory</strong>."
your_article_year: "your article year of publication."
your_article_month: "your article month of publication."
your_article_day: "your article day of publication."
index:
global_settings: "Global settings"
general_settings: "Preferencias generales"
Expand Down
14 changes: 14 additions & 0 deletions config/locales/ro.yml
Expand Up @@ -6,6 +6,20 @@ ro:
last: "Last"
admin:
seo:
permalinks:
explain: "Publify offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links."
permalinks: "Permalinks"
permalink_format: "Permalink format"
date_and_title: "Date and title"
month_and_title: "Month and title"
title_only: "Title only"
custom: "Custom"
sample: "Here are some examples to get you started."
you_can_custom_your_url_structure: "You can custom your URL structure using the following tags:"
your_article_slug: "your article slug. <strong>Using this slug is mandatory</strong>."
your_article_year: "your article year of publication."
your_article_month: "your article month of publication."
your_article_day: "your article day of publication."
index:
global_settings: "Global settings"
general_settings: "Setări generale"
Expand Down
14 changes: 14 additions & 0 deletions config/locales/ru.yml
Expand Up @@ -6,6 +6,20 @@ ru:
last: "Last"
admin:
seo:
permalinks:
explain: "Publify offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links."
permalinks: "Постоянные ссылки"
permalink_format: "Permalink format"
date_and_title: "Date and title"
month_and_title: "Month and title"
title_only: "Title only"
custom: "Custom"
sample: "Here are some examples to get you started."
you_can_custom_your_url_structure: "You can custom your URL structure using the following tags:"
your_article_slug: "your article slug. <strong>Using this slug is mandatory</strong>."
your_article_year: "your article year of publication."
your_article_month: "your article month of publication."
your_article_day: "your article day of publication."
index:
global_settings: "Global settings"
general_settings: "Основные настройки"
Expand Down

0 comments on commit 9f187c1

Please sign in to comment.