Configure I18n
- Locale files will be kept in `lib/gollum/locales/[lang].yml` - The available locales, to start, will be English (`en`).
This commit is contained in:
committed by
benjamin wil
parent
d993676ca2
commit
f3e17bb6a6
+4
-1
@@ -5,6 +5,7 @@ require 'digest/sha1'
|
|||||||
require 'ostruct'
|
require 'ostruct'
|
||||||
|
|
||||||
# external
|
# external
|
||||||
|
require 'i18n'
|
||||||
require 'github/markup'
|
require 'github/markup'
|
||||||
require 'rhino' if RUBY_PLATFORM == 'java'
|
require 'rhino' if RUBY_PLATFORM == 'java'
|
||||||
|
|
||||||
@@ -14,6 +15,9 @@ require File.expand_path('../gollum/uri_encode_component', __FILE__)
|
|||||||
module Gollum
|
module Gollum
|
||||||
VERSION = '5.2.3'
|
VERSION = '5.2.3'
|
||||||
|
|
||||||
|
::I18n.available_locales = [:en]
|
||||||
|
::I18n.load_path = Dir[File.expand_path("lib/gollum/locales") + "/*.yml"]
|
||||||
|
|
||||||
def self.assets_path
|
def self.assets_path
|
||||||
::File.expand_path('gollum/public', ::File.dirname(__FILE__))
|
::File.expand_path('gollum/public', ::File.dirname(__FILE__))
|
||||||
end
|
end
|
||||||
@@ -32,5 +36,4 @@ module Gollum
|
|||||||
data
|
data
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user