Skip to content

Commit

Permalink
Internationalize CMS texts
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Altmann committed Aug 22, 2015
1 parent 20d19a0 commit 81a37eb
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 19 deletions.
2 changes: 1 addition & 1 deletion app/views/contents/_embed.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
- cache content do
= content.body && content.body.html_safe
- if policy(Content).admin?
= link_to 'Edit', edit_content_url(content)
= link_to t('tinycms.content.edit'), edit_content_url(content)
4 changes: 2 additions & 2 deletions app/views/contents/clean_show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
.Content
= resource.body && resource.body.html_safe
- if policy(resource).admin?
= link_to 'Edit', edit_content_url(resource)
= link_to 'Overview', contents_path
= link_to t('tinycms.content.edit'), edit_content_url(resource)
= link_to t('tinycms.content.overview'), contents_path
6 changes: 3 additions & 3 deletions app/views/contents/edit.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
/ along with Farinopoly. If not, see <http://www.gnu.org/licenses/>.
/
h1 Editing content
h1= t('tinycms.content.edit_page')
= render 'form'
= link_to 'Show', resource
= link_to t('tinycms.content.show'), resource
= ' | '
= link_to 'Back', contents_path
= link_to t('tinycms.content.back'), contents_path
12 changes: 6 additions & 6 deletions app/views/contents/index.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/ along with Farinopoly. If not, see <http://www.gnu.org/licenses/>.
/
h1 Listing contents
h1= t('tinycms.content.index_pages')

table
tr
Expand All @@ -29,10 +29,10 @@ table
- @contents.each do |content|
tr
td= content.key
td= link_to 'Show', content
td= link_to 'Edit', edit_content_path(content)
td= link_to 'Destroy', content,
method: :delete, data: { confirm: 'Are you sure?' }
td= link_to t('tinycms.content.show'), content
td= link_to t('tinycms.content.edit'), edit_content_path(content)
td= link_to t('tinycms.content.destroy'), content,
method: :delete, data: { confirm: t('tinycms.content.sure') }

br/
= link_to 'New Content', new_content_path
= link_to t('tinycms.content.new_page'), new_content_path
5 changes: 2 additions & 3 deletions app/views/contents/new.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
/ along with Farinopoly. If not, see <http://www.gnu.org/licenses/>.
/
h1
= t('tinycms.content.new')
h1= t('tinycms.content.new')
= render 'form'
= link_to 'Back', contents_path
= link_to t('tinycms.content.back'), contents_path
4 changes: 2 additions & 2 deletions app/views/contents/show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
.Content
= resource.body && resource.body.html_safe
- if policy(resource).admin?
= link_to 'Edit', edit_content_url(resource)
=< link_to 'Overview', contents_path
= link_to t('tinycms.content.edit'), edit_content_url(resource)
=< link_to t('tinycms.content.overview'), contents_path
.content-share
= render '/shared/take_part'
13 changes: 11 additions & 2 deletions config/locales/old/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,18 @@ de:

tinycms:
content:
new: "Inhalte verwalten"
new: 'Neue CMS-Seite'
not_exists: "Die Seite '/%{url}' existiert noch nicht"
may_be_created: "Hier kannst Du sie erstellen"
may_be_created: 'Hier kannst Du sie erstellen'
back: 'Zurück'
edit: 'Bearbeiten'
show: 'Anzeigen'
destroy: 'Löschen'
new_page: 'Neue Seite'
overview: 'Übersicht'
index_pages: 'CMS-Seiten'
edit_page: 'CMS-Seite bearbeiten'
sure: 'Bist Du sicher?'

meta_tags:
description: "Kaufe, verkaufe, tausche und verleihe faire und nachhaltige Mode, Bücher, Lebensmittel, Spielzeug und Designartikel auf Fairmondo, dem Online Marktplatz für Alle."
Expand Down

0 comments on commit 81a37eb

Please sign in to comment.