Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

usando locales para gotcha

  • Loading branch information...
commit 1481b8ad38f63809fa3d7ce0dc35d264a17325e3 1 parent 8b335e5
Vinicius Quaiato vquaiato authored
3  Gemfile
@@ -5,6 +5,7 @@ gem 'pg'
5 5 gem 'jquery-rails'
6 6 gem "money"
7 7 gem 'gotcha', :git => "https://github.com/vquaiato/gotcha.git"
  8 +#gem 'gotcha', :git => "../gotcha/.git"
8 9
9 10 group :development do
10 11 gem 'thin'
@@ -14,4 +15,4 @@ group :development, :test do
14 15 gem 'rspec-rails', '2.8.1'
15 16 gem 'valid_attribute', '1.2.0'
16 17 gem 'database_cleaner'
17   -end
  18 +end
22 Gemfile.lock
... ... @@ -1,8 +1,8 @@
1 1 GIT
2 2 remote: https://github.com/vquaiato/gotcha.git
3   - revision: 5527952b03ec97b8b051fbcbb02f26bb98c02c28
  3 + revision: 9566223870e4ba1f3238b658bb6c33be2b751e44
4 4 specs:
5   - gotcha (0.0.6)
  5 + gotcha (0.0.9)
6 6
7 7 GEM
8 8 remote: https://rubygems.org/
@@ -34,21 +34,21 @@ GEM
34 34 activesupport (3.2.1)
35 35 i18n (~> 0.6)
36 36 multi_json (~> 1.0)
37   - arel (3.0.0)
  37 + arel (3.0.2)
38 38 builder (3.0.0)
39   - daemons (1.1.6)
  39 + daemons (1.1.8)
40 40 database_cleaner (0.7.1)
41 41 diff-lcs (1.1.3)
42 42 erubis (2.7.0)
43 43 eventmachine (0.12.10)
44 44 hike (1.2.1)
45 45 i18n (0.6.0)
46   - journey (1.0.2)
47   - jquery-rails (2.0.0)
48   - railties (>= 3.2.0.beta, < 5.0)
  46 + journey (1.0.3)
  47 + jquery-rails (2.0.1)
  48 + railties (>= 3.2.0, < 5.0)
49 49 thor (~> 0.14)
50 50 json (1.6.5)
51   - mail (2.4.1)
  51 + mail (2.4.3)
52 52 i18n (>= 0.4.0)
53 53 mime-types (~> 1.16)
54 54 treetop (~> 1.4.8)
@@ -57,10 +57,10 @@ GEM
57 57 i18n (~> 0.4)
58 58 json
59 59 multi_json (1.1.0)
60   - pg (0.13.1)
  60 + pg (0.13.2)
61 61 polyglot (0.3.3)
62 62 rack (1.4.1)
63   - rack-cache (1.1)
  63 + rack-cache (1.2)
64 64 rack (>= 0.4)
65 65 rack-ssl (1.3.2)
66 66 rack
@@ -110,7 +110,7 @@ GEM
110 110 treetop (1.4.10)
111 111 polyglot
112 112 polyglot (>= 0.3.1)
113   - tzinfo (0.3.31)
  113 + tzinfo (0.3.32)
114 114 valid_attribute (1.2.0)
115 115
116 116 PLATFORMS
1  config/application.rb
@@ -38,6 +38,7 @@ class Application < Rails::Application
38 38 # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
39 39 # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
40 40 # config.i18n.default_locale = :de
  41 + config.i18n.default_locale = 'pt-BR'
41 42
42 43 # Configure the default encoding used in templates for Ruby 1.9.
43 44 config.encoding = "utf-8"
1  config/initializers/gotcha.rb
... ... @@ -0,0 +1 @@
  1 +Gotcha.register_type SumGotcha
10 config/locales/pt-BR.yml
... ... @@ -0,0 +1,10 @@
  1 +# encoding: UTF-8
  2 +# pt-BR translations for Ruby on Rails
  3 +"pt-BR":
  4 + sum:
  5 + of:
  6 + text: "Qual a soma de %{n1} e %{n2}?"
  7 + howmuch:
  8 + text: "Quanto é %{n1} + %{n2}?"
  9 + backwards:
  10 + text: "Escreva '%{word}' ao contrário."

0 comments on commit 1481b8a

Please sign in to comment.
Something went wrong with that request. Please try again.