From 201448dc9574a137a410eba3e50fb9cd334e8ee8 Mon Sep 17 00:00:00 2001 From: Robert Richter Date: Fri, 24 Apr 2015 17:58:43 -0500 Subject: [PATCH] Internationalize dashboard_intro partial --- app/views/main/_dashboard_intro.html.erb | 29 ++++-------------------- config/locales/views/main/en.yml | 19 +++++++++++++++- 2 files changed, 23 insertions(+), 25 deletions(-) diff --git a/app/views/main/_dashboard_intro.html.erb b/app/views/main/_dashboard_intro.html.erb index 2a2846d4..275f0a8a 100644 --- a/app/views/main/_dashboard_intro.html.erb +++ b/app/views/main/_dashboard_intro.html.erb @@ -1,37 +1,18 @@
-

This is is your dashboard

-
-

- As you plan your stories, you can always return back here to get a view of everything - you've created at a glance. To get back here from anywhere, simply click the - Indent logo up top, or the icon next to it. -

-

- Good luck and have fun! -

-
+

<%= t '.card_1_heading' %>

+
<%= t '.card_1_body_html' %>
-

Ready to get started?

-
-

- Welcome to Indent. Before you get started, it's recommended that you - <%= link_to "create a universe", :universe_create %>. -

-

- This universe will contain - everything you create about your world, and is a handy way to keep multiple worlds - cleanly separated during the planning process. -

-
+

<%= t '.card_2_heading' %>

+
<%= t('.card_2_body_html', create_universe_link: link_to(t('.create_universe_link_title'), :universe_create)) %>
- <%= link_to "Create a universe!", :universe_create %> + <%= link_to t('.create_universe_button'), :universe_create %>
diff --git a/config/locales/views/main/en.yml b/config/locales/views/main/en.yml index b02af61e..fd0237e9 100644 --- a/config/locales/views/main/en.yml +++ b/config/locales/views/main/en.yml @@ -21,4 +21,21 @@ en: all you have to do is visit this page and type in the login information you want to use – it's that easy. All of your content will be saved and you can log in to your account with that - username in the future. \ No newline at end of file + username in the future. + dashboard_intro: + card_1_heading: This is is your dashboard + card_1_body_html: > +

As you plan your stories, you can always return back here to get a view of everything + you've created at a glance. To get back here from anywhere, simply click the + Indent logo up top, or the + icon next to it.

+

Good luck and have fun!

+ card_2_heading: Ready to get started? + card_2_body_html: > +

Welcome to Indent. Before you get started, it's recommended that you + %{create_universe_link}.

+

This universe will contain + everything you create about your world, and is a handy way to keep multiple worlds + cleanly separated during the planning process.

+ create_universe_link_title: create a universe + create_universe_button: Create a universe! \ No newline at end of file