unpack brazilian-rails
This commit is contained in:
0
vendor/gems/brazilian-rails/brI18n/CHANGELOG
vendored
Normal file
0
vendor/gems/brazilian-rails/brI18n/CHANGELOG
vendored
Normal file
20
vendor/gems/brazilian-rails/brI18n/MIT-LICENSE
vendored
Normal file
20
vendor/gems/brazilian-rails/brI18n/MIT-LICENSE
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
Copyright (c) 2008 [name of plugin creator]
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
8
vendor/gems/brazilian-rails/brI18n/README
vendored
Normal file
8
vendor/gems/brazilian-rails/brI18n/README
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
Brazilian Rails -- Tradução
|
||||
|
||||
Gem que sobrescreve a implementação de inflections para português, para ser
|
||||
usado junto com o Rails
|
||||
|
||||
Para habilitar, basta:
|
||||
|
||||
require 'brtraducao'
|
||||
70
vendor/gems/brazilian-rails/brI18n/Rakefile
vendored
Normal file
70
vendor/gems/brazilian-rails/brI18n/Rakefile
vendored
Normal file
@@ -0,0 +1,70 @@
|
||||
# encoding: UTF-8
|
||||
require "rubygems"
|
||||
require "rake"
|
||||
require "rake/testtask"
|
||||
require "rdoc/task"
|
||||
require "rake/packagetask"
|
||||
require "rake/gempackagetask"
|
||||
|
||||
require File.join(File.dirname(__FILE__), "lib", "brI18n", "version")
|
||||
|
||||
PKG_BUILD = ENV["PKG_BUILD"] ? "." + ENV["PKG_BUILD"] : ""
|
||||
PKG_NAME = "brI18n"
|
||||
PKG_VERSION = BrI18n::VERSION::STRING + PKG_BUILD
|
||||
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
|
||||
|
||||
desc "Default Task"
|
||||
task :default => [ :test ]
|
||||
|
||||
desc "Task description"
|
||||
task :test do
|
||||
puts "No tests for brI18n"
|
||||
end
|
||||
|
||||
#Generate the RDoc documentation
|
||||
Rake::RDocTask.new { |rdoc|
|
||||
rdoc.rdoc_dir = "doc"
|
||||
rdoc.title = "Brazilian Rails -- Tradução"
|
||||
rdoc.options << "--line-numbers" << "--inline-source" << "-A cattr_accessor=object"
|
||||
rdoc.options << "--charset" << "utf-8"
|
||||
rdoc.template = "#{ENV["template"]}.rb" if ENV["template"]
|
||||
rdoc.rdoc_files.include("README", "CHANGELOG")
|
||||
rdoc.rdoc_files.include("lib/**/*")
|
||||
}
|
||||
|
||||
# Create compressed packages
|
||||
spec = Gem::Specification.new do |s|
|
||||
s.platform = Gem::Platform::RUBY
|
||||
s.name = PKG_NAME
|
||||
s.summary = "brtraducao é uma das gems que compoem o Brazilian Rails"
|
||||
s.description = %q{brtraducao é uma das gems que compoem o Brazilian Rails}
|
||||
s.version = PKG_VERSION
|
||||
|
||||
s.authors = ["Marcos Tapajós", "Celestino Gomes", "Andre Kupkosvki", "Vinícius Teles", "Felipe Barreto", "Rafael Walter", "Cassio Marques"]
|
||||
s.email = %w"tapajos@gmail.com tinorj@gmail.com kupkovski@gmail.com vinicius.m.teles@gmail.com felipebarreto@gmail.com rafawalter@gmail.com cassiommc@gmail.com"
|
||||
s.rubyforge_project = "brtraducao"
|
||||
s.homepage = "http://www.improveit.com.br/software_livre/brazilian_rails"
|
||||
|
||||
s.add_dependency("actionpack", ">= 3.0.0")
|
||||
s.add_dependency("activerecord", ">= 3.0.0")
|
||||
s.add_dependency("activesupport", ">= 3.0.0")
|
||||
|
||||
s.add_development_dependency "rake"
|
||||
|
||||
s.has_rdoc = true
|
||||
s.requirements << "none"
|
||||
s.require_path = "lib"
|
||||
|
||||
s.files = [ "Rakefile", "README", "CHANGELOG", "MIT-LICENSE" ]
|
||||
s.files = s.files + Dir.glob( "lib/**/*" ).delete_if { |item| item.include?( "\.svn" ) }
|
||||
s.files = s.files + Dir.glob( "test/**/*" ).delete_if { |item| item.include?( "\.svn" ) }
|
||||
end
|
||||
|
||||
Rake::GemPackageTask.new(spec) do |p|
|
||||
p.gem_spec = spec
|
||||
end
|
||||
|
||||
desc "Publish the release files to RubyForge."
|
||||
task :release => [ :package ] do
|
||||
`gem push pkg/#{PKG_FILE_NAME}.gem`
|
||||
end
|
||||
13
vendor/gems/brazilian-rails/brI18n/lib/brI18n.rb
vendored
Normal file
13
vendor/gems/brazilian-rails/brI18n/lib/brI18n.rb
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
$:.unshift(File.dirname(__FILE__)) unless
|
||||
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
|
||||
|
||||
%w(version).each {|req| require File.dirname(__FILE__) + "/brI18n/#{req}"}
|
||||
|
||||
module BrI18n
|
||||
|
||||
I18N_FILES = File.expand_path(File.dirname(__FILE__) + "/files")
|
||||
|
||||
end
|
||||
|
||||
I18n.load_path = Dir.glob("#{Rails.root}/config/locales/*") + Dir.glob("#{BrI18n::I18N_FILES}/*")
|
||||
I18n.default_locale = 'pt-BR'
|
||||
10
vendor/gems/brazilian-rails/brI18n/lib/brI18n/version.rb
vendored
Normal file
10
vendor/gems/brazilian-rails/brI18n/lib/brI18n/version.rb
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
module BrI18n
|
||||
module VERSION #:nodoc:
|
||||
MAJOR = 3
|
||||
MINOR = 3
|
||||
TINY = 0
|
||||
|
||||
STRING = "#{MAJOR}.#{MINOR}.#{TINY}"
|
||||
end
|
||||
end
|
||||
|
||||
132
vendor/gems/brazilian-rails/brI18n/lib/files/pt-BR.yml
vendored
Normal file
132
vendor/gems/brazilian-rails/brI18n/lib/files/pt-BR.yml
vendored
Normal file
@@ -0,0 +1,132 @@
|
||||
pt-BR:
|
||||
# formatos de data e hora
|
||||
date:
|
||||
formats:
|
||||
default: "%d/%m/%Y"
|
||||
short: "%d de %B"
|
||||
long: "%d de %B de %Y"
|
||||
only_day: "%d"
|
||||
|
||||
day_names: [Domingo, Segunda, Terça, Quarta, Quinta, Sexta, Sábado]
|
||||
abbr_day_names: [Dom, Seg, Ter, Qua, Qui, Sex, Sáb]
|
||||
month_names: [~, Janeiro, Fevereiro, Março, Abril, Maio, Junho, Julho, Agosto, Setembro, Outubro, Novembro, Dezembro]
|
||||
abbr_month_names: [~, Jan, Fev, Mar, Abr, Mai, Jun, Jul, Ago, Set, Out, Nov, Dez]
|
||||
order:
|
||||
- :day
|
||||
- :month
|
||||
- :year
|
||||
|
||||
time:
|
||||
formats:
|
||||
default: "%A, %d de %B de %Y, %H:%M hs"
|
||||
time: "%H:%M hs"
|
||||
short: "%d/%m, %H:%M hs"
|
||||
long: "%A, %d de %B de %Y, %H:%M hs"
|
||||
only_second: "%S"
|
||||
datetime:
|
||||
formats:
|
||||
default: "%Y-%m-%dT%H:%M:%S%Z"
|
||||
am: ''
|
||||
pm: ''
|
||||
|
||||
# date helper distanci em palavras
|
||||
datetime:
|
||||
distance_in_words:
|
||||
half_a_minute: 'meio minuto'
|
||||
less_than_x_seconds:
|
||||
one: 'menos de 1 segundo'
|
||||
other: 'menos de {{count}} segundos'
|
||||
|
||||
x_seconds:
|
||||
one: '1 segundo'
|
||||
other: '{{count}} segundos'
|
||||
|
||||
less_than_x_minutes:
|
||||
one: 'menos de um minuto'
|
||||
other: 'menos de {{count}} minutos'
|
||||
|
||||
x_minutes:
|
||||
one: '1 minuto'
|
||||
other: '{{count}} minutos'
|
||||
|
||||
about_x_hours:
|
||||
one: 'aproximadamente 1 hora'
|
||||
other: 'aproximadamente {{count}} horas'
|
||||
|
||||
x_days:
|
||||
one: '1 dia'
|
||||
other: '{{count}} dias'
|
||||
|
||||
about_x_months:
|
||||
one: 'aproximadamente 1 mês'
|
||||
other: 'aproximadamente {{count}} meses'
|
||||
|
||||
x_months:
|
||||
one: '1 mês'
|
||||
other: '{{count}} meses'
|
||||
|
||||
about_x_years:
|
||||
one: 'aproximadamente 1 ano'
|
||||
other: 'aproximadamente {{count}} anos'
|
||||
|
||||
over_x_years:
|
||||
one: 'mais de 1 ano'
|
||||
other: 'mais de {{count}} anos'
|
||||
|
||||
# numeros
|
||||
number:
|
||||
format:
|
||||
precision: 3
|
||||
separator: ','
|
||||
delimiter: '.'
|
||||
currency:
|
||||
format:
|
||||
unit: 'R$'
|
||||
precision: 2
|
||||
format: '%u %n'
|
||||
separator: ','
|
||||
delimiter: '.'
|
||||
percentage:
|
||||
format:
|
||||
delimiter: '.'
|
||||
precision:
|
||||
format:
|
||||
delimiter: '.'
|
||||
human:
|
||||
format:
|
||||
precision: 1
|
||||
delimiter: '.'
|
||||
support:
|
||||
array:
|
||||
sentence_connector: "e"
|
||||
skip_last_comma: true
|
||||
|
||||
# Active Record
|
||||
activerecord:
|
||||
errors:
|
||||
template:
|
||||
header:
|
||||
one: "Não pôde ser salvo: 1 erro"
|
||||
other: "Não pôde ser salvo: {{count}} erros."
|
||||
body: "Por favor, cheque os seguintes campos:"
|
||||
messages:
|
||||
inclusion: "não está incluso na lista"
|
||||
exclusion: "não está disponível"
|
||||
invalid: "não é válido"
|
||||
confirmation: "não bate com a confirmação"
|
||||
accepted: "precisa ser aceito"
|
||||
empty: "não pode ser vazio"
|
||||
blank: "não pode ser vazio"
|
||||
too_long: "é muito longo (não mais do que {{count}} caracteres)"
|
||||
too_short: "é muito curto (não menos do que {{count}} caracteres)"
|
||||
wrong_length: "não é do tamanho correto (precisa ter {{count}} caracteres)"
|
||||
taken: "não está disponível"
|
||||
not_a_number: "não é um número"
|
||||
greater_than: "precisa ser maior do que {{count}}"
|
||||
greater_than_or_equal_to: "precisa ser maior ou igual a {{count}}"
|
||||
equal_to: "precisa ser igual a {{count}}"
|
||||
less_than: "precisa ser menor do que {{count}}"
|
||||
less_than_or_equal_to: "precisa ser menor ou igual a {{count}}"
|
||||
odd: "precisa ser ímpar"
|
||||
even: "precisa ser par"
|
||||
|
||||
Reference in New Issue
Block a user