Skip to content

Instantly share code, notes, and snippets.

@jhjguxin
Created May 30, 2012 06:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhjguxin/2834060 to your computer and use it in GitHub Desktop.
Save jhjguxin/2834060 to your computer and use it in GitHub Desktop.
user.zh-CN.yml(base on devise user model)
zh-CN:
activerecord:
models:
user: "用户"
attributes:
user:
name: "姓氏"
email: "电子邮箱"
encrypted_password: "加密密码"
reset_password_token: "重置密码令牌"
reset_password_sent_at: "重置密码令牌发送"
remember_created_at: "记住创建"
sign_in_count: "登录次数"
current_sign_in_at: "当前登录"
last_sign_in_at: "最近登录"
current_sign_in_ip: "当前登录ip"
confirmation_token: "确认令牌"
confirmation_at: "确认于"
failed_attempts: "失败的尝试"
unlock_token: "解锁令牌"
locked_at: "加锁"
created_at: "创建于"
updated_at: "更新于"
deleted_at: "删除于"
omniauth_type: "开放认证类型"
reuse_token: "重用令牌"
uid: "uid"
login: "帐号"
username: "用户名"
password: "密码"
password_confirmation: "确认密码"
current_password: "当前密码"
create_user: "用户注册"
edit_user: "编辑用户"
remember_me: "记住登录状态"
@jhjguxin
Copy link
Author

and commit the devise.zh-CN.yml file

zh-CN:
  devise:
    confirmations:
      confirmed: 您的帐号已经确认,您现在已登录.
      send_instructions: 几分钟后,您将收到确认帐号的电子邮件.
      send_paranoid_instructions: 如果您的邮箱存在于我们的数据库中,您将收到一封确认账号的邮件.
    failure:
      already_authenticated: 您已经登录.
      inactive: 您还没有激活帐户.
      invalid: 邮箱或密码错误
      invalid_token: 认证码无效.
      locked: 您的帐号已被锁定.
      timeout: 您已登录超时,请重新登录.
      unauthenticated: 继续操作前请注册或者登录.
      unconfirmed: 继续操作前请先确认您的帐号.
    mailer:
      confirmation_instructions:
        subject: 确认信息
      reset_password_instructions:
        subject: 重置密码信息
      unlock_instructions:
        subject: 解锁信息
    omniauth_callbacks:
      failure: 因为%{reason},所以您无法从%{kind}获得授权.
      success: 成功地从%{kind}获得授权.
    passwords:
      send_instructions: 几分钟后,您将收到重置密码的电子邮件.
      send_paranoid_instructions: 如果您的邮箱存在于我们的数据库中,您将收到一封找回密码的邮件.
      updated: 您的密码已修改成功,您现在已登录.
      updated_not_active: 您的密码已修改成功.
    registrations:
      destroyed: 再见!您的帐户已成功注销。我们希望很快可以再见到您.
      signed_up: 欢迎您!您已注册成功.
      signed_up_but_inactive: 谢谢您!然而您的账号还未被激活,在这之前无法登陆。
      signed_up_but_locked: 谢谢您!然而您的账号已被锁定,无法登陆。
      signed_up_but_unconfirmed: 谢谢您!一封确认邮件已经发至您的邮箱,请点击其中的链接激活您的账号。
      update_needs_confirmation: 新的账号信息已成功提交,一封确认邮件已经发至您的邮箱,请点击其中的链接以使您的新E-mail地址生效。
      updated: 帐号资料更新成功.
    sessions:
      signed_in: 登录成功.
      signed_out: 退出成功.
    unlocks:
      send_instructions: 几分钟后,您将收到一封解锁帐号的邮件.
      send_paranoid_instructions: 如果您的邮箱存在于我们的数据库中,您将收到一封解锁账号的邮件.
      unlocked: 您的帐号已成功解锁,您现在已登录.
  errors:
    messages:
      already_confirmed: 已经确认,请重新登录.
      expired: 您已过期,请重新申请
      not_found: 没有找到
      not_locked: 未锁定
      not_saved:
        one: ! '因为1个错误导致此%{resource}保存失败:'
        other: ! '因为%{count}个错误导致此%{resource}保存失败:'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment