mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
Internationalize login_box
This commit is contained in:
parent
495ea7f328
commit
9eeda2d7e3
@ -6,22 +6,22 @@
|
||||
<b class="caret"></b>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="/account">Logged in as <%= User.find(session[:user]).name %></a></li>
|
||||
<li><%= link_to t('.logged_in_as', username: User.find(session[:user]).name), account_path %></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/my/content">My Content</a></li>
|
||||
<li><a href="/account">Account Settings</a></li>
|
||||
<li><%= link_to t('.my_content'), dashboard_path %></li>
|
||||
<li><%= link_to t('.account_settings'), account_path %></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/about/privacy">Privacy Policy</a></li>
|
||||
<li><%= link_to t('.privacy_policy'), privacy_info_path %></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="https://docs.google.com/forms/d/198QvP092YZn9adeCkLjU_Jw4BHZaSMYjU8p0F8V7csw/viewform" target="_blank">Report a problem</a></li>
|
||||
<li><a href="https://docs.google.com/forms/d/11O6mHMIFFbNiUfdj6eqStXnARPcj3tWnYOQ-90QktDk/viewform" target="_blank">Give feedback</a></li>
|
||||
<li><a href="https://docs.google.com/forms/d/1ncA82di103_e3KjG8PCHO9g9RQY0_89I6mSQf2L0S4g/viewform" target="_blank">Request a feature</a></li>
|
||||
<li><%= link_to t('.report_a_problem'), 'https://docs.google.com/forms/d/198QvP092YZn9adeCkLjU_Jw4BHZaSMYjU8p0F8V7csw/viewform', target: '_blank' %></li>
|
||||
<li><%= link_to t('.give_feedback'), 'https://docs.google.com/forms/d/11O6mHMIFFbNiUfdj6eqStXnARPcj3tWnYOQ-90QktDk/viewform', target: '_blank' %></li>
|
||||
<li><%= link_to t('.request_a_feature'), 'https://docs.google.com/forms/d/1ncA82di103_e3KjG8PCHO9g9RQY0_89I6mSQf2L0S4g/viewform', target: '_blank' %></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/logout">Log out</a></li>
|
||||
<li><%= link_to t('.log_out'), logout_path %></li>
|
||||
</ul>
|
||||
</li>
|
||||
<% else %>
|
||||
<li><a href="/login">Login</a></li>
|
||||
<li><a href="/register">Register</a></li>
|
||||
<li><%= link_to t('.login'), login_path %></li>
|
||||
<li><%= link_to t('.register'), signup_path %></a></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
13
config/locales/views/layouts/en.yml
Normal file
13
config/locales/views/layouts/en.yml
Normal file
@ -0,0 +1,13 @@
|
||||
en:
|
||||
layouts:
|
||||
login_box:
|
||||
logged_in_as: Logged in as %{username}
|
||||
my_content: My Content
|
||||
account_settings: Account Settings
|
||||
privacy_policy: Privacy Policy
|
||||
report_a_problem: Report a problem
|
||||
give_feedback: Give feedback
|
||||
request_a_feature: Request a feature
|
||||
log_out: Log out
|
||||
login: Login
|
||||
register: Register
|
||||
Loading…
Reference in New Issue
Block a user