diff --git a/app/views/devise/unlocks/new.html.slim b/app/views/devise/unlocks/new.html.slim
index 9b5abf7..910293e 100644
--- a/app/views/devise/unlocks/new.html.slim
+++ b/app/views/devise/unlocks/new.html.slim
@@ -1,4 +1,4 @@
-h2 Изпрати отново инструкции за отключване
+h2 =t :resend_unlock_instructions_title
= simple_form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f|
= f.error_notification
@@ -8,6 +8,6 @@ h2 Изпрати отново инструкции за отключване
= f.input :email, required: true, autofocus: true, hint: false
.form-actions
- = f.button :submit, 'Изпрати отново инструкциите'
+ = f.button :submit, t(:resend_instructions_btn)
== render 'devise/shared/links'
diff --git a/app/views/lectures/edit.html.slim b/app/views/lectures/edit.html.slim
index 404990a..c9e44d7 100644
--- a/app/views/lectures/edit.html.slim
+++ b/app/views/lectures/edit.html.slim
@@ -1,2 +1,2 @@
-h1.entry-title Редакция на лекция
+h1.entry-title = t :edit_talk
= render 'form'
diff --git a/app/views/lectures/index.html.slim b/app/views/lectures/index.html.slim
index f946ee3..28215f1 100644
--- a/app/views/lectures/index.html.slim
+++ b/app/views/lectures/index.html.slim
@@ -1,9 +1,9 @@
-h1.entry-title Моите предложения за лекции
+h1.entry-title = t :my_talks
- unless @lectures.empty?
ul
= render @lectures
- else
- p Все още не Сте предложили лекция
+ p = t :no_talks_submitted
-= link_to 'Предложи лекция', new_lecture_path, class: 'btn-link'
+= link_to t(:submit_lecture), new_lecture_path, class: 'btn-link'
diff --git a/app/views/lectures/new.html.slim b/app/views/lectures/new.html.slim
index 84cebb5..c3e2bad 100644
--- a/app/views/lectures/new.html.slim
+++ b/app/views/lectures/new.html.slim
@@ -1,2 +1,2 @@
-h1.entry-title Предложи нова лекция
+h1.entry-title = t :submit_talk_header
= render 'form'
diff --git a/app/views/lectures/show.html.slim b/app/views/lectures/show.html.slim
index 04fb996..ac01131 100644
--- a/app/views/lectures/show.html.slim
+++ b/app/views/lectures/show.html.slim
@@ -3,16 +3,15 @@ h2.lecture-title
span.subtitle = @lecture.subtitle
.entry-meta
|
- поток: „#{@lecture.track.name}“,
- продължителност: #{@lecture.length} мин.
+ =t :edit_title, track: @lecture.track.name, len: @lecture.length
section.abstract
- h3 Резюме
+ h3 = t :abstract
= simple_format @lecture.abstract
section.description
- h3 Описание
+ h3 = t :description
= simple_format @lecture.description
- if current_user == @lecture.user
- = link_to 'Редактирай', edit_lecture_path(@lecture), class: 'btn-link'
+ = link_to t(:edit), edit_lecture_path(@lecture), class: 'btn-link'
diff --git a/app/views/speaker_profiles/edit.html.slim b/app/views/speaker_profiles/edit.html.slim
index bcfe4cf..521b3ec 100644
--- a/app/views/speaker_profiles/edit.html.slim
+++ b/app/views/speaker_profiles/edit.html.slim
@@ -1,3 +1,3 @@
-h1.entry-title Редакция на лекторски профил
+h1.entry-title =t :edit_speaker_profile
== render 'form'
diff --git a/app/views/workshops/edit.html.slim b/app/views/workshops/edit.html.slim
index febda47..0d51b39 100644
--- a/app/views/workshops/edit.html.slim
+++ b/app/views/workshops/edit.html.slim
@@ -1,2 +1,2 @@
-h1.entry-title Редакция на уъркшоп
+h1.entry-title = t :edit_workshop
= render 'form'
diff --git a/app/views/workshops/index.html.slim b/app/views/workshops/index.html.slim
index e4c1dba..60e8b36 100644
--- a/app/views/workshops/index.html.slim
+++ b/app/views/workshops/index.html.slim
@@ -1,9 +1,9 @@
-h1.entry-title Моите предложения за уъркшопи
+h1.entry-title = t :my_workshops
- unless @workshops.empty?
ul
= render @workshops
- else
- p Все още не Сте предложили уъркшоп
+ p = t :no_workshops_submitted
-= link_to 'Предложи уъркшоп', new_workshop_path, class: 'btn-link'
+= link_to t(:submit_workshop), new_workshop_path, class: 'btn-link'
diff --git a/app/views/workshops/new.html.slim b/app/views/workshops/new.html.slim
index b4c5d2f..32c02c4 100644
--- a/app/views/workshops/new.html.slim
+++ b/app/views/workshops/new.html.slim
@@ -1,2 +1,2 @@
-h1.entry-title Предложи нов уъркшоп
+h1.entry-title = t :new_workshop_title
= render 'form'
diff --git a/app/views/workshops/show.html.slim b/app/views/workshops/show.html.slim
index dc26192..cff0250 100644
--- a/app/views/workshops/show.html.slim
+++ b/app/views/workshops/show.html.slim
@@ -3,16 +3,15 @@ h2.workshop-title
span.subtitle = @workshop.subtitle
.entry-meta
|
- поток: „#{@workshop.track.name}“,
- продължителност: #{@workshop.length} мин.
+ = t :edit_title, track: @workshop.track.name, len: @workshop.length
section.abstract
- h3 Резюме
+ h3 = t :abstract
= simple_format @workshop.abstract
section.description
- h3 Описание
+ h3 = t :description
= simple_format @workshop.description
- if current_user == @workshop.user
- = link_to 'Редактирай', edit_workshop_path(@workshop), class: 'btn-link'
+ = link_to t(:edit), edit_workshop_path(@workshop), class: 'btn-link'
diff --git a/config/locales/bg.yml b/config/locales/bg.yml
index a26c514..82db0ac 100644
--- a/config/locales/bg.yml
+++ b/config/locales/bg.yml
@@ -103,4 +103,25 @@ bg:
pass_update_hint2: Попълнете, ако искате да промените паролата или имейл адреса си.
update: Обнови
+ resend_unlock_instructions_title: Изпрати отново инструкции за отключване
+ edit_speaker_profile: Редакция на лекторски профил
+
+ edit_workshop: Редакция на уъркшоп
+
+ edit_title: поток: „%{track}“, продължителност: %{len} мин.
+ abstract: Резюме
+ description: Описание
+ edit: Редактирай
+
+ new_workshop_title: Предложи нов уъркшоп
+
+ my_workshops: Моите предложения за уъркшопи
+ no_workshops_submitted: Все още не сте предложили уъркшоп
+
+ edit_talk: Редакция на лекция
+
+ submit_talk_header: Предложи нова лекция
+
+ my_talks: Моите предложения за лекции
+ no_talks_submitted: Все още не сте предложили лекция
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 78b153e..cb6a2c9 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -111,3 +111,26 @@ en:
pass_update_hint2: Fill this if you want to change your password or email.
update: Обнови
+ resend_unlock_instructions_title: Re-send unlocking instructions
+
+ edit_speaker_profile: Edit speaker's profile
+
+ edit_workshop: Edit workshop
+
+ edit_title: track: „%{track}“, duration: %{len} min.
+ abstract: Abstract
+ description: Description
+ edit: Edit
+
+ new_workshop_title: Submit new workshop
+
+ my_workshops: My submitted workshops
+ no_workshops_submitted: You have no submissions for workshops
+
+ edit_talk: Edit talk
+
+ submit_talk_header: Submit new talk
+
+ my_talks: My submitted talks
+ no_talks_submitted: You have no submissions for talks
+