-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure default locale :es. Add translations for account, devise an…
…d rails
- Loading branch information
Francisco de Juan
committed
Jun 9, 2013
1 parent
9a8667e
commit 834fb58
Showing
8 changed files
with
351 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,42 @@ | ||
.page-header | ||
%h1 My account | ||
%h1= t('my_account') | ||
|
||
.row | ||
.span3 | ||
%b Name: | ||
%b= "#{User.human_attribute_name(:name)}:" | ||
= best_in_place @user, :name, input: :input, ok_button: t('save'), cancel_button: t('cancel') | ||
.span3 | ||
%b Phone: | ||
%b= "#{User.human_attribute_name(:phone)}:" | ||
= best_in_place @user, :phone, input: :input, ok_button: t('save'), cancel_button: t('cancel') | ||
.span3 | ||
%b Email: | ||
%b= "#{User.human_attribute_name(:email)}:" | ||
= @user.email | ||
|
||
.page-header | ||
%h2 My week | ||
%h2= t('my_week') | ||
|
||
|
||
%p= t('week_explanation') | ||
%p= t('notification_explanation') | ||
|
||
.row | ||
.span9 | ||
|
||
%table.table.table-striped | ||
%thead | ||
%tr | ||
%td | ||
- @weekdays.each do |day| | ||
%th= day | ||
%th= t(day) | ||
%tbody | ||
- (10..22).each do |hour| | ||
%tr | ||
%th= hour | ||
- @weekdays.each do |day| | ||
%td= best_in_place @user, "#{day}_#{hour}".to_sym, type: :checkbox, collection: ['<i class="icon-circle-blank"></i>'.html_safe, '<i class="icon-ok"></i>'.html_safe] | ||
.span3.well | ||
%p | ||
%i.icon-circle-blank | ||
= t('not_available') | ||
%p | ||
%i.icon-ok | ||
= t('available') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
--- | ||
es: | ||
not_authorized: "No tiene permisos para acceder a este recurso" | ||
errors: | ||
messages: | ||
expired: "ha expirado, por favor pide una nueva" | ||
not_found: "no encontrado" | ||
already_confirmed: "ya fue confirmada. Intenta ingresar." | ||
not_locked: "no ha sido bloqueada" | ||
not_saved: | ||
one: "Ha habido 1 error:" | ||
other: "Han habido %{count} errores:" | ||
|
||
devise: | ||
failure: | ||
already_authenticated: 'Ya iniciaste sesión' | ||
unauthenticated: 'Tienes que registrarte o iniciar sesión antes de continuar' | ||
unconfirmed: 'Tienes que confirmar tu cuenta antes de continuar' | ||
locked: 'Tu cuente está bloqueada' | ||
invalid: 'Email o contraseña inválidos' | ||
invalid_token: 'Token de autentificación inválido' | ||
timeout: 'Tu sesión ha expirado. Inicia sesión nuevamente' | ||
inactive: 'Tu cuenta aun no ha sido activada' | ||
sessions: | ||
signed_in: 'Iniciaste sesión correctamente' | ||
signed_out: 'Cerraste sesión correctamente' | ||
passwords: | ||
change_password_instructions: "Introduce tu nueva contraseña en este formulario" | ||
change_my_password: "Cambia mi contraseña" | ||
change_your_password: "Cambia tu contraseña" | ||
confirm_your_new_password: "Confirma tu nueva contraseña" | ||
forgot_password: "¿Has olvidado tu contraseña?" | ||
new_password: "Nueva contraseña" | ||
reset_password_instructions: 'Introduce tu email en el siguiente campo y pulsa el botón para cambiar tu contraseña' | ||
send_instructions: 'Recibirás un email con instrucciones para reiniciar tu contraseña en unos minutos' | ||
updated: 'Tu contraseña fue cambiada correctamente. Has iniciado sesión' | ||
updated_not_active: 'Tu contraseña fue cambiada correctamente' | ||
send_paranoid_instructions: "Si tu email existe en el sistema, recibirás instrucciones para recuperar tu contraseña en él" | ||
confirmations: | ||
send_instructions: 'Recibirás instrucciones para confirmar tu cuenta en tu email en unos minutos' | ||
send_paranoid_instructions: 'Si tu email existe en el sistema, recibirás instrucciones para confirmar tu cuenta en tu email en unos minutos' | ||
confirmed: 'Tu cuenta fue confirmada. Has iniciado sesión' | ||
registrations: | ||
signed_up: 'Bienvenido! Te has registrado correctamente' | ||
signed_up_but_unconfirmed: 'Te hemos enviado un email con instrucciones para que confirmes tu cuenta' | ||
signed_up_but_inactive: 'Te has registrado correctamente, pero tu cuenta aun no ha sido activada' | ||
signed_up_but_locked: 'Te has registrado correctamente, pero tu cuenta está bloqueada' | ||
updated: 'Actualizaste tu cuenta correctamente' | ||
update_needs_confirmation: "Actualizaste tu cuenta correctamente, pero tenemos que revalidar tu email. Revisa tu correo para confirmar la dirección." | ||
destroyed: 'Adiós, tu cuenta ha sido eliminada. Esperamos verte de vuelta pronto!' | ||
unlocks: | ||
send_instructions: 'Recibirás un email con instrucciones para desbloquear tu cuenta en unos minutos' | ||
unlocked: 'Tu cuenta ha sido desbloqueada. Inicia sesión para continuar' | ||
send_paranoid_instructions: 'Si tu cuenta existe, recibirás instrucciones para desbloquear tu cuenta en unos minutos' | ||
omniauth_callbacks: | ||
success: 'Te autentificaste correctamente con tu cuenta de %{kind}' | ||
failure: 'No pudimos autentificar tu cuenta de %{kind} por la siguiente razón: %{reason}' | ||
mailer: | ||
confirmation_instructions: | ||
subject: 'Instrucciones de confirmación' | ||
reset_password_instructions: | ||
subject: 'Instrucciones de cambio de contraseña' | ||
unlock_instructions: | ||
subject: 'Instrucciones de desbloqueo' | ||
links: | ||
sign_in: 'Inicia sesión' | ||
sign_up: 'Regístrate' | ||
forgot_password: '¿Olvidaste tu contraseña?' | ||
sign_in_with: "Inicia sesión con %{provider}" | ||
sign_out: "Salir" | ||
buttons: | ||
sign_in: "Acceder" | ||
send_me_reset_password_instructions: Enviar instrucciones para cambiar contraseña |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
es: | ||
# Forms | ||
save: "Guardar" | ||
cancel: "Cancelar" | ||
|
||
# Navigation | ||
my_account: "Mi cuenta" | ||
calendar: "Calendario" | ||
|
||
my_week: "Mi semana" | ||
monday: "Lunes" | ||
tuesday: "Martes" | ||
wednesday: "Miércoles" | ||
thursday: "Jueves" | ||
friday: "Viernes" | ||
saturday: "Sábado" | ||
sunday: "Domingo" | ||
|
||
week_explanation: "Señala en el siguiente cuadro los días y las horas en las que sueles estar disponible para jugar." | ||
notification_explanation: "Cuando alguien cree un partido en esas horas, te llegará un correo para que confirmes si quieres apuntarte." | ||
not_available: "No estoy disponible" | ||
available: "Avísame cuando se creen partidos" | ||
|
||
# Scaffold | ||
helpers: | ||
links: | ||
back: "Atrás" | ||
cancel: "Cancelar" | ||
confirm: "¿Estás seguro?" | ||
edit: "Editar" | ||
new: "Nuevo" | ||
destroy: "Borrar" | ||
titles: | ||
edit: "Editar %{model}" | ||
new: "Crear %{model}" | ||
new_report: "%{model} - crear informe" | ||
new_document: "%{model} - crear documento" | ||
|
||
# Activerecord | ||
activerecord: | ||
models: | ||
user: | ||
one: "Usuario" | ||
other: "Usuarios" | ||
attributes: | ||
user: | ||
email: "Email" | ||
name: "Nombre" | ||
phone: "Teléfono" | ||
|
||
|
||
will_paginate: | ||
previous_label: "← Anterior" | ||
next_label: "Siguiente →" | ||
page_gap: "…" |
Oops, something went wrong.