okkez-multi_auth 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. data/README +15 -1
  2. data/app/controllers/application_controller.rb +1 -0
  3. data/app/controllers/auth/email_controller.rb +1 -1
  4. data/app/controllers/auth/open_id_controller.rb +3 -3
  5. data/app/controllers/credentials/email_controller.rb +10 -9
  6. data/app/controllers/credentials/open_id_controller.rb +7 -1
  7. data/app/controllers/signup/email_controller.rb +5 -5
  8. data/app/controllers/signup/open_id_controller.rb +3 -1
  9. data/app/models/activation_mailer.rb +6 -6
  10. data/app/models/email_credential.rb +5 -0
  11. data/app/models/open_id_credential.rb +5 -0
  12. data/app/models/session.rb +4 -0
  13. data/app/views/activation_mailer/complete_for_credential.erb +1 -1
  14. data/app/views/activation_mailer/complete_for_notice.erb +1 -1
  15. data/app/views/activation_mailer/complete_for_signup.erb +1 -1
  16. data/app/views/activation_mailer/request_for_credential.erb +5 -5
  17. data/app/views/activation_mailer/request_for_notice.erb +5 -5
  18. data/app/views/activation_mailer/request_for_signup.erb +5 -5
  19. data/app/views/auth/email/index.html.erb +3 -3
  20. data/app/views/auth/index.html.erb +5 -5
  21. data/app/views/auth/logged_in.html.erb +5 -3
  22. data/app/views/auth/logged_out.html.erb +5 -3
  23. data/app/views/auth/open_id/index.html.erb +3 -3
  24. data/app/views/credentials/email/activated.html.erb +4 -1
  25. data/app/views/credentials/email/activation.html.erb +3 -3
  26. data/app/views/credentials/email/created.html.erb +4 -4
  27. data/app/views/credentials/email/delete.html.erb +7 -4
  28. data/app/views/credentials/email/edit_password.html.erb +4 -4
  29. data/app/views/credentials/email/new.html.erb +2 -2
  30. data/app/views/credentials/index.html.erb +16 -16
  31. data/app/views/credentials/open_id/delete.html.erb +6 -3
  32. data/app/views/credentials/open_id/new.html.erb +2 -2
  33. data/app/views/signup/email/_progress.html.erb +14 -14
  34. data/app/views/signup/email/activated.html.erb +4 -4
  35. data/app/views/signup/email/activation.html.erb +8 -8
  36. data/app/views/signup/email/created.html.erb +6 -4
  37. data/app/views/signup/email/index.html.erb +3 -3
  38. data/app/views/signup/email/validated.html.erb +5 -5
  39. data/app/views/signup/index.html.erb +22 -9
  40. data/app/views/signup/open_id/authenticated.html.erb +3 -3
  41. data/app/views/signup/open_id/created.html.erb +3 -3
  42. data/app/views/signup/open_id/index.html.erb +3 -3
  43. data/config/cucumber.yml +7 -0
  44. data/config/database.yml +4 -1
  45. data/config/environment.rb +1 -1
  46. data/config/routes.rb +21 -20
  47. data/db/test.sqlite3 +0 -0
  48. data/lib/multi_auth.rb +5 -0
  49. data/lib/multi_auth/action_controller.rb +32 -1
  50. data/lib/open_id_authentication/result.rb +5 -5
  51. data/locale/ja/LC_MESSAGES/multi_auth.mo +0 -0
  52. data/po/ja/multi_auth.po +639 -0
  53. data/po/multi_auth.pot +637 -0
  54. data/test/functional/auth/open_id_controller_test.rb +1 -1
  55. data/test/functional/auth_controller_test.rb +10 -7
  56. data/test/functional/credentials_controller_test.rb +9 -0
  57. data/test/unit/activation_mailer_test.rb +2 -2
  58. metadata +7 -2
@@ -1,7 +1,7 @@
1
1
 
2
- <%- @title = "サインアップ" -%>
2
+ <%- @title = p_("MultiAuth", "Signup") -%>
3
3
 
4
- <h1>メールアドレスによるサインアップ</h1>
4
+ <h1><%=h p_("MultiAuth", "Signup by email address") %></h1>
5
5
 
6
6
  <%= render(:partial => "progress", :locals => {:step => 1}) %>
7
7
 
@@ -24,7 +24,7 @@
24
24
  </td>
25
25
  </tr>
26
26
  </table>
27
- <div><%= submit_tag("確認画面へ") %></div>
27
+ <div><%= submit_tag(p_("MultiAuth", "Confirm")) %></div>
28
28
  <%- } -%>
29
29
 
30
30
  <%- unless production? -%>
@@ -1,21 +1,21 @@
1
1
 
2
- <%- @title = "サインアップ" -%>
2
+ <%- @title = p_("MultiAuth", "Signup") -%>
3
3
 
4
- <h1>登録確認</h1>
4
+ <h1><%=h p_("MultiAuth", "Registration confirmation") %></h1>
5
5
 
6
6
  <%= render(:partial => "progress", :locals => {:step => 2}) %>
7
7
 
8
8
  <table>
9
9
  <tr>
10
- <th>メールアドレス</th>
10
+ <th><%=h s_("EmailCredential|Email") %></th>
11
11
  <td><%=h @signup_form.email %></td>
12
12
  </tr>
13
13
  <tr>
14
- <th>パスワード</th>
14
+ <th><%=h s_("EmailCredential|Password") %></th>
15
15
  <td><%=h @signup_form.masked_password %></td>
16
16
  </tr>
17
17
  </table>
18
18
 
19
19
  <%- form_tag(:action => "create") { -%>
20
- <div><%= submit_tag("登録") %></div>
20
+ <div><%= submit_tag(p_("MultiAuth", "Register")) %></div>
21
21
  <%- } -%>
@@ -1,15 +1,21 @@
1
1
 
2
- <%- @title = "アカウント登録" -%>
2
+ <%- @title = p_("MultiAuth", "Register your account") -%>
3
3
  <%- @enable_side_column = false -%>
4
4
 
5
- <h1>さあ、<%= MultiAuth.application_name %>をはじめよう</h1>
5
+ <h1><%=h p_("MultiAuth", "Let's start %{app}!" % { :app => MultiAuth.application_name } ) %></h1>
6
6
 
7
- <div><%= MultiAuth.application_name %>のアカウント登録はとても簡単!</div>
7
+ <div><%=h p_("MultiAuth", "Registration is very easy.") %></div>
8
8
 
9
9
  <div>
10
10
  <div style="float: left; width: 45%; margin-right: 10px;">
11
- <h2>OpenIDで登録!</h2>
12
- <div>登録の流れ: OpenIDを入力 → OpenID認証 → 確認 → 登録完了!</div>
11
+ <h2><%=h p_("MultiAuth", "Register by OpenID!") %></h2>
12
+ <div>
13
+ <%- steps = [p_("MultiAuth", "Input OpenID"),
14
+ p_("MultiAuth", "OpenID Authentication"),
15
+ p_("MultiAuth", "Confirmation"),
16
+ p_("MultiAuth", "Registration completed!")] -%>
17
+ <%=h p_("MultiAuth", "Flow") %>: <%=h steps.join(" -> ") %>
18
+ </div>
13
19
  <%- form_tag(:controller => "signup/open_id", :action => "authenticate") { -%>
14
20
  <table>
15
21
  <tr>
@@ -19,12 +25,19 @@
19
25
  </td>
20
26
  </tr>
21
27
  </table>
22
- <div><%= submit_tag("次へ") %></div>
28
+ <div><%= submit_tag(p_("MultiAuth", "Next")) %></div>
23
29
  <%- } -%>
24
30
  </div>
25
31
  <div style="float: left; width: 45%;">
26
- <h2>メールアドレスで登録!</h2>
27
- <div>登録の流れ: メールアドレスとパスワードを入力 → 確認 → 確認メール受信 → 確認 → 登録完了!</div>
32
+ <h2><%=h p_("MultiAuth", "Register by email address") %></h2>
33
+ <div>
34
+ <%- steps = [p_("MultiAuth", "Input email address and password"),
35
+ p_("MultiAuth", "Confirmation"),
36
+ p_("MultiAuth", "Recieve confirmation mail"),
37
+ p_("MultiAuth", "Confirmation"),
38
+ p_("MultiAuth", "Registration completed!")] -%>
39
+ <%=h p_("MultiAuth", "Flow") %>: <%=h steps.join(" -> ") %>
40
+ </div>
28
41
  <%- form_for(:signup_form, @signup_form, :url => {:controller => "signup/email", :action => "validate"}) { |f| -%>
29
42
  <table>
30
43
  <tr>
@@ -44,7 +57,7 @@
44
57
  </td>
45
58
  </tr>
46
59
  </table>
47
- <div><%= submit_tag("確認画面へ") %></div>
60
+ <div><%= submit_tag(p_("MultiAuth", "Confirm")) %></div>
48
61
  <%- } -%>
49
62
  </div>
50
63
  <div style="clear: left;"></div>
@@ -1,7 +1,7 @@
1
1
 
2
- <%- @title = "サインアップ" -%>
2
+ <%- @title = p_("MultiAuth", "Signup") -%>
3
3
 
4
- <h1>認証完了</h1>
4
+ <h1><%=h p_("MultiAuth", "Authentication completed") %></h1>
5
5
 
6
6
  <table>
7
7
  <tr>
@@ -11,5 +11,5 @@
11
11
  </table>
12
12
 
13
13
  <%- form_tag(:action => "create") { -%>
14
- <div><%= submit_tag("登録") %></div>
14
+ <div><%= submit_tag(p_("MultiAuth", "Register")) %></div>
15
15
  <%- } -%>
@@ -1,6 +1,6 @@
1
1
 
2
- <%- @title = "サインアップ" -%>
2
+ <%- @title = p_("MultiAuth", "Signup") -%>
3
3
 
4
- <h1>登録完了</h1>
4
+ <h1><%=h p_("MultiAuth", "Registration completed") %></h1>
5
5
 
6
- <p><%= link_to('ログイン', :controller => "auth/open_id") %></p>
6
+ <p><%= link_to(h(p_("MultiAuth", "Login")), :controller => "auth/open_id") %></p>
@@ -1,7 +1,7 @@
1
1
 
2
- <%- @title = "サインアップ" -%>
2
+ <%- @title = p_("MultiAuth", "Signup") -%>
3
3
 
4
- <h1>サインアップ</h1>
4
+ <h1><%=h @title %></h1>
5
5
 
6
6
  <%- form_tag(:action => "authenticate") { -%>
7
7
  <table>
@@ -12,5 +12,5 @@
12
12
  </td>
13
13
  </tr>
14
14
  </table>
15
- <div><%= submit_tag("次へ") %></div>
15
+ <div><%= submit_tag(p_("MultiAuth", "Next")) %></div>
16
16
  <%- } -%>
@@ -0,0 +1,7 @@
1
+ <%
2
+ rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
3
+ rerun_opts = rerun.to_s.strip.empty? ? "--format progress features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
4
+ std_opts = "#{rerun_opts} --format rerun --out rerun.txt --strict --tags ~@wip"
5
+ %>
6
+ default: <%= std_opts %>
7
+ wip: --tags @wip:3 --wip features
data/config/database.yml CHANGED
@@ -9,7 +9,7 @@ development:
9
9
  # Warning: The database defined as "test" will be erased and
10
10
  # re-generated from your development database when you run "rake".
11
11
  # Do not set this db to the same as development or production.
12
- test:
12
+ test: &TEST
13
13
  adapter: sqlite3
14
14
  database: db/test.sqlite3
15
15
  pool: 5
@@ -20,3 +20,6 @@ production:
20
20
  database: db/production.sqlite3
21
21
  pool: 5
22
22
  timeout: 5000
23
+
24
+ cucumber:
25
+ <<: *TEST
@@ -2,7 +2,7 @@
2
2
  # Be sure to restart your server when you modify this file
3
3
 
4
4
  # Specifies gem version of Rails to use when vendor/rails is not present
5
- RAILS_GEM_VERSION = '2.3.4' unless defined? RAILS_GEM_VERSION
5
+ RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION
6
6
 
7
7
  # Bootstrap the Rails environment, frameworks, and default configuration
8
8
  require File.join(File.dirname(__FILE__), 'boot')
data/config/routes.rb CHANGED
@@ -5,25 +5,32 @@ ActionController::Routing::Routes.draw do |map|
5
5
  TokenPattern = /[0-9a-f]+/
6
6
 
7
7
  if Rails.root.to_s == File.expand_path(File.join(File.dirname(__FILE__), '..'))
8
- map.root :controller => "home", :action => "index"
8
+ map.root :controller => "home", :conditions => { :method => :get }
9
9
  end
10
10
 
11
- map.connect "signup", :controller => "signup", :action => "index"
11
+ map.signup "signup", :controller => "signup", :conditions => { :method => :get }
12
12
 
13
- map.with_options :controller => "signup/email" do |email|
14
- email.connect "signup/email/:action", :action => /(index|validate|validated|create|created|activate|activated)/
15
- email.connect "signup/email/activation/:activation_token", :action => "activation", :activation_token => TokenPattern
13
+ map.namespace :signup do |signup|
14
+ signup.with_options :controller => "email" do |email|
15
+ email.connect "email/:action", :action => /(index|validate|validated|create|created|activate|activated)/
16
+ email.connect "email/activation/:activation_token", :action => "activation", :activation_token => TokenPattern
17
+ end
18
+ signup.with_options :controller => "open_id" do |open_id|
19
+ open_id.connect "open_id/:action", :action => /(index|authenticate|authenticated|create|created)/
20
+ end
16
21
  end
17
22
 
18
- map.with_options :controller => "signup/open_id" do |open_id|
19
- open_id.connect "signup/open_id/:action", :action => /(index|authenticate|authenticated|create|created)/
23
+ map.with_options :controller => "auth" do |auth|
24
+ auth.auth "auth", :action => "index", :conditions => { :method => :get }
25
+ auth.logout "auth/logout", :action => "logout", :conditions => { :method => :post }
26
+ auth.connect "auth/:action", :action => /(logged_in|logged_out)/, :conditions => { :method => :get }
27
+ end
28
+ map.namespace :auth do |auth|
29
+ auth.connect "email/:action", :controller => "email", :action => /(index|login)/
30
+ auth.connect "open_id/:action", :controller => "open_id", :action => /(index|login)/
20
31
  end
21
32
 
22
- map.connect "auth/:action", :controller => "auth", :action => /(logged_in|logout|logged_out)/
23
- map.connect "auth/email/:action", :controller => "auth/email", :action => /(index|login)/
24
- map.connect "auth/open_id/:action", :controller => "auth/open_id", :action => /(index|login)/
25
-
26
- map.connect "credentials/:action", :controller => "credentials", :action => /(index)/
33
+ map.credentials "credentials", :controller => "credentials", :conditions => { :method => :get }
27
34
 
28
35
  map.with_options :controller => "credentials/email" do |email|
29
36
  email.connect "credentials/email/:action", :action => /(new|create)/
@@ -36,16 +43,10 @@ ActionController::Routing::Routes.draw do |map|
36
43
  open_id.connect "credential/open_id/:open_id_credential_id/:action", :action => /(delete|destroy)/, :open_id_credential_id => IdPattern
37
44
  end
38
45
 
39
- map.with_options :controller => "emails" do |emails|
40
- emails.connect "emails/:action", :action => /(new|create)/
41
- emails.connect "email/:email_address_id/:action", :action => /(created|delete|destroy)/, :email_address_id => IdPattern
42
- emails.connect "email/token/:activation_token/:action", :action => /(activation|activate|activated)/, :activation_token => TokenPattern
43
- end
44
-
45
46
  # MEMO: 下記2行のデフォルトルールをコメントアウトしてrake test:functionalsを
46
47
  # 実行することにより、リンクチェックを行うことができる
47
48
  # NOTE: この二行を有効にするとアプリケーション側の config/routes.rb で定義した
48
49
  # ルートが有効にならない
49
- map.connect ":controller/:action/:id"
50
- map.connect ":controller/:action/:id.:format"
50
+ # map.connect ":controller/:action/:id"
51
+ # map.connect ":controller/:action/:id.:format"
51
52
  end
data/db/test.sqlite3 CHANGED
Binary file
data/lib/multi_auth.rb CHANGED
@@ -6,6 +6,7 @@ module MultiAuth
6
6
  attr_accessor_with_default :application_name, 'app'
7
7
  attr_accessor_with_default :from_address, 'noreply@example.com'
8
8
  attr_accessor_with_default :user_model, 'User'
9
+ attr_accessor_with_default :session_times_out_in, 1.hour
9
10
  def setup
10
11
  yield self
11
12
  end
@@ -14,6 +15,10 @@ module MultiAuth
14
15
  def self.user_model_class
15
16
  user_model.constantize
16
17
  end
18
+
19
+ def self.root
20
+ Pathname.new(File.join(File.dirname(__FILE__), '../'))
21
+ end
17
22
  end
18
23
 
19
24
  require 'multi_auth/action_controller'
@@ -11,6 +11,14 @@ module MultiAuth
11
11
  end
12
12
  end
13
13
  module InstanceMethods
14
+
15
+ def self.included(base)
16
+ base.class_eval{
17
+ init_gettext("multi_auth",
18
+ :locale_path => MultiAuth.root + 'locale')
19
+ }
20
+ end
21
+
14
22
  private
15
23
 
16
24
  def authentication(user_id = session[:user_id])
@@ -19,15 +27,38 @@ module MultiAuth
19
27
  end
20
28
 
21
29
  def authentication_required
30
+ if session[:expires_at]
31
+ if session_expired?
32
+ logger.info "[MultiAuth] Session has expired, resetting session"
33
+ reset_login_session
34
+ set_error(p_("MultiAuth", "Session has expired. Please login again."))
35
+ return false
36
+ end
37
+ update_session_expiry
38
+ end
39
+
22
40
  if @login_user
23
41
  return true
24
42
  else
25
- set_error("ログインが必要です。")
43
+ set_error(p_("MultiAuth", "Login required."))
26
44
  redirect_to(root_path)
27
45
  return false
28
46
  end
29
47
  end
30
48
 
49
+ def update_session_expiry
50
+ return unless MultiAuth.session_times_out_in
51
+ session[:expires_at] = Time.now + MultiAuth.session_times_out_in
52
+ end
53
+
54
+ def session_expired?
55
+ Time.now > session[:expires_at]
56
+ end
57
+
58
+ def reset_login_session
59
+ session[:user_id] = nil
60
+ end
61
+
31
62
  def set_notice(message)
32
63
  flash[:notice] = @flash_notice = message
33
64
  flash[:error] = @flash_error = nil
@@ -2,11 +2,11 @@
2
2
  module OpenIdAuthentication
3
3
  class Result
4
4
  ERROR_MESSAGES.update({
5
- :missing => "OpenID サーバが見つかりませんでした。",
6
- :invalid => "OpenID が不正です。",
7
- :canceled => "OpenID の検証がキャンセルされました。",
8
- :failed => "OpenID の検証が失敗しました。",
9
- :setup_needed => "OpenID の検証には準備が必要です。",
5
+ :missing => p_("OpenIdAuthentication", "Sorry, the OpenID server couldn't be found"),
6
+ :invalid => p_("OpenIdAuthentication", "Sorry, but this does not appear to be a valid OpenID"),
7
+ :canceled => p_("OpenIdAuthentication", "OpenID verification was canceled"),
8
+ :failed => p_("OpenIdAuthentication", "OpenID verification failed"),
9
+ :setup_needed => p_("OpenIdAuthentication", "OpenID verification needs setup"),
10
10
  })
11
11
  end
12
12
  end
Binary file
@@ -0,0 +1,639 @@
1
+ # Japanese translations for PACKAGE package
2
+ # PACKAGE パッケージに対する英訳.
3
+ # Copyright (C) 2009 THE PACKAGE'S COPYRIGHT HOLDER
4
+ # This file is distributed under the same license as the PACKAGE package.
5
+ # okkez <okkez000@gmail.com>, 2009.
6
+ #
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: multi_auth 1.0.0\n"
10
+ "POT-Creation-Date: 2010-01-06 15:47+0900\n"
11
+ "PO-Revision-Date: 2010-01-06 16:00+0900\n"
12
+ "Last-Translator: okkez <okkez000@gmail.com>\n"
13
+ "Language-Team: Japanese\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=UTF-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "Plural-Forms: nplurals=1; plural=0;\n"
18
+
19
+ #: app/controllers/credentials/email_controller.rb:41
20
+ msgctxt "MultiAuth"
21
+ msgid "Email authentication credential was successfully added."
22
+ msgstr "メール認証情報を追加しました。"
23
+
24
+ #: app/controllers/credentials/email_controller.rb:46
25
+ #: app/controllers/credentials/email_controller.rb:73
26
+ #: app/controllers/credentials/open_id_controller.rb:22
27
+ #: app/controllers/signup/email_controller.rb:27
28
+ #: app/controllers/signup/email_controller.rb:39
29
+ #: app/controllers/signup/email_controller.rb:67
30
+ msgctxt "MultiAuth"
31
+ msgid "Please confirm your input."
32
+ msgstr "入力内容を確認してください。"
33
+
34
+ #: app/controllers/credentials/email_controller.rb:68
35
+ msgctxt "MultiAuth"
36
+ msgid "Password was changed."
37
+ msgstr "パスワードを変更しました。"
38
+
39
+ #: app/controllers/credentials/email_controller.rb:87
40
+ msgctxt "MultiAuth"
41
+ msgid "Email authentication credential was successfully deleted."
42
+ msgstr "メール認証情報を削除しました。"
43
+
44
+ #: app/controllers/credentials/email_controller.rb:121
45
+ #: app/controllers/credentials/email_controller.rb:131
46
+ msgctxt "MultiAuth"
47
+ msgid "It is invalid email authentication credential."
48
+ msgstr "メール認証情報が正しくありません。"
49
+
50
+ #: app/controllers/credentials/email_controller.rb:142
51
+ msgctxt "MultiAuth"
52
+ msgid "It is invalid activation token."
53
+ msgstr "無効なアクティベーションキーです。"
54
+
55
+ #: app/controllers/credentials/email_controller.rb:150
56
+ msgctxt "MultiAuth"
57
+ msgid "This email authentication credential has been already activated."
58
+ msgstr "このメール認証情報は既に有効になっています。"
59
+
60
+ #: app/controllers/credentials/open_id_controller.rb:37
61
+ msgctxt "MultiAuth"
62
+ msgid "OpenID authentication credential was successfully added."
63
+ msgstr "OpenID 認証情報を追加しました。"
64
+
65
+ #: app/controllers/credentials/open_id_controller.rb:41
66
+ msgctxt "MultiAuth"
67
+ msgid "This OpenID has been already registered."
68
+ msgstr "この OpenID は既に本登録されています。"
69
+
70
+ #: app/controllers/credentials/open_id_controller.rb:61
71
+ msgctxt "MultiAuth"
72
+ msgid "OpenID authentication credential was successfully deleted."
73
+ msgstr "OpenID 認証情報を削除しました。"
74
+
75
+ #: app/controllers/credentials/open_id_controller.rb:74
76
+ #: app/controllers/credentials/open_id_controller.rb:85
77
+ msgctxt "MultiAuth"
78
+ msgid "It is invalid OpenID authentication credential."
79
+ msgstr "OpenID 認証情報が正しくありません。"
80
+
81
+ #: app/controllers/auth/email_controller.rb:30
82
+ msgctxt "MultiAuth"
83
+ msgid "The email address or the password is wrong."
84
+ msgstr "メールアドレスかパスワードが間違っています。"
85
+
86
+ #: app/controllers/auth/open_id_controller.rb:24
87
+ #: app/views/auth/logged_in.html.erb:2
88
+ msgctxt "MultiAuth"
89
+ msgid "Logged in successfully."
90
+ msgstr "ログインしました。"
91
+
92
+ #: app/controllers/auth/open_id_controller.rb:27
93
+ msgctxt "MultiAuth"
94
+ msgid "This OpenID has not been registered yet."
95
+ msgstr "この OpenID はまだ登録されていません。"
96
+
97
+ #: app/controllers/signup/email_controller.rb:93
98
+ msgctxt "MultiAuth"
99
+ msgid "It is an invalid activation key."
100
+ msgstr "無効なアクティベーションキーです。"
101
+
102
+ #: app/controllers/signup/email_controller.rb:99
103
+ msgctxt "MultiAuth"
104
+ msgid "This email address has been already registered."
105
+ msgstr "このメールアドレスは既に本登録されています。"
106
+
107
+ #: app/controllers/signup/open_id_controller.rb:25
108
+ msgctxt "MultiAuth"
109
+ msgid ""
110
+ "Because specified OpenID has already been registered, it is not possible to "
111
+ "use it. "
112
+ msgstr "指定された OpenID は既に登録されているため、利用できません。"
113
+
114
+ #: app/models/email_credential_edit_form.rb:21
115
+ msgid "EmailCredentialEditForm|Email"
116
+ msgstr "メールアドレス"
117
+
118
+ #: app/models/email_credential_edit_form.rb:22
119
+ msgid "EmailCredentialEditForm|Password"
120
+ msgstr "パスワード"
121
+
122
+ #: app/models/email_credential_edit_form.rb:23
123
+ msgid "EmailCredentialEditForm|Password confirmation"
124
+ msgstr "パスワード (確認)"
125
+
126
+ #: app/models/open_id_login_form.rb:13
127
+ msgid "OpenIdLoginForm|Openid url"
128
+ msgstr "OpenID URL"
129
+
130
+ #: app/models/activation_mailer.rb:17
131
+ msgctxt "MultiAuth"
132
+ msgid "User registration"
133
+ msgstr "ユーザ登録"
134
+
135
+ #: app/models/activation_mailer.rb:30
136
+ msgctxt "MultiAuth"
137
+ msgid "User registration completed"
138
+ msgstr "ユーザ登録完了"
139
+
140
+ #: app/models/activation_mailer.rb:44
141
+ msgctxt "MultiAuth"
142
+ msgid "Email address registration for authentication"
143
+ msgstr "認証用メールアドレス登録"
144
+
145
+ #: app/models/activation_mailer.rb:57
146
+ msgctxt "MultiAuth"
147
+ msgid "Email address registration for authentication completed"
148
+ msgstr "認証用メールアドレス登録完了"
149
+
150
+ #: app/models/activation_mailer.rb:71
151
+ msgctxt "MultiAuth"
152
+ msgid "Email address registration for notification"
153
+ msgstr "通知先メールアドレス登録"
154
+
155
+ #: app/models/activation_mailer.rb:84
156
+ msgctxt "MultiAuth"
157
+ msgid "Email address registration for notification completed"
158
+ msgstr "通知先メールアドレス登録完了"
159
+
160
+ #: app/models/email_credential.rb:-
161
+ msgid "email credential"
162
+ msgstr ""
163
+
164
+ #: app/models/email_credential.rb:-
165
+ msgid "EmailCredential|Activation token"
166
+ msgstr ""
167
+
168
+ #: app/models/email_credential.rb:- app/views/credentials/index.html.erb:50
169
+ #: app/views/credentials/email/delete.html.erb:13
170
+ #: app/views/credentials/email/activation.html.erb:8
171
+ #: app/views/signup/email/validated.html.erb:10
172
+ #: app/views/signup/email/activation.html.erb:16
173
+ msgid "EmailCredential|Email"
174
+ msgstr "メールアドレス"
175
+
176
+ #: app/models/email_credential.rb:-
177
+ msgid "EmailCredential|Activated at"
178
+ msgstr "登録日時"
179
+
180
+ #: app/models/email_credential.rb:- app/views/credentials/index.html.erb:49
181
+ msgid "EmailCredential|Loggedin at"
182
+ msgstr "最終ログイン日時"
183
+
184
+ #: app/models/email_credential.rb:22 app/views/credentials/index.html.erb:48
185
+ msgid "EmailCredential|Activated on"
186
+ msgstr "登録日時"
187
+
188
+ #: app/models/open_id_credential.rb:-
189
+ msgid "open id credential"
190
+ msgstr ""
191
+
192
+ #: app/models/open_id_credential.rb:-
193
+ msgid "OpenIdCredential|Identity url"
194
+ msgstr ""
195
+
196
+ #: app/models/open_id_credential.rb:- app/views/credentials/index.html.erb:10
197
+ msgid "OpenIdCredential|Loggedin at"
198
+ msgstr "ログイン日時"
199
+
200
+ #: app/models/open_id_credential.rb:19 app/views/credentials/index.html.erb:9
201
+ msgid "OpenIdCredential|Activated on"
202
+ msgstr "登録日時"
203
+
204
+ #: app/models/email_login_form.rb:15
205
+ msgid "EmailLoginForm|Email"
206
+ msgstr "メールアドレス"
207
+
208
+ #: app/models/email_login_form.rb:16
209
+ msgid "EmailLoginForm|Password"
210
+ msgstr "パスワード"
211
+
212
+ #: app/models/email_password_edit_form.rb:15
213
+ msgid "EmailPasswordEditForm|Password"
214
+ msgstr "パスワード"
215
+
216
+ #: app/models/email_password_edit_form.rb:16
217
+ msgid "EmailPasswordEditForm|Password confirmation"
218
+ msgstr "パスワード (確認)"
219
+
220
+ #: app/views/credentials/index.html.erb:2
221
+ msgctxt "MultiAuth"
222
+ msgid "Login setting"
223
+ msgstr "ログイン設定"
224
+
225
+ #: app/views/credentials/index.html.erb:4
226
+ msgctxt "MultiAuth"
227
+ msgid "OpenID authentication"
228
+ msgstr "OpenID 認証"
229
+
230
+ #: app/views/credentials/index.html.erb:19
231
+ msgctxt "MultiAuth"
232
+ msgid "Add OpenID authentication"
233
+ msgstr "OpenID 認証情報を追加"
234
+
235
+ #: app/views/credentials/index.html.erb:27
236
+ msgctxt "MultiAuth"
237
+ msgid "There are no OpenID authentication."
238
+ msgstr "OpenID 認証情報が登録されていません。"
239
+
240
+ #: app/views/credentials/index.html.erb:36
241
+ #: app/views/credentials/index.html.erb:81
242
+ #: app/views/credentials/open_id/delete.html.erb:19
243
+ #: app/views/credentials/email/delete.html.erb:19
244
+ msgctxt "MultiAuth"
245
+ msgid "Delete"
246
+ msgstr "削除"
247
+
248
+ #: app/views/credentials/index.html.erb:43
249
+ msgctxt "MultiAuth"
250
+ msgid "Email address authentication"
251
+ msgstr "メールアドレス認証情報"
252
+
253
+ #: app/views/credentials/index.html.erb:58
254
+ msgctxt "MultiAuth"
255
+ msgid "Add email address authentication"
256
+ msgstr "メールアドレス認証情報を追加"
257
+
258
+ #: app/views/credentials/index.html.erb:66
259
+ msgctxt "MultiAuth"
260
+ msgid "There are no email address authentication."
261
+ msgstr "メールアドレス認証情報が登録されていません。"
262
+
263
+ #: app/views/credentials/index.html.erb:77
264
+ msgctxt "MultiAuth"
265
+ msgid "Waiting for activation"
266
+ msgstr "アクティベーション待ち"
267
+
268
+ #: app/views/credentials/index.html.erb:80
269
+ #: app/views/credentials/email/edit_password.html.erb:2
270
+ msgctxt "MultiAuth"
271
+ msgid "Update password"
272
+ msgstr "パスワード変更"
273
+
274
+ #: app/views/credentials/open_id/delete.html.erb:2
275
+ #: app/views/credentials/open_id/delete.html.erb:7
276
+ msgctxt "MultiAuth"
277
+ msgid "Delete OpenID authentication credential."
278
+ msgstr "OpenID 認証情報を削除する。"
279
+
280
+ #: app/views/credentials/open_id/delete.html.erb:8
281
+ #: app/views/credentials/email/delete.html.erb:8
282
+ msgctxt "MultiAuth"
283
+ msgid "Are you sure?"
284
+ msgstr "よろしいですか?"
285
+
286
+ #: app/views/credentials/open_id/new.html.erb:2
287
+ msgctxt "MultiAuth"
288
+ msgid "Add OpenID authentication credential"
289
+ msgstr "OpenID 認証情報を追加"
290
+
291
+ #: app/views/credentials/open_id/new.html.erb:16
292
+ #: app/views/credentials/email/new.html.erb:25
293
+ msgctxt "MultiAuth"
294
+ msgid "Add"
295
+ msgstr "追加"
296
+
297
+ #: app/views/credentials/email/edit_password.html.erb:21
298
+ msgctxt "MultiAuth"
299
+ msgid "Update"
300
+ msgstr "更新"
301
+
302
+ #: app/views/credentials/email/activated.html.erb:2
303
+ #: app/views/signup/open_id/created.html.erb:4
304
+ #: app/views/signup/email/_progress.html.erb:13
305
+ #: app/views/signup/email/activated.html.erb:4
306
+ #: app/views/signup/email/activated.html.erb:8
307
+ msgctxt "MultiAuth"
308
+ msgid "Registration completed"
309
+ msgstr "登録完了"
310
+
311
+ #: app/views/credentials/email/activated.html.erb:6
312
+ msgctxt "MultiAuth"
313
+ msgid "Top"
314
+ msgstr "トップ"
315
+
316
+ #: app/views/credentials/email/delete.html.erb:2
317
+ #: app/views/credentials/email/delete.html.erb:7
318
+ msgctxt "MultiAuth"
319
+ msgid "Delete email authentication credential."
320
+ msgstr "メール認証情報を削除する。"
321
+
322
+ #: app/views/credentials/email/new.html.erb:2
323
+ msgctxt "MultiAuth"
324
+ msgid "Add email authentication credential"
325
+ msgstr "メール認証情報を追加"
326
+
327
+ #: app/views/credentials/email/created.html.erb:2
328
+ msgctxt "MultiAuth"
329
+ msgid "Pre-registeration completed"
330
+ msgstr "仮登録完了"
331
+
332
+ #: app/views/credentials/email/created.html.erb:6
333
+ msgctxt "MultiAuth"
334
+ msgid ""
335
+ "System sent a mail to email address you specified. Please access the URL "
336
+ "described in the mail. And complete registration."
337
+ msgstr ""
338
+ "指定されたメールアドレスにメールを送信しました。\n"
339
+ "メールに記載してある URL にアクセスして登録を完了してください。"
340
+
341
+ #: app/views/credentials/email/created.html.erb:7
342
+ msgctxt "MultiAuth"
343
+ msgid "Back"
344
+ msgstr "戻る"
345
+
346
+ #: app/views/credentials/email/activation.html.erb:2
347
+ msgctxt "MultiAuth"
348
+ msgid "Activation"
349
+ msgstr "アクティベーション"
350
+
351
+ #: app/views/credentials/email/activation.html.erb:14
352
+ msgctxt "MultiAuth"
353
+ msgid "Activate"
354
+ msgstr "アクティベーションする"
355
+
356
+ #: app/views/auth/logged_out.html.erb:2
357
+ msgctxt "MultiAuth"
358
+ msgid "You have been logged out."
359
+ msgstr "ログアウトしました。"
360
+
361
+ #: app/views/auth/logged_out.html.erb:21 app/views/auth/logged_in.html.erb:21
362
+ msgctxt "MultiAuth"
363
+ msgid "Please click %{link} when the page doesn't change."
364
+ msgstr "ページが切り替わらない場合は %{link} をクリックしてください。"
365
+
366
+ #: app/views/auth/index.html.erb:1 app/views/auth/index.html.erb:16
367
+ #: app/views/auth/index.html.erb:39 app/views/auth/open_id/index.html.erb:2
368
+ #: app/views/auth/open_id/index.html.erb:17
369
+ #: app/views/auth/email/index.html.erb:2
370
+ #: app/views/auth/email/index.html.erb:64
371
+ #: app/views/auth/email/index.html.erb:82
372
+ #: app/views/signup/open_id/created.html.erb:6
373
+ #: app/views/signup/email/activated.html.erb:9
374
+ msgctxt "MultiAuth"
375
+ msgid "Login"
376
+ msgstr "ログイン"
377
+
378
+ #: app/views/auth/index.html.erb:5
379
+ msgctxt "MultiAuth"
380
+ msgid "By OpenID"
381
+ msgstr "OpenID によるログイン"
382
+
383
+ #: app/views/auth/index.html.erb:21
384
+ msgctxt "MultiAuth"
385
+ msgid "By email address"
386
+ msgstr "メールアドレスによるログイン"
387
+
388
+ #: app/views/activation_mailer/request_for_credential.erb:1
389
+ msgctxt "MultiAuth"
390
+ msgid "Email address for authentication will be registered."
391
+ msgstr "認証用メールアドレスを登録します。"
392
+
393
+ #: app/views/activation_mailer/request_for_credential.erb:2
394
+ #: app/views/activation_mailer/request_for_signup.erb:2
395
+ #: app/views/activation_mailer/request_for_notice.erb:2
396
+ msgctxt "MultiAuth"
397
+ msgid "Registration is completed by accessing following URL."
398
+ msgstr "以下の URL にアクセスすると登録は完了します。"
399
+
400
+ #: app/views/activation_mailer/request_for_credential.erb:8
401
+ #: app/views/activation_mailer/request_for_signup.erb:8
402
+ #: app/views/activation_mailer/request_for_notice.erb:8
403
+ msgctxt "MultiAuth"
404
+ msgid "- For access with cellular phone etc."
405
+ msgstr "※ 携帯電話等でのアクセスに関して"
406
+
407
+ #: app/views/activation_mailer/request_for_credential.erb:9
408
+ #: app/views/activation_mailer/request_for_signup.erb:9
409
+ #: app/views/activation_mailer/request_for_notice.erb:9
410
+ msgctxt "MultiAuth"
411
+ msgid ""
412
+ "It is not possible to register from the cellular phone etc. that do not "
413
+ "correspond to Cookie now."
414
+ msgstr "現時点では、Cookieに対応していない携帯電話等からは登録を行うことができません。"
415
+
416
+ #: app/views/activation_mailer/request_for_credential.erb:10
417
+ #: app/views/activation_mailer/request_for_signup.erb:10
418
+ #: app/views/activation_mailer/request_for_notice.erb:10
419
+ msgctxt "MultiAuth"
420
+ msgid ""
421
+ "Please register after forwarding this mail to PC etc. though it is time."
422
+ msgstr "お手数ではございますが、本メールをPC等に転送した上で、登録をお願いいたします。"
423
+
424
+ #: app/views/activation_mailer/request_for_signup.erb:1
425
+ msgctxt "MultiAuth"
426
+ msgid "Thank you for the user registration to %{app}."
427
+ msgstr "%{app} へのユーザ登録、ありがとうございます。"
428
+
429
+ #: app/views/activation_mailer/complete_for_notice.erb:1
430
+ msgctxt "MultiAuth"
431
+ msgid "The email address registration was completed."
432
+ msgstr "メールアドレスの登録が完了しました。"
433
+
434
+ #: app/views/activation_mailer/request_for_notice.erb:1
435
+ msgctxt "MultiAuth"
436
+ msgid "Email address for notification will be registered."
437
+ msgstr "通知用メールアドレスを登録します。"
438
+
439
+ #: app/views/activation_mailer/complete_for_credential.erb:1
440
+ msgctxt "MultiAuth"
441
+ msgid "The registration of the email address authentication was completed."
442
+ msgstr "メールアドレス認証の登録は完了しました。"
443
+
444
+ #: app/views/activation_mailer/complete_for_signup.erb:1
445
+ msgctxt "MultiAuth"
446
+ msgid "The user registration was completed."
447
+ msgstr "ユーザ登録が完了しました。"
448
+
449
+ #: app/views/signup/index.html.erb:2
450
+ msgctxt "MultiAuth"
451
+ msgid "Register your account"
452
+ msgstr "アカウント登録"
453
+
454
+ #: app/views/signup/index.html.erb:5
455
+ msgctxt "MultiAuth"
456
+ msgid "Let's start %{app}!"
457
+ msgstr "さあ、 %{app} をはじめよう!"
458
+
459
+ #: app/views/signup/index.html.erb:7
460
+ msgctxt "MultiAuth"
461
+ msgid "Registration is very easy."
462
+ msgstr "アカウント登録はとても簡単"
463
+
464
+ #: app/views/signup/index.html.erb:11
465
+ msgctxt "MultiAuth"
466
+ msgid "Register by OpenID!"
467
+ msgstr "OpenID による登録"
468
+
469
+ #: app/views/signup/index.html.erb:13
470
+ msgctxt "MultiAuth"
471
+ msgid "Input OpenID"
472
+ msgstr "OpenID を入力"
473
+
474
+ #: app/views/signup/index.html.erb:14
475
+ msgctxt "MultiAuth"
476
+ msgid "OpenID Authentication"
477
+ msgstr "OpenID 認証"
478
+
479
+ #: app/views/signup/index.html.erb:15 app/views/signup/index.html.erb:35
480
+ #: app/views/signup/index.html.erb:37
481
+ msgctxt "MultiAuth"
482
+ msgid "Confirmation"
483
+ msgstr "確認"
484
+
485
+ #: app/views/signup/index.html.erb:16 app/views/signup/index.html.erb:38
486
+ msgctxt "MultiAuth"
487
+ msgid "Registration completed!"
488
+ msgstr "登録完了"
489
+
490
+ #: app/views/signup/index.html.erb:17 app/views/signup/index.html.erb:39
491
+ msgctxt "MultiAuth"
492
+ msgid "Flow"
493
+ msgstr "登録の流れ"
494
+
495
+ #: app/views/signup/index.html.erb:28
496
+ #: app/views/signup/open_id/index.html.erb:15
497
+ msgctxt "MultiAuth"
498
+ msgid "Next"
499
+ msgstr "次へ"
500
+
501
+ #: app/views/signup/index.html.erb:32
502
+ msgctxt "MultiAuth"
503
+ msgid "Register by email address"
504
+ msgstr "メールアドレスによる登録"
505
+
506
+ #: app/views/signup/index.html.erb:34
507
+ msgctxt "MultiAuth"
508
+ msgid "Input email address and password"
509
+ msgstr "メールアドレスとパスワードを入力"
510
+
511
+ #: app/views/signup/index.html.erb:36
512
+ msgctxt "MultiAuth"
513
+ msgid "Recieve confirmation mail"
514
+ msgstr "確認メールを受信"
515
+
516
+ #: app/views/signup/index.html.erb:60 app/views/signup/email/index.html.erb:27
517
+ msgctxt "MultiAuth"
518
+ msgid "Confirm"
519
+ msgstr "確認"
520
+
521
+ #: app/views/signup/open_id/authenticated.html.erb:2
522
+ #: app/views/signup/open_id/index.html.erb:2
523
+ #: app/views/signup/open_id/created.html.erb:2
524
+ #: app/views/signup/email/activated.html.erb:2
525
+ #: app/views/signup/email/index.html.erb:2
526
+ #: app/views/signup/email/created.html.erb:2
527
+ #: app/views/signup/email/validated.html.erb:2
528
+ #: app/views/signup/email/activation.html.erb:2
529
+ msgctxt "MultiAuth"
530
+ msgid "Signup"
531
+ msgstr "サインアップ"
532
+
533
+ #: app/views/signup/open_id/authenticated.html.erb:4
534
+ msgctxt "MultiAuth"
535
+ msgid "Authentication completed"
536
+ msgstr "認証完了"
537
+
538
+ #: app/views/signup/open_id/authenticated.html.erb:14
539
+ #: app/views/signup/email/validated.html.erb:20
540
+ msgctxt "MultiAuth"
541
+ msgid "Register"
542
+ msgstr "登録"
543
+
544
+ #: app/views/signup/email/_progress.html.erb:9
545
+ msgctxt "MultiAuth"
546
+ msgid "Input login info"
547
+ msgstr "ログイン情報入力"
548
+
549
+ #: app/views/signup/email/_progress.html.erb:10
550
+ msgctxt "MultiAuth"
551
+ msgid "Confirm login info"
552
+ msgstr "ログイン情報確認"
553
+
554
+ #: app/views/signup/email/_progress.html.erb:11
555
+ #: app/views/signup/email/created.html.erb:4
556
+ msgctxt "MultiAuth"
557
+ msgid "Pre-registration completed"
558
+ msgstr "仮登録完了"
559
+
560
+ #: app/views/signup/email/_progress.html.erb:12
561
+ #: app/views/signup/email/validated.html.erb:4
562
+ #: app/views/signup/email/activation.html.erb:4
563
+ msgctxt "MultiAuth"
564
+ msgid "Registration confirmation"
565
+ msgstr "登録確認"
566
+
567
+ #: app/views/signup/email/index.html.erb:4
568
+ msgctxt "MultiAuth"
569
+ msgid "Signup by email address"
570
+ msgstr "メールアドレスによる登録"
571
+
572
+ #: app/views/signup/email/created.html.erb:9
573
+ msgctxt "MultiAuth"
574
+ msgid "Sent a mail to %{email}."
575
+ msgstr "%{email} にメールを送信しました。"
576
+
577
+ #: app/views/signup/email/validated.html.erb:14
578
+ msgid "EmailCredential|Password"
579
+ msgstr "パスワード"
580
+
581
+ #: app/views/signup/email/activation.html.erb:9
582
+ msgctxt "MultiAuth"
583
+ msgid "Valid activation token"
584
+ msgstr "有効なアクティベーショントークン"
585
+
586
+ #: app/views/signup/email/activation.html.erb:11
587
+ msgctxt "MultiAuth"
588
+ msgid "Activated"
589
+ msgstr "アクティベーション済"
590
+
591
+ #: app/views/signup/email/activation.html.erb:13
592
+ msgctxt "MultiAuth"
593
+ msgid "Inactivated"
594
+ msgstr "未アクティベーション"
595
+
596
+ #: app/views/signup/email/activation.html.erb:22
597
+ msgctxt "MultiAuth"
598
+ msgid "Regist"
599
+ msgstr "登録"
600
+
601
+ #: app/views/signup/email/activation.html.erb:26
602
+ msgctxt "MultiAuth"
603
+ msgid "Invalid activation token"
604
+ msgstr "無効なアクティベーショントークン"
605
+
606
+ #: lib/open_id_authentication/result.rb:5
607
+ msgctxt "OpenIdAuthentication"
608
+ msgid "Sorry, the OpenID server couldn't be found"
609
+ msgstr "OpenID サーバが見つかりませんでした。"
610
+
611
+ #: lib/open_id_authentication/result.rb:6
612
+ msgctxt "OpenIdAuthentication"
613
+ msgid "Sorry, but this does not appear to be a valid OpenID"
614
+ msgstr "OpenID が不正です。"
615
+
616
+ #: lib/open_id_authentication/result.rb:7
617
+ msgctxt "OpenIdAuthentication"
618
+ msgid "OpenID verification was canceled"
619
+ msgstr "OpenID の検証がキャンセルされました。"
620
+
621
+ #: lib/open_id_authentication/result.rb:8
622
+ msgctxt "OpenIdAuthentication"
623
+ msgid "OpenID verification failed"
624
+ msgstr "OpenID の検証が失敗しました。"
625
+
626
+ #: lib/open_id_authentication/result.rb:9
627
+ msgctxt "OpenIdAuthentication"
628
+ msgid "OpenID verification needs setup"
629
+ msgstr "OpenID の検証には準備が必要です。"
630
+
631
+ #: lib/multi_auth/action_controller.rb:34
632
+ msgctxt "MultiAuth"
633
+ msgid "Session has expired. Please login again."
634
+ msgstr "セッションがタイムアウトしました。再度ログインしてください。"
635
+
636
+ #: lib/multi_auth/action_controller.rb:43
637
+ msgctxt "MultiAuth"
638
+ msgid "Login required."
639
+ msgstr "ログインが必要です。"