diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 1d2bb7a..f163e8c 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -50,17 +50,17 @@
title="<%= Rails.application.name %> (Current traffic: <%= @traffic.to_i %>)">
<% links = {
- "/" => @cur_url == "/" ? Rails.application.name : "Home",
- "/recent" => "Recent",
- "/comments" => "Comments"
+ "/" => @cur_url == "/" ? Rails.application.name : t('.homelink'),
+ "/recent" => t('.recentlink'),
+ "/comments" => t('.commentslink')
} %>
<% if @user %>
- <% links.merge!({ "/threads" => "Your Threads",
- "/stories/new" => "Submit Story" }) %>
+ <% links.merge!({ "/threads" => t('.yourthreadslink'),
+ "/stories/new" => t('.submitstorylink') }) %>
<% end %>
- <% links.merge!({ "/search" => "Search" }) %>
+ <% links.merge!({ "/search" => t('.searchlink') }) %>
<% if @cur_url.present? && !links.keys.include?(@cur_url) &&
@heading.present? %>
@@ -80,26 +80,26 @@
@@ -117,21 +117,21 @@
<%= yield %>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 179c14c..b6c5fa6 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -2,4 +2,24 @@
# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
en:
- hello: "Hello world"
+ layouts:
+ application:
+ homelink: "Home"
+ recentlink: "Recents"
+ commentslink: "Comments"
+ yourthreadslink: "Your Threads"
+ submitstorylink: "Submit Story"
+ searchlink: "Search"
+ filterslink: "Filters"
+ newmessagelink: "New Message"
+ messageslink: "Messages"
+ loginlink: "Login"
+ logoutlink: "Logout"
+ confirmlogoutlink: "Are you sure you want to logout?"
+ moderationloglink: "Moderation Log"
+ invitationqueuelink: "Invitation Queue"
+ chatlink: "Chat"
+ hatrequest: "Hats Requests"
+ bbslink: "BBS"
+ privacylink: "Privacy"
+ aboutlink: "About"
diff --git a/config/locales/fr.yml b/config/locales/fr.yml
new file mode 100644
index 0000000..b60b581
--- /dev/null
+++ b/config/locales/fr.yml
@@ -0,0 +1,25 @@
+# Sample localization file for French. Add more files in this directory for other locales.
+# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
+
+fr:
+ layouts:
+ application:
+ homelink: "Accueil"
+ recentlink: "Récents"
+ commentslink: "Commentaires"
+ yourthreadslink: "Vos sujets"
+ submitstorylink: "Soumettre une info"
+ searchlink: "Recherche"
+ filterslink: "Filtres"
+ newmessagelink: "Nouveau message"
+ messageslink: "Messages"
+ loginlink: "Se connecter"
+ logoutlink: "Se déconnecter"
+ confirmlogoutlink: "Êtes-vous sûr de vouloir vous déconnecter?"
+ moderationloglink: "Journal de modération"
+ invitationqueuelink: "File d'invitation"
+ chatlink: "Chat"
+ hatrequest: "Porter le chapeau"
+ bbslink: "BBS"
+ privacylink: "Confidentialité"
+ aboutlink: "À propos"