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 +8 -2
- data/lib/generators/haml/locale/templates/en.yml +7 -7
- data/lib/haml-rails/version.rb +1 -1
- metadata +2 -2
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 {
|
6
|
+
new_link: "New %{model}"
|
7
7
|
|
8
8
|
form_error_explanation:
|
9
|
-
singular: 1 error prohibited this {
|
10
|
-
plural: {
|
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 {
|
13
|
-
edit_title: Editing {
|
14
|
-
new_title: New {
|
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?"
|
data/lib/haml-rails/version.rb
CHANGED