haml-rails-with-i18n 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
- # Haml-rails
1
+ # Haml-rails-with-i18n
2
2
 
3
3
  Haml-rails provides Haml generators for Rails 3. It also enables Haml as the templating engine for you, so you don't have to screw around in your own application.rb when your Gemfile already clearly indicated what templating engine you have installed. Hurrah.
4
4
 
5
5
  To use it, add this line to your Gemfile:
6
6
 
7
- gem "haml-rails"
7
+ gem "haml-rails-with-i18n"
8
8
 
9
9
  Then on your config/application.rb:
10
10
 
@@ -12,6 +12,12 @@ Then on your config/application.rb:
12
12
  g.template_engine :haml
13
13
  end
14
14
 
15
+ Finally, install the gems from the console:
16
+
17
+ bundle install
18
+
19
+ You will have to execute rails g haml:locale at least once in order to get the locale translations in English.
20
+
15
21
  Once you've done that, any time you generate a controller or scaffold, you'll get Haml instead of ERB templates. On top of that, when your Rails application loads, Haml will be loaded and initialized completely automatically! The modern world is just so amazing.
16
22
 
17
23
  ### Contributors
@@ -3,14 +3,14 @@ en:
3
3
  back_link: Back
4
4
  show_link: Show
5
5
  destroy_link: Destroy
6
- new_link: New {{ model }}
6
+ new_link: "New %{model}"
7
7
 
8
8
  form_error_explanation:
9
- singular: 1 error prohibited this {{ model }} from being saved
10
- plural: {{ count }} errors prohibited this {{ model }} from being saved
9
+ singular: "1 error prohibited this %{model} from being saved"
10
+ plural: "%{count} errors prohibited this %{model} from being saved"
11
11
 
12
- index_title: Listing {{ model }}
13
- edit_title: Editing {{ model }}
14
- new_title: New {{ model }}
12
+ index_title: "Listing %{model}"
13
+ edit_title: "Editing %{model}"
14
+ new_title: "New %{model}"
15
15
 
16
- confirm_destroy_message: Are you sure?
16
+ confirm_destroy_message: "Are you sure?"
@@ -1,5 +1,5 @@
1
1
  module Haml
2
2
  module Rails
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - "Andr\xC3\xA9 Arko"