Sha256: 4766d05a5a8e737c25aba23934ea6186aebdb521076c3c9a3b5e8a32fd99125a
Contents?: true
Size: 376 Bytes
Versions: 3
Compression:
Stored size: 376 Bytes
Contents
require 'glue/localization' module Nitro class Localization class << self # Transform localization macros. def transform(text) # handle symbols text.gsub!(/\[\[\:(.*?)\]\]/, '#{@lc[\1]}') # handle strings text.gsub!(/\[\[(.*?)\]\]/, '#{@lc["\1"]}') return text end end end end # * George Moschovitis <gm@navel.gr>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.27.0 | lib/nitro/compiler/localization.rb |
nitro-0.28.0 | lib/nitro/compiler/localization.rb |
nitro-0.29.0 | lib/nitro/compiler/localization.rb |