Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

usando locales para gotcha

  • Loading branch information...
commit 1481b8ad38f63809fa3d7ce0dc35d264a17325e3 1 parent 8b335e5
@vquaiato vquaiato authored
View
3  Gemfile
@@ -5,6 +5,7 @@ gem 'pg'
gem 'jquery-rails'
gem "money"
gem 'gotcha', :git => "https://github.com/vquaiato/gotcha.git"
+#gem 'gotcha', :git => "../gotcha/.git"
group :development do
gem 'thin'
@@ -14,4 +15,4 @@ group :development, :test do
gem 'rspec-rails', '2.8.1'
gem 'valid_attribute', '1.2.0'
gem 'database_cleaner'
-end
+end
View
22 Gemfile.lock
@@ -1,8 +1,8 @@
GIT
remote: https://github.com/vquaiato/gotcha.git
- revision: 5527952b03ec97b8b051fbcbb02f26bb98c02c28
+ revision: 9566223870e4ba1f3238b658bb6c33be2b751e44
specs:
- gotcha (0.0.6)
+ gotcha (0.0.9)
GEM
remote: https://rubygems.org/
@@ -34,21 +34,21 @@ GEM
activesupport (3.2.1)
i18n (~> 0.6)
multi_json (~> 1.0)
- arel (3.0.0)
+ arel (3.0.2)
builder (3.0.0)
- daemons (1.1.6)
+ daemons (1.1.8)
database_cleaner (0.7.1)
diff-lcs (1.1.3)
erubis (2.7.0)
eventmachine (0.12.10)
hike (1.2.1)
i18n (0.6.0)
- journey (1.0.2)
- jquery-rails (2.0.0)
- railties (>= 3.2.0.beta, < 5.0)
+ journey (1.0.3)
+ jquery-rails (2.0.1)
+ railties (>= 3.2.0, < 5.0)
thor (~> 0.14)
json (1.6.5)
- mail (2.4.1)
+ mail (2.4.3)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
@@ -57,10 +57,10 @@ GEM
i18n (~> 0.4)
json
multi_json (1.1.0)
- pg (0.13.1)
+ pg (0.13.2)
polyglot (0.3.3)
rack (1.4.1)
- rack-cache (1.1)
+ rack-cache (1.2)
rack (>= 0.4)
rack-ssl (1.3.2)
rack
@@ -110,7 +110,7 @@ GEM
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
- tzinfo (0.3.31)
+ tzinfo (0.3.32)
valid_attribute (1.2.0)
PLATFORMS
View
1  config/application.rb
@@ -38,6 +38,7 @@ class Application < Rails::Application
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
# config.i18n.default_locale = :de
+ config.i18n.default_locale = 'pt-BR'
# Configure the default encoding used in templates for Ruby 1.9.
config.encoding = "utf-8"
View
1  config/initializers/gotcha.rb
@@ -0,0 +1 @@
+Gotcha.register_type SumGotcha
View
10 config/locales/pt-BR.yml
@@ -0,0 +1,10 @@
+# encoding: UTF-8
+# pt-BR translations for Ruby on Rails
+"pt-BR":
+ sum:
+ of:
+ text: "Qual a soma de %{n1} e %{n2}?"
+ howmuch:
+ text: "Quanto é %{n1} + %{n2}?"
+ backwards:
+ text: "Escreva '%{word}' ao contrário."
Please sign in to comment.
Something went wrong with that request. Please try again.