public
Description: Dead simple Rails localization.
Homepage: http://errtheblog.com/posts/55-ya-talkin-gibberish
Clone URL: git://github.com/defunkt/gibberish.git
gibberish: fix my bad spanish [Gustavo Beathyate]
defunkt (author)
Thu Jul 12 23:29:41 -0700 2007
commit  26f14d4c8476ff84a2ddbd3d5aacc03eec06088d
tree    e3c84a63f770dc5393084a8c05a097ab359ec78a
parent  f1363f8e55230907c181f6501afb82de062614d2
...
1
2
 
 
3
...
 
 
1
2
3
0
@@ -1,3 +1,3 @@
0
-welcome_friend: ¡Recepcióamigo!
0
-welcome_user: ¡Recepció{user}!
0
+welcome_friend: ¡Bienvenido amigo!
0
+welcome_user: ¡Bienvenido {user}!
0
 love_rails: Amo los carriles.
...
160
161
162
163
 
164
165
166
...
183
184
185
186
 
187
188
 
189
190
...
160
161
162
 
163
164
165
166
...
183
184
185
 
186
187
 
188
189
190
0
@@ -160,7 +160,7 @@ context "A gibberish string (in general)" do
0
 
0
   specify "should set default key to underscored string" do
0
     Gibberish.current_language = :es
0
- 'welcome friend'[].should == '¡Recepcióamigo!'
0
+ 'welcome friend'[].should == '¡Bienvenido amigo!'
0
   end
0
 end
0
 
0
@@ -183,8 +183,8 @@ context "When a non-default language is set" do
0
   end
0
 
0
   specify "a gibberish string should return a translated version of itself if a corresponding key is found" do
0
- "Welcome, friend!"[:welcome_friend].should.equal "¡Recepcióamigo!"
0
+ "Welcome, friend!"[:welcome_friend].should.equal '¡Bienvenido amigo!'
0
     "I love Rails."[:love_rails].should.equal "Amo los carriles."
0
- 'Welcome, {user}!'[:welcome_user, 'Marvin'].should.equal "¡RecepcióMarvin!"
0
+ 'Welcome, {user}!'[:welcome_user, 'Marvin'].should.equal '¡Bienvenido Marvin!'
0
   end
0
 end

Comments

    No one has commented yet.