refinerycms-pages 0.9.9.21 → 0.9.9.22
Sign up to get free protection for your applications and to get access to all the features.
- data/app/controllers/admin/pages_controller.rb +16 -2
- data/app/controllers/pages_controller.rb +1 -1
- data/app/models/page.rb +14 -12
- data/app/views/admin/pages/_form_advanced_options_seo.html.erb +2 -22
- data/app/views/admin/pages/_page.html.erb +4 -8
- data/app/views/admin/pages/_sortable_list.html.erb +1 -5
- data/app/views/admin/pages_dialogs/_page_link.html.erb +3 -2
- data/config/locales/cs.yml +0 -8
- data/config/locales/da.yml +0 -8
- data/config/locales/de.yml +0 -8
- data/config/locales/el.yml +0 -8
- data/config/locales/en.yml +1 -8
- data/config/locales/es.yml +0 -8
- data/config/locales/fi.yml +4 -11
- data/config/locales/fr.yml +0 -8
- data/config/locales/it.yml +0 -7
- data/config/locales/jp.yml +0 -8
- data/config/locales/lolcat.yml +0 -8
- data/config/locales/lt.yml +0 -8
- data/config/locales/lv.yml +0 -8
- data/config/locales/nb.yml +0 -8
- data/config/locales/nl.yml +0 -8
- data/config/locales/pl.yml +0 -8
- data/config/locales/pt-BR.yml +0 -8
- data/config/locales/rs.yml +0 -8
- data/config/locales/ru.yml +0 -8
- data/config/locales/sk.yml +0 -8
- data/config/locales/sl.yml +0 -8
- data/config/locales/sv.yml +0 -8
- data/config/locales/vi.yml +0 -8
- data/config/locales/zh-CN.yml +0 -8
- data/config/locales/zh-TW.yml +0 -8
- data/features/manage_pages.feature +1 -0
- data/features/step_definitions/page_steps.rb +4 -0
- data/features/translate_pages.feature +40 -0
- data/lib/gemspec.rb +3 -3
- data/lib/refinery/pages/admin/instance_methods.rb +1 -1
- data/lib/refinery/pages/instance_methods.rb +4 -6
- data/refinerycms-pages.gemspec +7 -6
- metadata +11 -9
@@ -11,6 +11,10 @@ module Admin
|
|
11
11
|
|
12
12
|
after_filter lambda{::Page.expire_page_caching}, :only => [:update_positions]
|
13
13
|
|
14
|
+
before_filter :restrict_access, :only => [:create, :update, :update_positions, :destroy], :if => proc {|c|
|
15
|
+
defined?(::Refinery::I18n) && ::Refinery::I18n.enabled?
|
16
|
+
}
|
17
|
+
|
14
18
|
def new
|
15
19
|
@page = Page.new
|
16
20
|
Page.default_parts.each_with_index do |page_part, index|
|
@@ -28,8 +32,8 @@ module Admin
|
|
28
32
|
|
29
33
|
# Check whether we need to override e.g. on the pages form.
|
30
34
|
unless params[:switch_locale] || @page.nil? || @page.new_record? || @page.slugs.where({
|
31
|
-
:locale => Refinery::I18n.current_locale
|
32
|
-
).nil?
|
35
|
+
:locale => Refinery::I18n.current_locale
|
36
|
+
}).nil?
|
33
37
|
@page.slug = @page.slugs.first if @page.slug.nil? && @page.slugs.any?
|
34
38
|
Thread.current[:globalize_locale] = @page.slug.locale if @page.slug
|
35
39
|
end
|
@@ -50,5 +54,15 @@ module Admin
|
|
50
54
|
end
|
51
55
|
end
|
52
56
|
|
57
|
+
def restrict_access
|
58
|
+
if current_user.has_role?(:translator) && !current_user.has_role?(:superuser) &&
|
59
|
+
(params[:switch_locale].blank? || params[:switch_locale] == ::Refinery::I18n.default_frontend_locale.to_s)
|
60
|
+
flash[:error] = t('translator_access', :scope => 'admin.pages')
|
61
|
+
redirect_to :action => 'index' and return
|
62
|
+
end
|
63
|
+
|
64
|
+
return true
|
65
|
+
end
|
66
|
+
|
53
67
|
end
|
54
68
|
end
|
@@ -20,7 +20,7 @@ class PagesController < ApplicationController
|
|
20
20
|
|
21
21
|
if @page.try(:live?) || (refinery_user? && current_user.authorized_plugins.include?("refinery_pages"))
|
22
22
|
# if the admin wants this to be a "placeholder" page which goes to its first child, go to that instead.
|
23
|
-
if @page.skip_to_first_child && (first_live_child = @page.children.order('lft ASC').live.first).present?
|
23
|
+
if @page.skip_to_first_child# && (first_live_child = @page.children.order('lft ASC').live.first).present?
|
24
24
|
redirect_to first_live_child.url
|
25
25
|
elsif @page.link_url.present?
|
26
26
|
redirect_to @page.link_url and return
|
data/app/models/page.rb
CHANGED
@@ -47,6 +47,7 @@ class Page < ActiveRecord::Base
|
|
47
47
|
attr_accessor :locale # to hold temporarily
|
48
48
|
validates :title, :presence => true
|
49
49
|
|
50
|
+
# Docs for acts_as_nested_set https://github.com/collectiveidea/awesome_nested_set
|
50
51
|
acts_as_nested_set :dependent => :destroy # rather than :delete_all
|
51
52
|
|
52
53
|
# Docs for friendly_id http://github.com/norman/friendly_id
|
@@ -74,25 +75,25 @@ class Page < ActiveRecord::Base
|
|
74
75
|
after_destroy :expire_page_caching
|
75
76
|
|
76
77
|
# Wrap up the logic of finding the pages based on the translations table.
|
77
|
-
|
78
|
-
|
79
|
-
conditions = {:locale => Globalize.locale}.merge(conditions
|
80
|
-
where(:id => ::Page::Translation.where(conditions).select('page_id AS id')).includes(:
|
81
|
-
else
|
82
|
-
where(conditions)
|
78
|
+
if defined?(::Page::Translation)
|
79
|
+
def self.with_globalize(conditions = {})
|
80
|
+
conditions = {:locale => Globalize.locale}.merge(conditions)
|
81
|
+
where(:id => ::Page::Translation.where(conditions).select('page_id AS id')).includes(:children, :slugs)
|
83
82
|
end
|
84
|
-
|
83
|
+
else
|
84
|
+
def self.with_globalize(conditions = {})
|
85
|
+
where(conditions).includes(:children, :slugs)
|
86
|
+
end
|
87
|
+
end
|
85
88
|
|
86
89
|
scope :live, where(:draft => false)
|
87
|
-
scope :by_title,
|
90
|
+
scope :by_title, proc {|t| with_globalize(:title => t)}
|
88
91
|
|
89
92
|
# Shows all pages with :show_in_menu set to true, but it also
|
90
93
|
# rejects any page that has not been translated to the current locale.
|
91
94
|
# This works using a query against the translated content first and then
|
92
95
|
# using all of the page_ids we further filter against this model's table.
|
93
|
-
scope :in_menu,
|
94
|
-
where(:show_in_menu => true).with_globalize({})
|
95
|
-
}
|
96
|
+
scope :in_menu, proc { where(:show_in_menu => true).with_globalize }
|
96
97
|
|
97
98
|
# when a dialog pops up to link to a page, how many pages per page should there be
|
98
99
|
PAGES_PER_DIALOG = 14
|
@@ -290,7 +291,8 @@ class Page < ActiveRecord::Base
|
|
290
291
|
begin
|
291
292
|
Rails.cache.delete_matched(/.*pages.*/)
|
292
293
|
rescue NotImplementedError
|
293
|
-
|
294
|
+
Rails.cache.clear
|
295
|
+
warn "**** [REFINERY] The cache store you are using is not compatible with Rails.cache#delete_matched - clearing entire cache instead ***"
|
294
296
|
end
|
295
297
|
end
|
296
298
|
end
|
@@ -1,24 +1,4 @@
|
|
1
1
|
<div class="hemisquare right_side">
|
2
|
-
|
3
|
-
|
4
|
-
<span class='label_with_help'>
|
5
|
-
<%= f.label :browser_title, t('.seo_override_title') %>
|
6
|
-
<%= refinery_help_tag t('.seo_override_title_help')%>
|
7
|
-
</span>
|
8
|
-
<%= f.text_field :browser_title, :class => 'widest' %>
|
9
|
-
</div>
|
10
|
-
<div class='field'>
|
11
|
-
<span class='label_with_help'>
|
12
|
-
<%= f.label :meta_keywords, t('.meta_keywords_title') %>
|
13
|
-
<%= refinery_help_tag t('.meta_keywords_help') %>
|
14
|
-
</span>
|
15
|
-
<%= f.text_field :meta_keywords, :class => 'widest' %>
|
16
|
-
</div>
|
17
|
-
<div class='field'>
|
18
|
-
<span class='label_with_help'>
|
19
|
-
<%= f.label :meta_description, t('.meta_description_title') %>
|
20
|
-
<%= refinery_help_tag t('.meta_description_help') %>
|
21
|
-
</span>
|
22
|
-
<%= f.text_area :meta_description, :class => 'widest', :rows => 7 %>
|
23
|
-
</div>
|
2
|
+
<%= render :partial => '/seo_meta/form',
|
3
|
+
:locals => { :form => f } %>
|
24
4
|
</div>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<span class='preview'>
|
8
8
|
<% ([page.translation.try(:locale)] | locales).each do |locale| %>
|
9
9
|
<%= link_to refinery_icon_tag("flags/#{locale}.png", :size => '16x11'),
|
10
|
-
|
10
|
+
edit_admin_page_path(page, :switch_locale => locale),
|
11
11
|
:class => 'locale' %>
|
12
12
|
<% end %>
|
13
13
|
</span>
|
@@ -18,9 +18,9 @@
|
|
18
18
|
<%= link_to refinery_icon_tag('application_go.png'), page.url,
|
19
19
|
:target => "_blank",
|
20
20
|
:title => t('.view_live_html') %>
|
21
|
-
<%= link_to refinery_icon_tag('application_edit.png'),
|
21
|
+
<%= link_to refinery_icon_tag('application_edit.png'), edit_admin_page_path(page),
|
22
22
|
:title => t('edit', :scope => 'admin.pages') %>
|
23
|
-
<%= link_to refinery_icon_tag('delete.png'),
|
23
|
+
<%= link_to refinery_icon_tag('delete.png'), admin_page_path(page),
|
24
24
|
:class => "cancel confirm-delete",
|
25
25
|
:title => t('delete', :scope => 'admin.pages'),
|
26
26
|
:confirm => t('message', :scope => 'shared.admin.delete', :title => page.title_with_meta.gsub(/\ ?<em>.*<\/em>/, "")),
|
@@ -28,10 +28,6 @@
|
|
28
28
|
</span>
|
29
29
|
</div>
|
30
30
|
<ul class='nested'>
|
31
|
-
<%= render :partial => 'page',
|
32
|
-
:collection => page.children,
|
33
|
-
:locals => {
|
34
|
-
:collection => collection
|
35
|
-
} if page.has_descendants? %>
|
31
|
+
<%= render :partial => 'page', :collection => page.children %>
|
36
32
|
</ul>
|
37
33
|
</li>
|
@@ -1,9 +1,5 @@
|
|
1
1
|
<ul id='sortable_list'>
|
2
|
-
<%= render :partial => "page",
|
3
|
-
:collection => @pages.select{|p| p.parent_id.nil?},
|
4
|
-
:locals => {
|
5
|
-
:collection => @pages
|
6
|
-
} %>
|
2
|
+
<%= render :partial => "page", :collection => @pages.select{|p| p.parent_id.nil?} %>
|
7
3
|
</ul>
|
8
4
|
<%= render :partial => "/shared/admin/sortable_list",
|
9
5
|
:locals => {:continue_reordering => !!local_assigns[:continue_reordering]} %>
|
@@ -6,8 +6,9 @@
|
|
6
6
|
:rel => page_link.title,
|
7
7
|
:class => 'page_link' }.merge(link_args) %>
|
8
8
|
</li>
|
9
|
-
<%= render :partial => 'page_link',
|
9
|
+
<%= render :partial => 'page_link',
|
10
|
+
:collection => page_link.children,
|
10
11
|
:locals => {
|
11
12
|
:child => (child ||= 0) + 1,
|
12
13
|
:link_to_arguments => link_args
|
13
|
-
}
|
14
|
+
} -%>
|
data/config/locales/cs.yml
CHANGED
@@ -63,14 +63,6 @@ cs:
|
|
63
63
|
link_url_help: Pokud chcete aby po kliknutí na odkaz na tutu stránku byl návštěvník přesměrován na jiný web, vložte adresu (např. http://google.com), jinak nechte prázdné
|
64
64
|
parent_page_help: Můžete umístit tuto stránku v hierarchii pod jinou stránku. Pokud nevyberete nic, bude tato stránka umístěna na první úrovni.
|
65
65
|
custom_title_help: Pokud chcete aby stránka měla jiný titulek než ten který se zobrazuje v menu vyberte 'Text' a vložte jej zde.
|
66
|
-
form_advanced_options_seo:
|
67
|
-
seo: Optimalizace pro vyhledávače
|
68
|
-
seo_override_title: Titulek prohlížeče
|
69
|
-
seo_override_title_help: Vložte titulek délky 5-10 slov, který vystihuje obsah stránky.
|
70
|
-
meta_keywords_title: Klíčová slova
|
71
|
-
meta_keywords_help: Vložte 5-10 klíčových slov oddělených čárkou, které se vztahují k obsahu stránky.
|
72
|
-
meta_description_title: Popisek
|
73
|
-
meta_description_help: Vložte 2-3 krátké věty shrnující obsah stránky.
|
74
66
|
actions:
|
75
67
|
create_new_page: Přidat novou stránku
|
76
68
|
reorder_pages: Přeuspořádat stránky
|
data/config/locales/da.yml
CHANGED
@@ -63,14 +63,6 @@ da:
|
|
63
63
|
link_url_help: Hvis du vil have denne side går til et andet website eller en anden side, når besøgende klikker på den i menuen, skal du indtaste URLen, fx http://google.com
|
64
64
|
parent_page_help: Du kan placere siden under en anden side ved at vælge den i listen. Hvis siden skal ligge på øverste niveau skal du ikke vælge noget.
|
65
65
|
custom_title_help: Hvis siden skal have en anden titel end i menuen, så vælg 'Tekst' og indtast titlen her.
|
66
|
-
form_advanced_options_seo:
|
67
|
-
seo: Søgemaskineoptimering
|
68
|
-
seo_override_title: Browser titel
|
69
|
-
seo_override_title_help: Indtast en titel på 5-10 ord, der summerer sidens indhold.
|
70
|
-
meta_keywords_title: Meta keywords
|
71
|
-
meta_keywords_help: Indtast 5-10 nøgleord der er relaterede til siden. Adskil nøgleordene med kommaer.
|
72
|
-
meta_description_title: Meta description
|
73
|
-
meta_description_help: Indtast to eller tre sætninger, der beskriver siden.
|
74
66
|
actions:
|
75
67
|
create_new_page: Tilføj en ny side
|
76
68
|
reorder_pages: Redigér rækkefølgen af siderne
|
data/config/locales/de.yml
CHANGED
@@ -63,14 +63,6 @@ de:
|
|
63
63
|
link_url_help: Wenn diese Seite zu einer anderen Seite weitergeleitet werden soll, geben Sie hier eine Adresse an, sonst lassen Sie dieses Feld leer.
|
64
64
|
parent_page_help: Sie können eine Seite einer anderen unterordnen, indem Sie diese aus der Liste wählen. Soll die Seite auf die oberste Ebene, lassen Sie dieses Feld leer.
|
65
65
|
custom_title_help: Wenn die Seite einen anderen Titel haben soll, als der im Menü angezeigte, so wählen Sie 'Text' und geben Sie ihn hier ein.
|
66
|
-
form_advanced_options_seo:
|
67
|
-
seo: Suchmaschinenoptimierung
|
68
|
-
seo_override_title: Browsertitel
|
69
|
-
seo_override_title_help: Geben Sie einen 5-10 Wörter langen Titel an, den der Inhalt der Seite beschreibt.
|
70
|
-
meta_keywords_title: Meta-Schlüsselwörter
|
71
|
-
meta_keywords_help: Geben Sie 5-10 Schlüsselwörter für diese Seite an. Trennen Sie Schlüsselwörter mit einem Komma.
|
72
|
-
meta_description_title: Meta-Beschreibung
|
73
|
-
meta_description_help: Beschreiben Sie in knappen zwei oder drei Sätzen, um was es sich bei dieser Seite handelt.
|
74
66
|
actions:
|
75
67
|
create_new_page: Neue Seite anlegen
|
76
68
|
reorder_pages: Seiten umsortieren
|
data/config/locales/el.yml
CHANGED
@@ -63,14 +63,6 @@ el:
|
|
63
63
|
link_url_help: If you want this page to go to another website or page when you click this page in the menu, enter a URL. e.g. http://google.com otherwise leave it blank
|
64
64
|
parent_page_help: You can put a page under another page by selecting it in the list. If you want this page to be a top-level page, just leave it blank.
|
65
65
|
custom_title_help: If you want the page to have a different title than the one that shows in the menu then select 'Text' and enter it here.
|
66
|
-
form_advanced_options_seo:
|
67
|
-
seo: Search Engine Optimization
|
68
|
-
seo_override_title: Browser title
|
69
|
-
seo_override_title_help: Enter a 5-10 word title that summarizes the contents of this page.
|
70
|
-
meta_keywords_title: Meta keywords
|
71
|
-
meta_keywords_help: Enter 5-10 keywords that relate to this page. Separate keywords by a comma.
|
72
|
-
meta_description_title: Meta description
|
73
|
-
meta_description_help: Enter a concise two or three sentences describing what this page is about.
|
74
66
|
actions:
|
75
67
|
create_new_page: Προσθήκη νέας σελίδας
|
76
68
|
reorder_pages: Αναδιάταξη σελιδών
|
data/config/locales/en.yml
CHANGED
@@ -63,20 +63,13 @@ en:
|
|
63
63
|
link_url_help: If you want this page to go to another website or page when you click this page in the menu, enter a URL. e.g. http://google.com otherwise leave it blank
|
64
64
|
parent_page_help: You can put a page under another page by selecting it in the list. If you want this page to be a top-level page, just leave it blank.
|
65
65
|
custom_title_help: If you want the page to have a different title than the one that shows in the menu then select 'Text' and enter it here.
|
66
|
-
form_advanced_options_seo:
|
67
|
-
seo: Search Engine Optimization
|
68
|
-
seo_override_title: Browser title
|
69
|
-
seo_override_title_help: Enter a 5-10 word title that summarizes the contents of this page.
|
70
|
-
meta_keywords_title: Meta keywords
|
71
|
-
meta_keywords_help: Enter 5-10 keywords that relate to this page. Separate keywords by a comma.
|
72
|
-
meta_description_title: Meta description
|
73
|
-
meta_description_help: Enter a concise two or three sentences describing what this page is about.
|
74
66
|
actions:
|
75
67
|
create_new_page: Add new page
|
76
68
|
reorder_pages: Reorder pages
|
77
69
|
reorder_pages_done: Done reordering pages
|
78
70
|
records:
|
79
71
|
no_pages_yet: There are no pages yet. Click "Add new page" to add your first page.
|
72
|
+
translator_access: You do not have the required permission to modify pages in this language.
|
80
73
|
activerecord:
|
81
74
|
models:
|
82
75
|
page: page
|
data/config/locales/es.yml
CHANGED
@@ -64,14 +64,6 @@ es:
|
|
64
64
|
link_url_help: "Si quieres que esta página envíe a otra web o página entonces pulsa esta página en el menú y introduce una URL (por ej: http://google.com). En caso contrario déjalo en blanco."
|
65
65
|
parent_page_help: Puedes incluir una página dentro de otra seleccionándola en la lista. Si quieres que sea una página de primer nivel, déjalo en blanco.
|
66
66
|
custom_title_help: Si quieres que la página tenga un título diferente al que aparece en el menú selecciona 'Texto' y teclea el título que prefieres.
|
67
|
-
form_advanced_options_seo:
|
68
|
-
seo: Optimización para motores de búsqueda (SEO)
|
69
|
-
seo_override_title: Título del navegador
|
70
|
-
seo_override_title_help: Introduce un título de 5-10 palabras que resuma los contenidos de la página.
|
71
|
-
meta_keywords_title: Palabras clave (meta keyboards)
|
72
|
-
meta_keywords_help: Introduce 5-10 palabras clave relacionadas con esta página, separadas por comas.
|
73
|
-
meta_description_title: Meta-descripción
|
74
|
-
meta_description_help: Describe en dos o tres frases de qué tema trata esta página.
|
75
67
|
actions:
|
76
68
|
create_new_page: Crear nueva página
|
77
69
|
reorder_pages: Reordenar páginas
|
data/config/locales/fi.yml
CHANGED
@@ -63,23 +63,16 @@ fi:
|
|
63
63
|
link_url_help: "Jos haluat tämän sivun uudelleenohjaavan käyttäjän toiselle nettisivustolle tai sivulle, kirjoita URL (esim. http://google.com) tai jätä muuten tyhjäksi"
|
64
64
|
parent_page_help: "Voit asettaa sivun toisen sivun alisivuksi valitsemalla yläsivun valikosta. Jos haluat tämän sivun olevan pääsivu, jätä sivu valitsematta."
|
65
65
|
custom_title_help: "Jos haluat sivun näyttävän eri otsikon valikossa, valitse 'Teksti' ja kirjoita se tähän."
|
66
|
-
form_advanced_options_seo:
|
67
|
-
seo: Hakukoneoptimointi
|
68
|
-
seo_override_title: Otsikko
|
69
|
-
seo_override_title_help: Kirjoita 5-10 sanan otsikko joka tiivistää tämän sivun sisällön.
|
70
|
-
meta_keywords_title: Avainsanat
|
71
|
-
meta_keywords_help: "Kirjoita 5-10 avainsanaa, jotka littyvät tähän sivuun. Erottele ne pilkulla."
|
72
|
-
meta_description_title: Kuvaus
|
73
|
-
meta_description_help: Kirjoita ytimekäs kahden tai kolmen lauseen kuvaus tästä sivusta.
|
74
66
|
actions:
|
75
67
|
create_new_page: Lisää uusi sivu
|
76
|
-
reorder_pages:
|
77
|
-
reorder_pages_done:
|
68
|
+
reorder_pages: Muuta sivujen järjestystä
|
69
|
+
reorder_pages_done: Tallenna
|
78
70
|
records:
|
79
71
|
no_pages_yet: Sivuja ei ole vielä. Paina "Lisää uusi sivu-" painiketta lisätäksesi ensimmäisen sivun.
|
72
|
+
translator_access: Sinulla ei ole lupaa muokata sivuja tällä kielellä.
|
80
73
|
activerecord:
|
81
74
|
models:
|
82
|
-
page:
|
75
|
+
page: sivu
|
83
76
|
attributes:
|
84
77
|
page:
|
85
78
|
title: Otsikko
|
data/config/locales/fr.yml
CHANGED
@@ -63,14 +63,6 @@ fr:
|
|
63
63
|
link_url_help: "Si vous souhaitez que cette page mène à un autre site internet ou à une autre page lorsque l'on clique dessus dans le menu, entrez une URL '(par exemple http://google.com)'. Sinon laissez ce champ vide."
|
64
64
|
parent_page_help: "Vous pouvez placer une page sous une autre page en la sélectionnant dans la liste. Si vous voulez que cette page soit une page parente, laissez ce champ vide."
|
65
65
|
custom_title_help: "Si vous voulez que la page ait un titre différent de celui qui apparaît dans le menu, sélectionnez 'Text' et entrez-le ici."
|
66
|
-
form_advanced_options_seo:
|
67
|
-
seo: Optimisations pour les moteurs de recherche (SEO)
|
68
|
-
seo_override_title: Titre du navigateur
|
69
|
-
seo_override_title_help: Entrez entre 5 et 10 mots qui résument votre page.
|
70
|
-
meta_keywords_title: Mots clefs
|
71
|
-
meta_keywords_help: Entrez entre 5 et 10 mots clefs en relation avec votre page (Séparer les mots clefs par des virgules).
|
72
|
-
meta_description_title: Description
|
73
|
-
meta_description_help: Entrez deux ou trois phrases concises décrivants le sujet de votre page.
|
74
66
|
actions:
|
75
67
|
create_new_page: Créer une nouvelle page
|
76
68
|
reorder_pages: Réordonner les pages
|
data/config/locales/it.yml
CHANGED
@@ -73,13 +73,6 @@ it:
|
|
73
73
|
parent_page_help: "Si può fare in modo che questa pagina sia figlia di un'altra pagina selezionandola dalla lista; se invece si desidera che questa pagina sia una pagina di primo livello, lasciare in bianco."
|
74
74
|
custom_title_help: "Se si desidera che la pagina abbia un titolo diverso da quello mostrato nel menu, selezionare 'Testo' e inserirlo qui."
|
75
75
|
form_advanced_options_seo:
|
76
|
-
seo: Ottimizzazione Motori di Ricerca
|
77
|
-
seo_override_title: Titolo del Browser
|
78
|
-
seo_override_title_help: È possibile inserire un testo per il titolo della barra del browser che sovrascriverà il valore predefinito
|
79
|
-
meta_keywords_title: Parole chiave
|
80
|
-
meta_keywords_help: Inserisci 5-10 parole chiave che riguardano questa pagina, separate da una virgola.
|
81
|
-
meta_description_title: Descrizione
|
82
|
-
meta_description_help: Inserire due o tre frasi concise che descrivono questa pagina.
|
83
76
|
js:
|
84
77
|
content_section:
|
85
78
|
create: Crea sezione dei contenuti
|
data/config/locales/jp.yml
CHANGED
@@ -61,14 +61,6 @@ jp:
|
|
61
61
|
link_url_help: メニューでこのページへのリンクをクリックした時、他のウェブサイトやページに転送するようにするにはURL(例 http://google.com)を書き入れます。そうでない場合は空欄のままにします。
|
62
62
|
parent_page_help: リストから選んで、ページを他のページの下に置く事が出来ます。空にするとこのページは一番上の階層のページとして扱われます。
|
63
63
|
custom_title_help: このページにメニューに表示されているもの以外のタイトルを付けたい時にはここに書いて下さい。
|
64
|
-
form_advanced_options_seo:
|
65
|
-
seo: 検索エンジン最適化
|
66
|
-
seo_override_title: ブラウザのタイトル
|
67
|
-
seo_override_title_help: このページの内容を要約する短いタイトルを入れて下さい。
|
68
|
-
meta_keywords_title: メタキーワード
|
69
|
-
meta_keywords_help: このページに関係のあるキーワードを5つから10個ほど入れて下さい。区切りの記号はコンマです。
|
70
|
-
meta_description_title: メタの説明
|
71
|
-
meta_description_help: このページの内容を説明する簡潔な文章を二三入れて下さい。
|
72
64
|
actions:
|
73
65
|
create_new_page: 新規ページを追加
|
74
66
|
reorder_pages: ページを並べ替える
|
data/config/locales/lolcat.yml
CHANGED
@@ -62,14 +62,6 @@ lolcat:
|
|
62
62
|
link_url_help: If you want this page to go to another website or page when you click this page in the menu, enter a URL. e.g. http://GOOGLE.COM OTHERWIZE LEEF IT BLANK
|
63
63
|
parent_page_help: U CAN PUT PAEG UNDR ANOTHR PAEG BY SELECTIN IT IN DA LIST. IF U WANTS DIS PAEG 2 BE TOP-LEVEL PAEG, JUS LEEF IT BLANK.
|
64
64
|
custom_title_help: IF U WANTS TEH PAEG 2 HAS DIFFERENT TITLE THAN TEH WAN DAT SHOWS IN DA MENU DEN SELECT &APOS;TEXT&APOS; AN ENTR IT HER.
|
65
|
-
form_advanced_options_seo:
|
66
|
-
seo: SEARCH ENGINE OPTIMIZASHUN
|
67
|
-
seo_override_title: BROWSR TITLE
|
68
|
-
seo_override_title_help: ENTR 5-10 WERD TITLE DAT SUMMARIZEZ TEH CONTENTS OV DIS PAEG.
|
69
|
-
meta_keywords_title: META KEYWORDZ
|
70
|
-
meta_keywords_help: ENTR 5-10 KEYWORDZ DAT RELATE 2 DIS PAEG. SEPARATE KEYWORDZ BY COMMA.
|
71
|
-
meta_description_title: META DESCRIPSHUN
|
72
|
-
meta_description_help: ENTR CONCIZE 2 OR 3 SENTENCEZ DESCRIBIN WUT DIS PAEG IZ BOUT.
|
73
65
|
actions:
|
74
66
|
create_new_page: ADD NEW PAEG
|
75
67
|
reorder_pages: REORDR PAGEZ
|
data/config/locales/lt.yml
CHANGED
@@ -64,14 +64,6 @@ lt:
|
|
64
64
|
link_url_help: "Jei norite, kad šis puslapis vestų į kitą svetainę ar puslapį, kai jį paspaudžiate meniu, tai įveskite adresą pvz. http://google.com arba palikite tuščią"
|
65
65
|
parent_page_help: "Galite sukurti puslapį, po kitu puslapių, tai pasirinkite jį sąraše. Jei norite, kad šis puslapis taptų aukščiausio lygio puslapiu, tiesiog palikite tuščią."
|
66
66
|
custom_title_help: "Jei norite, kad puslapio antraštė būtų kitokia, nei naudojama meniu, tai pasirinkite 'Tekstas' ir įveskite antraštę."
|
67
|
-
form_advanced_options_seo:
|
68
|
-
seo: Paieškos variklių optimizacija
|
69
|
-
seo_override_title: Naršyklės antraštė
|
70
|
-
seo_override_title_help: "Įveskite 5-10 žodžių santrauką, kuri nusako šio puslapio turinį."
|
71
|
-
meta_keywords_title: Meta raktažodžiai
|
72
|
-
meta_keywords_help: "Įveskite 5-10 raktinių žodžių, kurie susiję su šiuo puslapiu. Atskirkite raktinius žodžius kableliais."
|
73
|
-
meta_description_title: Meta aprašymas
|
74
|
-
meta_description_help: Įveskite rišlius du ar tris sakinius nusakančius apie ką šis puslapis.
|
75
67
|
actions:
|
76
68
|
create_new_page: Pridėti naują puslapį
|
77
69
|
reorder_pages: Keisti puslapių tvarką
|
data/config/locales/lv.yml
CHANGED
@@ -65,14 +65,6 @@ lv:
|
|
65
65
|
link_url_help: Ja vēlaties, lai šī lapa novirzītu apmeklētājus uz citu interneta saiti vai jūsu saita lapu, tad ievadiet saiti, piemēram, http://google.lv, pretējā gadījumā atstājot šo lauku tukšu
|
66
66
|
parent_page_help: Jūs varat novietot lapu zem citas lapas, izvēloties to no sarkasta. Ja jūs velaties, lai šī lapa būtu augšējā līmenī - atstājiet lauku tukšu.
|
67
67
|
custom_title_help: Ja vēlaties, lai lapai būtu cits nosaukums nekā tas ir izvēlnē, tad izvēlieties 'Teksts' un ievadiet to izveidotajā laukā.
|
68
|
-
form_advanced_options_seo:
|
69
|
-
seo: Optimizēšana Interneta Meklētājiem
|
70
|
-
seo_override_title: Nosaukums pārlūkā
|
71
|
-
seo_override_title_help: Ievadiet 5-10 nosaukuma vārdus, kuri apkopo šīs lapas saturu.
|
72
|
-
meta_keywords_title: Meta atslēgvārdi
|
73
|
-
meta_keywords_help: Ievadiet 5-10 atslēgvārdus, kuriem ir saistība ar šo lapu. Atslēgvārdus atdaliet ar komatu
|
74
|
-
meta_description_title: Meta apraksts
|
75
|
-
meta_description_help: Īsi, divos vai trijos teikumos, aprakstiet šīs lapas saturu.
|
76
68
|
actions:
|
77
69
|
create_new_page: Izveidot jaunu lapu
|
78
70
|
reorder_pages: Pārkārtot lapas
|
data/config/locales/nb.yml
CHANGED
@@ -63,14 +63,6 @@ nb:
|
|
63
63
|
link_url_help: "Dersom du ønsker å bli sendt til en annen side eller en ekstern webside når du trykker på den i menyen, legg inn en adresse her. F.eks. http://google.com . La ellers feltet stå tomt."
|
64
64
|
parent_page_help: Du kan plassere en side under en annen side ved å velge den fra listen. Om du ønsker at siden skal være en toppnivå side så lar du dette valget stå blankt.
|
65
65
|
custom_title_help: "Dersom du ønsker at siden skal ha en annen tittel enn den som vises i menyen så kan du velge 'Tekst' og skrive inn tittelen her."
|
66
|
-
form_advanced_options_seo:
|
67
|
-
seo: Søkemotoroptimalisering (SEO)
|
68
|
-
seo_override_title: Nettleser tittel
|
69
|
-
seo_override_title_help: Skriv inn en tittel på 5-10 ord som oppsummerer innholdet på siden.
|
70
|
-
meta_keywords_title: Meta stikkord
|
71
|
-
meta_keywords_help: Skriv inn 5-10 stikkord som relaterer til denne siden. Separer stikkordene med komma.
|
72
|
-
meta_description_title: Meta beskrivelse
|
73
|
-
meta_description_help: Skriv en kort beskrivelse på to eller tre setninger som forteller hva denne siden inneholder.
|
74
66
|
actions:
|
75
67
|
create_new_page: Legg til ny side
|
76
68
|
reorder_pages: Endre rekkefølgen
|
data/config/locales/nl.yml
CHANGED
@@ -63,14 +63,6 @@ nl:
|
|
63
63
|
link_url_help: Als je wilt dat deze pagina naar een andere website, of pagina verwijst, wanneer je deze pagina in het menu selecteerd, vul dan een adres in. Laat het leeg om de pagina zelf te laten zien.
|
64
64
|
parent_page_help: Je kunt een pagina onder een andere pagina hangen, door de "ouder" pagina te selecteren in deze lijst. Als het een "top level" pagina moet worden, kunt u de lege optie selecteren.
|
65
65
|
custom_title_help: If you want the page to have a different title than the one that shows in the menu then select 'Text' and enter it here.
|
66
|
-
form_advanced_options_seo:
|
67
|
-
seo: Zoekmachine optimalisatie
|
68
|
-
seo_override_title: Browser titel
|
69
|
-
seo_override_title_help: Als u de standaard titel van het browservenster wilt wijzigen, kunt u hier een alternatief invullen.
|
70
|
-
meta_keywords_title: Meta zoekwoorden
|
71
|
-
meta_keywords_help: Voeg 5 tot 10 meta zoekwoorden toe. Gebruik een komma om de zoekwoorden te scheiden.
|
72
|
-
meta_description_title: Meta omschrijving
|
73
|
-
meta_description_help: Voer een compacte (twee a drie zinnen) pagina beschrijving in.
|
74
66
|
actions:
|
75
67
|
create_new_page: Maak een nieuwe pagina
|
76
68
|
reorder_pages: "Wijzig de volgorde van de pagina's"
|
data/config/locales/pl.yml
CHANGED
@@ -64,14 +64,6 @@ pl:
|
|
64
64
|
link_url_help: Jeżeli chcesz, aby ta strona prowadziła do innej strony lub witryny kiedy klikniesz ją w menu, wpisz tu adres URL, na przykład http://google.com.W innym wypadku pozostaw to pole pustym.
|
65
65
|
parent_page_help: Możesz umieścić tę stronę pod inną wybierając stronę nadrzędną z listy. Jeżeli ta strona ma być stroną najwyższego poziomu pozostaw to pole pustym.
|
66
66
|
custom_title_help: Jeżeli chcesz aby ta strona miała inny tytuł niż ten widoczny w menu wybierz 'Tekst' i wpisz go tutaj.
|
67
|
-
form_advanced_options_seo:
|
68
|
-
seo: Optymalizacja dla wyszukiwarek
|
69
|
-
seo_override_title: Tytuł w przeglądarce
|
70
|
-
seo_override_title_help: Wpisz 5-10 słów które podsumowują zawartość tej strony.
|
71
|
-
meta_keywords_title: Słowa kluczowe meta
|
72
|
-
meta_keywords_help: Wpisz 5-10 słów kluczowych związanych z zawartością tej strony. Rozdziel słowa kluczowe przecinkiem.
|
73
|
-
meta_description_title: Opis meta
|
74
|
-
meta_description_help: Podaj dwu-trzyzdaniowy opis tego, o czym jest ta strona.
|
75
67
|
actions:
|
76
68
|
create_new_page: Dodaj nową stronę
|
77
69
|
reorder_pages: Zmień kolejność stron
|
data/config/locales/pt-BR.yml
CHANGED
@@ -64,14 +64,6 @@ pt-BR:
|
|
64
64
|
link_url_help: "Se você quer que esta página seja redicionada para outro site ou página quando você clicar nesta página no menu, digite a URL. ex. http://google.com ou deixe em branco."
|
65
65
|
parent_page_help: "Se você quer colocar está página a baixo de outra página no menu, selecione qual página aqui ou deixe em branco caso queria a página na raiz do menu."
|
66
66
|
custom_title_help: "Se você quer que a página tenha um título diferente do que é mostrado no menu então selecione 'Texto' e digite o novo título."
|
67
|
-
form_advanced_options_seo:
|
68
|
-
seo: Otimização de Motor de Busca
|
69
|
-
seo_override_title: Título para a busca
|
70
|
-
seo_override_title_help: Digite de 5 a 10 palvras pequenas que resumem o conteúdo desta página.
|
71
|
-
meta_keywords_title: Palavras-chave
|
72
|
-
meta_keywords_help: Digite de 5 a 10 palavras-chave presentes nesta página. Separe elas com vírgula.
|
73
|
-
meta_description_title: Meta descrição
|
74
|
-
meta_description_help: Digite duas ou três sentenças concisas descrevendo sobre o que é essa página.
|
75
67
|
actions:
|
76
68
|
create_new_page: Criar uma nova página
|
77
69
|
reorder_pages: Reordenar as Páginas
|
data/config/locales/rs.yml
CHANGED
@@ -63,14 +63,6 @@ rs:
|
|
63
63
|
link_url_help: Ako želiš da ova strana vodi na drugi websajt ili stranu kada klikneš na stranu u meniju, upiši URL (npr. http://google.com), u suprotnom ostavi prazno
|
64
64
|
parent_page_help: Možeš postaviti stranu ispod druge strane, tako što ćeš je izabrati na listi. Ako želiš da ova strana bude na glavnom nivou ostavi prazno.
|
65
65
|
custom_title_help: Ako želiš da strana ima drugačiji naslov od onog koji piše u meniju, onda izaberi 'Tekst' i upiši ga ovde.
|
66
|
-
form_advanced_options_seo:
|
67
|
-
seo: Optimizacija za pretraživače(SEO)
|
68
|
-
seo_override_title: Naslov u brauzeru
|
69
|
-
seo_override_title_help: Unesi naslov koji objašnjava sadržaj strane.
|
70
|
-
meta_keywords_title: Ključne reči
|
71
|
-
meta_keywords_help: Unesi 5 do 10 reči, odvojene zarezom, koje ukazuju na sadržaj ove strane.
|
72
|
-
meta_description_title: Opis
|
73
|
-
meta_description_help: Unesi opis sadržaja ove strane u dve do tri rečenice.
|
74
66
|
actions:
|
75
67
|
create_new_page: Dodaj novu stranu
|
76
68
|
reorder_pages: Promeni redosled strana
|
data/config/locales/ru.yml
CHANGED
@@ -72,14 +72,6 @@ ru:
|
|
72
72
|
link_url_help: "Если вы хотите, чтобы при переходе на эту страницу пользователь переадресовывался на другой сайт или страницу, введите адрес, например, http://google.com, иначе оставьте поле пустым"
|
73
73
|
parent_page_help: "Вы можете поместить эту страницу под другую, выбрав ее в списке. Если вы хотите, чтобы эта страница была самого верхнего уровня, оставьте выбранное пустым"
|
74
74
|
custom_title_help: "Если вы хотите, чтобы страница имела заголовок, отличный от того, что в меню или в заголовке браузера, выберите «Текст» и введите его здесь."
|
75
|
-
form_advanced_options_seo:
|
76
|
-
seo: Поисковая оптимизация
|
77
|
-
seo_override_title: Заголовок браузера
|
78
|
-
seo_override_title_help: "Введите заголовок из 5–10 слов, которые описывают текст на этой странице."
|
79
|
-
meta_keywords_title: Ключевые слова
|
80
|
-
meta_keywords_help: "Введите 5–10 ключевых слов, которые относятся к этой странице, разделяя запятой."
|
81
|
-
meta_description_title: Описание
|
82
|
-
meta_description_help: "Введите два-три коротких предложения, описывающих страницу."
|
83
75
|
actions:
|
84
76
|
create_new_page: Создать новую страницу
|
85
77
|
reorder_pages: Изменить порядок страниц
|
data/config/locales/sk.yml
CHANGED
@@ -63,14 +63,6 @@ sk:
|
|
63
63
|
link_url_help: Ak chcete, aby po kliknutí na odkaz na tútu stránku bol návštevník presmerovaný na iný web, vložte adresu (napr. http://google.com), inak ponechajte prázdne.
|
64
64
|
parent_page_help: Môžete umiestniť túto stránku v hierarchii pod inú stránku. Ak nevyberiete nič, bude táto stránka umiestnená na prvej úrovni.
|
65
65
|
custom_title_help: Ak chcete aby stránka mala iný titulok než ten ktorý sa zobrazuje v menu vyberte 'Text' a vložte ho tu.
|
66
|
-
form_advanced_options_seo:
|
67
|
-
seo: Optimalizácia pre vyhľadávanie
|
68
|
-
seo_override_title: Titulok prehliadača
|
69
|
-
seo_override_title_help: Vložte titulok dĺžky 5-10 slov, ktorý vystihuje obsah stránky.
|
70
|
-
meta_keywords_title: Kľúčové slová (Meta keywords)
|
71
|
-
meta_keywords_help: Vložte 5-10 kľúčových slov oddelených čiarkou, ktoré sa vzťahujú k obsahu stránky.
|
72
|
-
meta_description_title: Popis (Meta description)
|
73
|
-
meta_description_help: Vložte 2-3 krátke vety sumarizujúce obsah stránky.
|
74
66
|
actions:
|
75
67
|
create_new_page: Pridať novú stránku
|
76
68
|
reorder_pages: Zmeniť usporiadanie stránok
|
data/config/locales/sl.yml
CHANGED
@@ -62,14 +62,6 @@ sl:
|
|
62
62
|
link_url_help: "Če želite da stran kaže na drugo spletno stran ali stran, ko boste kliknili na njo v meniju, vnesite URL naslov npr. http://google.com v nasprotnem primeru pustite prazno."
|
63
63
|
parent_page_help: "Stran lahko postavite pod neko drugo, tako da jo izberite iz seznama. Če želite da je ta stran na najvišjem nivoju, pustite prazno."
|
64
64
|
custom_title_help: "Če želite da ima stran drugačen naslov od tistega, ki se prikaže v meniju potem izberite 'Tekst' in ga vnesite tukaj."
|
65
|
-
form_advanced_options_seo:
|
66
|
-
seo: Optimitizacija za spletne iskalnike
|
67
|
-
seo_override_title: Naslov brskalnika
|
68
|
-
seo_override_title_help: "Če želite povoziti privzeti naslov brskalnika, ga spremenite tukaj."
|
69
|
-
meta_keywords_title: Meta ključne besede
|
70
|
-
meta_keywords_help: Vnesite 5-10 ključnih besed, ki se navezujejo na to spletno stran. Ključne besede ločite z vejicami.
|
71
|
-
meta_description_title: Meta opis
|
72
|
-
meta_description_help: V dveh do treh stavkih jedernato opišite kaj ta stran predstavlja.
|
73
65
|
actions:
|
74
66
|
create_new_page: Dodaj novo stran
|
75
67
|
reorder_pages: Spremeni vrstni red Strani
|
data/config/locales/sv.yml
CHANGED
@@ -63,14 +63,6 @@ sv:
|
|
63
63
|
link_url_help: Om du vill att den här sidan vidarebefodrar till en annan sida när du väljer den i menyn, fyll i en URL. Tex. http://www.google.com/. Annars lämna tom.
|
64
64
|
parent_page_help: Du kan låta sidor bli undersidor till varandra. Om du vill att den här sidan ska vara en toppnivåsida, lämna tom.
|
65
65
|
custom_title_help: Om du vill att sidan har en annan huvudrubrik än den som visas i menyn, välj Text, och fyll i här.
|
66
|
-
form_advanced_options_seo:
|
67
|
-
seo: Optimering för sökmotorer
|
68
|
-
seo_override_title: Titel i webbläsaren
|
69
|
-
seo_override_title_help: Fyll i en titel med 5 till 10 ord som summerar innehållet på den här sidan.
|
70
|
-
meta_keywords_title: Meta nyckelord
|
71
|
-
meta_keywords_help: Fyll i 5 till 10 nyckelord som relaterar till den här sidan. Separera dina nyckelord med komma-tecken.
|
72
|
-
meta_description_title: Meta beskrivning
|
73
|
-
meta_description_help: Fyll i konkret vad sidan handlar om. Använd en, två eller tre meningar.
|
74
66
|
actions:
|
75
67
|
create_new_page: Lägg till en ny sida
|
76
68
|
reorder_pages: Ändra ordning på sidor
|
data/config/locales/vi.yml
CHANGED
@@ -63,14 +63,6 @@ vi:
|
|
63
63
|
link_url_help: Nếu bạn muốn khi ấn vào trang này trên menu, người dùng sẽ được đưa tới một trang kháchay website khác, bạn hãy nhập vào một địa chỉ (ví dụ http://google.com), nếu không để trống ô này.
|
64
64
|
parent_page_help: Bạn có thể đặt trang này ở dưới (làm con) một trang khác bằng cách chọn trang cha từ danh sách dưới đây. Hãy để trống nếu bạn muốn trang này là trang ở lớp ngoài cùng.
|
65
65
|
custom_title_help: Nếu bạn muốn trang này có một tiêu đề khác tiêu đề hiện trong menu, hãy chọn 'Chữ' và nhập vào đây.
|
66
|
-
form_advanced_options_seo:
|
67
|
-
seo: Tối ưu hóa công cụ tìm kiếm
|
68
|
-
seo_override_title: Tiêu đề trình duyệt
|
69
|
-
seo_override_title_help: Nhập 5-10 từ tóm tắt nội dung trang này.
|
70
|
-
meta_keywords_title: Meta keywords
|
71
|
-
meta_keywords_help: Nhập 5-10 từ khóa liên quan tới trang này, phân cách bằng dấu phẩy.
|
72
|
-
meta_description_title: Meta description
|
73
|
-
meta_description_help: Nhập vào 2-3 câu thật súc tích mô tả trang này nói về gì.
|
74
66
|
actions:
|
75
67
|
create_new_page: Tạo trang mới
|
76
68
|
reorder_pages: Sắp xếp lại các trang
|
data/config/locales/zh-CN.yml
CHANGED
@@ -63,14 +63,6 @@ zh-CN:
|
|
63
63
|
link_url_help: 如果您想要在菜单中点这个页面就跳到其他网站或是页面的话, 在这里输入网址, 例如 http://google.com, 不然就留空
|
64
64
|
parent_page_help: 您可以在列表中让一个页面依附在另一个页面之下. 如果您想要让这个页面为第一层页面, 就不要填写.
|
65
65
|
custom_title_help: 如果您想要此页面在菜单里有个不一样的名称, 请选择 '文字' , 然后在这里输入.
|
66
|
-
form_advanced_options_seo:
|
67
|
-
seo: 搜索引擎优化
|
68
|
-
seo_override_title: 浏览标题
|
69
|
-
seo_override_title_help: 输入 5 到 10 个字的标题去概括这个页面的内容.
|
70
|
-
meta_keywords_title: Meta 关键字
|
71
|
-
meta_keywords_help: 输入 5 到 10 个与这个页面有关的关键字. 用逗号分开每个关键字.
|
72
|
-
meta_description_title: Meta 说明
|
73
|
-
meta_description_help: 简洁地输入两三句话来介绍这个页面.
|
74
66
|
actions:
|
75
67
|
create_new_page: 添加新页面
|
76
68
|
reorder_pages: 重新编排页面顺序
|
data/config/locales/zh-TW.yml
CHANGED
@@ -63,14 +63,6 @@ zh-TW:
|
|
63
63
|
link_url_help: 如果您想要在選單中點選這個頁面就跳到另外一個網站或是頁面的話, 在這裡輸入網址, 例如 http://google.com, 不然就空白不填
|
64
64
|
parent_page_help: 您可以在列表中讓一個頁面依附在另一個頁面之下. 如果您想要讓這個頁面是第一層的頁面, 就不要填這個欄位.
|
65
65
|
custom_title_help: 如果您想要這個頁面有個跟選單中不同的名稱, 請選擇 '文字' , 然後在這裡輸入.
|
66
|
-
form_advanced_options_seo:
|
67
|
-
seo: 搜索引擎最佳化
|
68
|
-
seo_override_title: 瀏覽器標題
|
69
|
-
seo_override_title_help: 輸入 5 到 10 個字來總結這個頁面的內容.
|
70
|
-
meta_keywords_title: Meta 關鍵字
|
71
|
-
meta_keywords_help: 輸入 5 到 10 個跟這個頁面有關的關鍵字. 用逗號分開每個關鍵字.
|
72
|
-
meta_description_title: Meta 說明
|
73
|
-
meta_description_help: 簡潔地輸入兩三句話來介紹這個頁面.
|
74
66
|
actions:
|
75
67
|
create_new_page: 新增頁面
|
76
68
|
reorder_pages: 重新編排頁面順序
|
@@ -50,3 +50,7 @@ end
|
|
50
50
|
Then /^I should have (\d+) page_parts$/ do |count|
|
51
51
|
PagePart.count.should == count.to_i
|
52
52
|
end
|
53
|
+
|
54
|
+
Given /^I have frontend locales "?([^\"]*)"?/ do |locales|
|
55
|
+
RefinerySetting.set(:i18n_translation_frontend_locales, {:value => locales.split(', '), :scoping => 'refinery'})
|
56
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
@refinerycms @pages @pages-translate @i18n
|
2
|
+
Feature: Translate Pages
|
3
|
+
In order to make the content on my website accessible in many countries
|
4
|
+
As a translator
|
5
|
+
I want to translate manage pages
|
6
|
+
|
7
|
+
Background:
|
8
|
+
Given A Refinery user exists
|
9
|
+
And I am a logged in Refinery Translator
|
10
|
+
And I have pages titled Home, About
|
11
|
+
|
12
|
+
Scenario: Pages List
|
13
|
+
When I go to the list of pages
|
14
|
+
Then I should see "Home"
|
15
|
+
And I should see "About"
|
16
|
+
|
17
|
+
Scenario: Add page to main locale
|
18
|
+
When I go to the list of pages
|
19
|
+
And I follow "Add new page"
|
20
|
+
And I fill in "Title" with "Pickles are Cucumbers Soaked in Evil"
|
21
|
+
And I press "Save"
|
22
|
+
Then I should see "You do not have the required permission to modify pages in this language"
|
23
|
+
And I should have 2 pages
|
24
|
+
|
25
|
+
Scenario: Add page to second locale
|
26
|
+
Given I have frontend locales en, fr
|
27
|
+
When I go to the list of pages
|
28
|
+
And I follow "Add new page"
|
29
|
+
And I follow "Fr" within "#switch_locale_picker"
|
30
|
+
And I fill in "Title" with "Pickles sont Concombres Trempé dans le Mal"
|
31
|
+
And I press "Save"
|
32
|
+
Then I should see "'Pickles sont Concombres Trempé dans le Mal' was successfully added."
|
33
|
+
And I should have 3 pages
|
34
|
+
|
35
|
+
Scenario: Delete page from main locale
|
36
|
+
Given I only have a page titled "test"
|
37
|
+
When I go to the list of pages
|
38
|
+
And I follow "Remove this page forever"
|
39
|
+
Then I should see "You do not have the required permission to modify pages in this language."
|
40
|
+
And I should have 1 pages
|
data/lib/gemspec.rb
CHANGED
@@ -27,9 +27,9 @@ Gem::Specification.new do |s|
|
|
27
27
|
|
28
28
|
s.add_dependency 'refinerycms-core', '= #{::Refinery::Version}'
|
29
29
|
s.add_dependency 'friendly_id_globalize3', '~> 3.2.1'
|
30
|
-
s.add_dependency 'globalize3', '>= 0.1.0.
|
31
|
-
s.add_dependency '
|
32
|
-
s.add_dependency 'seo_meta', '~> 1.
|
30
|
+
s.add_dependency 'globalize3', '>= 0.1.0.beta2'
|
31
|
+
s.add_dependency 'awesome_nested_set', '~> 2.0'
|
32
|
+
s.add_dependency 'seo_meta', '~> 1.1'
|
33
33
|
end
|
34
34
|
EOF
|
35
35
|
|
@@ -4,7 +4,7 @@ module Refinery
|
|
4
4
|
module InstanceMethods
|
5
5
|
|
6
6
|
def error_404(exception=nil)
|
7
|
-
if (@page = Page.
|
7
|
+
if (@page = Page.where(:menu_match => "^/404$").includes(:parts, :slugs).first).present?
|
8
8
|
params[:action] = 'error_404'
|
9
9
|
# change any links in the copy to the admin_root_path
|
10
10
|
# and any references to "home page" to "Dashboard"
|
@@ -15,7 +15,7 @@ module Refinery
|
|
15
15
|
|
16
16
|
protected
|
17
17
|
def find_pages_for_menu
|
18
|
-
@menu_pages = ::Page.live.in_menu.order('lft ASC').includes(:
|
18
|
+
@menu_pages = ::Page.roots.live.in_menu.order('lft ASC').includes(:children)
|
19
19
|
end
|
20
20
|
|
21
21
|
def render(*args)
|
@@ -25,11 +25,9 @@ module Refinery
|
|
25
25
|
|
26
26
|
private
|
27
27
|
def store_current_location!
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
super
|
32
|
-
end
|
28
|
+
return super if admin?
|
29
|
+
|
30
|
+
session[:website_return_to] = url_for(@page.url) if @page.try(:present?)
|
33
31
|
end
|
34
32
|
|
35
33
|
end
|
data/refinerycms-pages.gemspec
CHANGED
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{refinerycms-pages}
|
5
|
-
s.version = %q{0.9.9.
|
5
|
+
s.version = %q{0.9.9.22}
|
6
6
|
s.summary = %q{Pages engine for Refinery CMS}
|
7
7
|
s.description = %q{The default content engine of Refinery CMS. This engine handles the administration and display of user-editable pages.}
|
8
|
-
s.date = %q{2011-05-
|
8
|
+
s.date = %q{2011-05-22}
|
9
9
|
s.email = %q{info@refinerycms.com}
|
10
10
|
s.homepage = %q{http://refinerycms.com}
|
11
11
|
s.rubyforge_project = %q{refinerycms}
|
@@ -97,6 +97,7 @@ Gem::Specification.new do |s|
|
|
97
97
|
'features/step_definitions/page_steps.rb',
|
98
98
|
'features/support',
|
99
99
|
'features/support/paths.rb',
|
100
|
+
'features/translate_pages.feature',
|
100
101
|
'features/visit_pages.feature',
|
101
102
|
'lib',
|
102
103
|
'lib/gemspec.rb',
|
@@ -118,9 +119,9 @@ Gem::Specification.new do |s|
|
|
118
119
|
'spec/models/page_spec.rb'
|
119
120
|
]
|
120
121
|
|
121
|
-
s.add_dependency 'refinerycms-core', '= 0.9.9.
|
122
|
+
s.add_dependency 'refinerycms-core', '= 0.9.9.22'
|
122
123
|
s.add_dependency 'friendly_id_globalize3', '~> 3.2.1'
|
123
|
-
s.add_dependency 'globalize3', '>= 0.1.0.
|
124
|
-
s.add_dependency '
|
125
|
-
s.add_dependency 'seo_meta', '~> 1.
|
124
|
+
s.add_dependency 'globalize3', '>= 0.1.0.beta2'
|
125
|
+
s.add_dependency 'awesome_nested_set', '~> 2.0'
|
126
|
+
s.add_dependency 'seo_meta', '~> 1.1'
|
126
127
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: refinerycms-pages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.9.9.
|
5
|
+
version: 0.9.9.22
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Resolve Digital
|
@@ -13,7 +13,8 @@ autorequire:
|
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
15
|
|
16
|
-
date: 2011-05-
|
16
|
+
date: 2011-05-22 00:00:00 +12:00
|
17
|
+
default_executable:
|
17
18
|
dependencies:
|
18
19
|
- !ruby/object:Gem::Dependency
|
19
20
|
name: refinerycms-core
|
@@ -23,7 +24,7 @@ dependencies:
|
|
23
24
|
requirements:
|
24
25
|
- - "="
|
25
26
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.9.9.
|
27
|
+
version: 0.9.9.22
|
27
28
|
type: :runtime
|
28
29
|
version_requirements: *id001
|
29
30
|
- !ruby/object:Gem::Dependency
|
@@ -45,18 +46,18 @@ dependencies:
|
|
45
46
|
requirements:
|
46
47
|
- - ">="
|
47
48
|
- !ruby/object:Gem::Version
|
48
|
-
version: 0.1.0.
|
49
|
+
version: 0.1.0.beta2
|
49
50
|
type: :runtime
|
50
51
|
version_requirements: *id003
|
51
52
|
- !ruby/object:Gem::Dependency
|
52
|
-
name:
|
53
|
+
name: awesome_nested_set
|
53
54
|
prerelease: false
|
54
55
|
requirement: &id004 !ruby/object:Gem::Requirement
|
55
56
|
none: false
|
56
57
|
requirements:
|
57
58
|
- - ~>
|
58
59
|
- !ruby/object:Gem::Version
|
59
|
-
version: "
|
60
|
+
version: "2.0"
|
60
61
|
type: :runtime
|
61
62
|
version_requirements: *id004
|
62
63
|
- !ruby/object:Gem::Dependency
|
@@ -67,7 +68,7 @@ dependencies:
|
|
67
68
|
requirements:
|
68
69
|
- - ~>
|
69
70
|
- !ruby/object:Gem::Version
|
70
|
-
version: 1.
|
71
|
+
version: "1.1"
|
71
72
|
type: :runtime
|
72
73
|
version_requirements: *id005
|
73
74
|
description: The default content engine of Refinery CMS. This engine handles the administration and display of user-editable pages.
|
@@ -142,6 +143,7 @@ files:
|
|
142
143
|
- features/manage_pages.feature
|
143
144
|
- features/step_definitions/page_steps.rb
|
144
145
|
- features/support/paths.rb
|
146
|
+
- features/translate_pages.feature
|
145
147
|
- features/visit_pages.feature
|
146
148
|
- lib/gemspec.rb
|
147
149
|
- lib/generators/refinerycms_pages_generator.rb
|
@@ -153,6 +155,7 @@ files:
|
|
153
155
|
- license.md
|
154
156
|
- refinerycms-pages.gemspec
|
155
157
|
- spec/models/page_spec.rb
|
158
|
+
has_rdoc: true
|
156
159
|
homepage: http://refinerycms.com
|
157
160
|
licenses:
|
158
161
|
- MIT
|
@@ -176,10 +179,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
176
179
|
requirements: []
|
177
180
|
|
178
181
|
rubyforge_project: refinerycms
|
179
|
-
rubygems_version: 1.
|
182
|
+
rubygems_version: 1.6.2
|
180
183
|
signing_key:
|
181
184
|
specification_version: 3
|
182
185
|
summary: Pages engine for Refinery CMS
|
183
186
|
test_files: []
|
184
187
|
|
185
|
-
has_rdoc:
|