Replaced Gibberish by Rails 2.2+ I18n

This commit is contained in:
2013-07-12 14:14:54 -04:00
parent c3110dcb93
commit 7a8e3ec065
53 changed files with 169 additions and 492 deletions

View File

@@ -43,8 +43,8 @@ Rails::Initializer.run do |config|
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
config.action_controller.session = {
:session_key => '_wikiufc_session_id',
:secret => '9194c999d4c15148e1fe79e5afe2b77f9f0878f8f8391b72ff62d2ee7243d21d809096b5171be863f56701aa21efbc487d725b3660e86d0022968c19797f6f75'
:key => '_wikiufc_session_id',
:secret => '9194c999d4c15148e1fe79e5afe2b77f9f0878f8f8391b72ff62d2ee7243d21d809096b5171be863f56701aa21efbc487d725b3660e86d0022968c19797f6f75'
}
# Use the database for sessions instead of the cookie-based default,
@@ -64,19 +64,20 @@ Rails::Initializer.run do |config|
config.active_record.default_timezone = :utc
config.action_view.sanitized_allowed_tags = %W(p h1 h2 h3 h4 h5 h6 dl dt ol
ul li address blockquote del div hr ins pre a abbr acronym dfn em strong
code samp kbd var b i big small tt span br bdo cite del ins q sub sup
img map table tr td th colgroup col caption thead tbody tfoot)
ul li address blockquote del div hr ins pre a abbr acronym dfn em strong
code samp kbd var b i big small tt span br bdo cite del ins q sub sup
img map table tr td th colgroup col caption thead tbody tfoot)
config.action_view.sanitized_allowed_attributes = %W(align alt border
cellpadding cellspacing cols colspan coords height href longdesc name
noresize nowrap rel rows rowspan rules scope shape size span src start
style summary title type usemap valign width)
cellpadding cellspacing cols colspan coords height href longdesc name
noresize nowrap rel rows rowspan rules scope shape size span src start
style summary title type usemap valign width)
config.time_zone = 'America/Fortaleza'
config.gem "bluecloth"
config.gem "haml"
config.gem "hpricot"
config.gem "icalendar"
config.gem "brI18n"
config.gem 'thoughtbot-shoulda', :lib => 'shoulda/rails', :source => "http://gems.github.com"
end

View File

@@ -19,3 +19,5 @@ config.action_view.debug_rjs = true
# Don't care if the mailer can't send
config.action_mailer.raise_delivery_errors = false
config.gem "brI18n"

View File

@@ -16,3 +16,5 @@ config.action_controller.perform_caching = true
# Disable delivery errors if you bad email addresses should just be ignored
# config.action_mailer.raise_delivery_errors = false
config.gem "brI18n"

View File

@@ -18,4 +18,4 @@ required_fields.each do |field|
end
# Internacionalizacao
Gibberish.current_language = App.language if RAILS_ENV != 'test'
#Gibberish.current_language = App.language if RAILS_ENV != 'test'

View File

@@ -1,4 +1,82 @@
pt-BR:
course: disciplina
courses: disciplinas
course_created: Disciplina cadastrada
course_updated: Disciplina editada
course_removed: Disciplina excluída
event: evento
events: eventos
event_created: Evento cadastrado
event_updated: Evento editado
event_removed: Evento excluído
event_restored: Evento restaurado
news: notícias
news_created: Notícia cadastrada
news_updated: Notícia editada
news_removed: Notícia excluída
news_restored: Notícia restaurada
news_about: Notícias de {disciplina}
user: usuário
users: usuários
user_account_updated: Perfil editado
user_account_removed: Conta removida
user_account_created: Conta cadastrada
attachment_created: Arquivo criado
attachment_updated: Arquivo editado
attachment_removed: Arquivo excluído
attachment_restored: Arquivo restaurado
wiki_page: Página wiki
wiki_page_created: Página wiki criada
wiki_page_removed: Página wiki removida
wiki_page_updated: Página wiki atualizada
wiki_page_restored: Página wiki restaurada
recent_changes: Mudanças recentes
log_about: Mudanças recentes em {disciplina}
undo: Desfazer
login_failed: Não foi possível fazer login
login_required: É necessário fazer login para acessar esta área do site
login_success: Olá, {u}!
logout_success: Você fez logout
navigation: navegação
forums: fórums
user_profile: perfil público
edit_settings: editar configurações
settings_updated: Configurações editadas
is_too_large: é grande demais
is_needed: é requerido
body: conteúdo
code: código
content: conteúdo
date: data
description: descrição
file: arquivo
file_name: nome do arquivo
full_name: nome completo
name: nome
password_confirmation: confirmação de senha
password: senha
period: semestre
short_name: nome abreviado
time: horário
title: título
logged_in_as: Identificado como %{u}
member_since: Membro desde %{c}
last_seen: Última visita há %{c}
welcome_back: Bem vindo %{u}
dashboard: Dashboard
number:
human:
storage_units: