samples/guessing.rb in simplificator-babel-0.1.0 vs samples/guessing.rb in simplificator-babel-0.2.0
- old
+ new
@@ -7,22 +7,17 @@
def show_languages(s)
puts "Possible Languages for '#{s}': \n#{s.languages[0..2].join(', ')}"
end
-en = "Rainy sunday"
+en = 'Rainy sunday'
de = 'Regnerischer Sonntag'
fr = 'Je ne regrette rien'
sp = 'yo no soy un marinero'
-texts = [en, de, fr, sp]
+texts = [en, de, fr, sp, 'lago di como']
Babel.load_profiles
texts.each do |text|
guess_language text
show_languages text
-end
-
-
-
-
-
+end
\ No newline at end of file