add i18n to models
This commit is contained in:
29
app/admin/questions.rb
Normal file
29
app/admin/questions.rb
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
ActiveAdmin.register Question do
|
||||||
|
permit_params :authorship, :authorship_year, :check_type, :difficulty, :status, :subject_id
|
||||||
|
|
||||||
|
index do
|
||||||
|
selectable_column
|
||||||
|
id_column
|
||||||
|
column :user
|
||||||
|
column :subject
|
||||||
|
column :bloom_taxonomy
|
||||||
|
column :check_type
|
||||||
|
column :difficulty
|
||||||
|
column :status
|
||||||
|
column :created_at
|
||||||
|
column :updated_at
|
||||||
|
actions
|
||||||
|
end
|
||||||
|
|
||||||
|
form do |f|
|
||||||
|
f.inputs do
|
||||||
|
f.input :authorship
|
||||||
|
f.input :authorship_year
|
||||||
|
f.input :check_type
|
||||||
|
f.input :difficulty
|
||||||
|
f.input :status
|
||||||
|
f.input :subject
|
||||||
|
end
|
||||||
|
f.actions
|
||||||
|
end
|
||||||
|
end
|
||||||
4
config/locales/defaults/pt-BR.yml
Normal file
4
config/locales/defaults/pt-BR.yml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
pt-BR:
|
||||||
|
attributes:
|
||||||
|
created_at: Criado em
|
||||||
|
updated_at: Atualizado em
|
||||||
9
config/locales/models/axis/pt-BR.yml
Normal file
9
config/locales/models/axis/pt-BR.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
pt-BR:
|
||||||
|
activerecord:
|
||||||
|
models:
|
||||||
|
axis:
|
||||||
|
one: Eixo
|
||||||
|
other: Eixos
|
||||||
|
attributes:
|
||||||
|
axis:
|
||||||
|
name: Nome
|
||||||
9
config/locales/models/category/pt-BR.yml
Normal file
9
config/locales/models/category/pt-BR.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
pt-BR:
|
||||||
|
activerecord:
|
||||||
|
models:
|
||||||
|
category:
|
||||||
|
one: Categoria
|
||||||
|
other: Categorias
|
||||||
|
attributes:
|
||||||
|
category:
|
||||||
|
name: Nome
|
||||||
53
config/locales/models/question/pt-BR.yml
Normal file
53
config/locales/models/question/pt-BR.yml
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
pt-BR:
|
||||||
|
activerecord:
|
||||||
|
models:
|
||||||
|
question:
|
||||||
|
one: Questão
|
||||||
|
other: Questões
|
||||||
|
attributes:
|
||||||
|
question:
|
||||||
|
user: Usuário
|
||||||
|
subject: Assunto
|
||||||
|
alternatives: Alternativas
|
||||||
|
authorship: Autoria
|
||||||
|
authorship_year: Ano de Autoria
|
||||||
|
bloom_taxonomy: Taxonomia de Bloom
|
||||||
|
body: Corpo
|
||||||
|
check_type: Tipo de Marcação
|
||||||
|
difficulty: Dificuldade
|
||||||
|
explanation: Explicação
|
||||||
|
instruction: Instrução
|
||||||
|
intention: Intenção
|
||||||
|
references: Referências
|
||||||
|
status: Status
|
||||||
|
support: Suporte
|
||||||
|
enumerize:
|
||||||
|
question:
|
||||||
|
check_type:
|
||||||
|
unique_answer: Resposta Única
|
||||||
|
incomplete_affirmation: Afirmação Incompleta
|
||||||
|
multiple_answer: Resposta Múltipla
|
||||||
|
negative_focus: Foco Negativo
|
||||||
|
assertion_and_reason: Asserção e Razão
|
||||||
|
gap: Lacuna
|
||||||
|
interpretation: Interpretação
|
||||||
|
association: Associação
|
||||||
|
ordering_or_ranking: Ordenação ou Seriação
|
||||||
|
constant_alternatives: Alternativas Constantes
|
||||||
|
difficulty:
|
||||||
|
easy: Fácil
|
||||||
|
medium: Média
|
||||||
|
hard: Difícil
|
||||||
|
bloom_taxonomy:
|
||||||
|
remember: Recordar
|
||||||
|
understand: Compreender
|
||||||
|
apply: Aplicar
|
||||||
|
analyze: Analisar
|
||||||
|
evaluate: Avaliar
|
||||||
|
create: Criar
|
||||||
|
status:
|
||||||
|
draft: Rascunhos
|
||||||
|
waiting_review: Aguardando Revisão
|
||||||
|
with_requested_changes: Com Alterações Solicitadas
|
||||||
|
approved: Aprovada
|
||||||
|
registered: Registrada
|
||||||
11
config/locales/models/subject/pt-BR.yml
Normal file
11
config/locales/models/subject/pt-BR.yml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
pt-BR:
|
||||||
|
activerecord:
|
||||||
|
models:
|
||||||
|
subject:
|
||||||
|
one: Assunto
|
||||||
|
other: Assuntos
|
||||||
|
attributes:
|
||||||
|
subject:
|
||||||
|
axis: Eixo
|
||||||
|
category: Categoria
|
||||||
|
name: Nome
|
||||||
19
config/locales/models/user/pt-BR.yml
Normal file
19
config/locales/models/user/pt-BR.yml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
pt-BR:
|
||||||
|
activerecord:
|
||||||
|
models:
|
||||||
|
user:
|
||||||
|
one: Usuário
|
||||||
|
other: Usuários
|
||||||
|
attributes:
|
||||||
|
user:
|
||||||
|
name: Nome
|
||||||
|
|
||||||
|
enumerize:
|
||||||
|
user:
|
||||||
|
roles:
|
||||||
|
admin: Administrador
|
||||||
|
nde: NDE
|
||||||
|
coordinator: Coordenador
|
||||||
|
center_director: Diretor de Centro
|
||||||
|
pro_rector: Pró-Reitor
|
||||||
|
teacher: Professor
|
||||||
Reference in New Issue
Block a user