diff options
Diffstat (limited to 'lib/rdoc/text.rb')
-rw-r--r-- | lib/rdoc/text.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/rdoc/text.rb b/lib/rdoc/text.rb index 0fda72e3ae..3a58641ec1 100644 --- a/lib/rdoc/text.rb +++ b/lib/rdoc/text.rb @@ -103,6 +103,15 @@ module RDoc::Text # Requires the including class to implement #formatter def markup text + if @store.rdoc.options + locale = @store.rdoc.options.locale + else + locale = nil + end + if locale + i18n_text = RDoc::I18n::Text.new(text) + text = i18n_text.translate(locale) + end parse(text).accept formatter end |