lib/tacape.rb in tacape-0.0.4 vs lib/tacape.rb in tacape-0.0.6

- old
+ new

@@ -40,12 +40,14 @@ YAML.load(erb).with_indifferent_access end def self.locale I18n.load_path = Dir['config/locales/*.yml'] + I18n.load_path += Dir["#{Tacape::Belt.current_os.tool_folder}/*/locales/*.yml"] I18n.backend.load_translations @locale ||= Belt.current_os.locale + #this switch/case must be inside the Belt case @locale when 'pt_BR' I18n.locale = :"pt-BR" else I18n.locale = :en