Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Small update of gettext example

  • Loading branch information...
commit 0a08f3f99aeab0eb87bc825a29a6a8c9c4fd7091 1 parent d976e8e
Maciej Piechotka uzytkownik authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 examples/gettext_example/gettext_example.rb
9 examples/gettext_example/gettext_example.rb
View
@@ -3,6 +3,13 @@
Gem.path.unshift Pathname(__FILE__).dirname.parent.parent.expand_path + 'lib'
$LOAD_PATH.unshift Pathname(__FILE__).dirname.parent.parent.expand_path + 'lib'
+module Merb::Plugins
+ def self.config
+ {:merb_global => {:flat => true}}
+ end
+end
+
+
dependency 'merb_global'
Merb::Router.prepare do |r|
@@ -11,7 +18,7 @@
class GettextExample < Merb::Controller
def index
- _("hi")
+ _("Hi! Hello world!")
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.