aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/gems/gettext-2.1.0/test/testlib/simple.rb
diff options
context:
space:
mode:
authorRobin Houston <robin@lenny.robin>2011-06-09 12:54:05 +0100
committerRobin Houston <robin@lenny.robin>2011-06-09 12:54:05 +0100
commit4d077dc48fb0589dbf401a131d524b23ab0d2258 (patch)
tree680b12febc448827ee937039d38e97020b4c5df9 /vendor/gems/gettext-2.1.0/test/testlib/simple.rb
parentcb67f4d0ef9feae96a90ea5bba63c939268b1224 (diff)
Bundle the locale and gettext gems
Diffstat (limited to 'vendor/gems/gettext-2.1.0/test/testlib/simple.rb')
-rw-r--r--vendor/gems/gettext-2.1.0/test/testlib/simple.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/vendor/gems/gettext-2.1.0/test/testlib/simple.rb b/vendor/gems/gettext-2.1.0/test/testlib/simple.rb
new file mode 100644
index 000000000..64339894a
--- /dev/null
+++ b/vendor/gems/gettext-2.1.0/test/testlib/simple.rb
@@ -0,0 +1,14 @@
+require 'gettext'
+
+class Simple
+ include GetText
+ bindtextdomain("test1", :path => "locale")
+
+ def test
+ _("language")
+ end
+
+ def test_formatted_string
+ _("one is %d.") % 1
+ end
+end