doorkeeper-i18n 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 4278d5040931d065fe35e8b2161c49d12a5bdec4
4
+ data.tar.gz: 809806ed5b85481c53d61c6db8ecd5183ae854b3
5
+ SHA512:
6
+ metadata.gz: 1088b791bcfed2a9534763abb4121fb3820de317f6888a37b763b91f75a4a1754fc17db20527291132507ed8079e14b4a3cbaeadbc5f6d826b666ba0c66152cf
7
+ data.tar.gz: 74adc6deea99c26ce8f3911f3a4f8f5ee1a61c47533525b3898370c91a40c852440e0d93d974c3276cba63e1e7b14cca79ca941f87813adf0b3dcea62b79f456
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ .DS_Store
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "http://rubygems.org"
2
+
3
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,35 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ doorkeeper-i18n (2.0.0)
5
+
6
+ GEM
7
+ remote: http://rubygems.org/
8
+ specs:
9
+ diff-lcs (1.2.5)
10
+ i18n (0.7.0)
11
+ i18n-spec (0.6.0)
12
+ iso
13
+ iso (0.2.1)
14
+ i18n
15
+ rspec (3.2.0)
16
+ rspec-core (~> 3.2.0)
17
+ rspec-expectations (~> 3.2.0)
18
+ rspec-mocks (~> 3.2.0)
19
+ rspec-core (3.2.1)
20
+ rspec-support (~> 3.2.0)
21
+ rspec-expectations (3.2.0)
22
+ diff-lcs (>= 1.2.0, < 2.0)
23
+ rspec-support (~> 3.2.0)
24
+ rspec-mocks (3.2.1)
25
+ diff-lcs (>= 1.2.0, < 2.0)
26
+ rspec-support (~> 3.2.0)
27
+ rspec-support (3.2.2)
28
+
29
+ PLATFORMS
30
+ ruby
31
+
32
+ DEPENDENCIES
33
+ doorkeeper-i18n!
34
+ i18n-spec (~> 0.6.0)
35
+ rspec
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) Tute Costa
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # doorkeeper-i18n
2
+
3
+ To extend doorkeeper with locales, add to your Gemfile:
4
+
5
+ ```ruby
6
+ gem 'doorkeeper-i18n'
7
+ ```
data/Rakefile ADDED
@@ -0,0 +1,18 @@
1
+ require "bundler"
2
+ require "rake"
3
+ require "rspec/core"
4
+ require "rspec/core/rake_task"
5
+
6
+ begin
7
+ Bundler.setup(:default, :development)
8
+ rescue Bundler::BundlerError => e
9
+ $stderr.puts e.message
10
+ $stderr.puts "Run `bundle install` to install missing gems"
11
+ exit e.status_code
12
+ end
13
+
14
+ RSpec::Core::RakeTask.new(:spec) do |spec|
15
+ spec.pattern = FileList["spec/**/*_spec.rb"]
16
+ end
17
+
18
+ task default: :spec
@@ -0,0 +1,151 @@
1
+ en:
2
+ activerecord:
3
+ attributes:
4
+ doorkeeper/application:
5
+ name: 'Name'
6
+ redirect_uri: 'Redirect URI'
7
+ errors:
8
+ models:
9
+ doorkeeper/application:
10
+ attributes:
11
+ redirect_uri:
12
+ fragment_present: 'cannot contain a fragment.'
13
+ invalid_uri: 'must be a valid URI.'
14
+ relative_uri: 'must be an absolute URI.'
15
+ secured_uri: 'must be an HTTPS/SSL URI.'
16
+
17
+ mongoid:
18
+ attributes:
19
+ doorkeeper/application:
20
+ name: 'Name'
21
+ redirect_uri: 'Redirect URI'
22
+ errors:
23
+ models:
24
+ doorkeeper/application:
25
+ attributes:
26
+ redirect_uri:
27
+ fragment_present: 'cannot contain a fragment.'
28
+ invalid_uri: 'must be a valid URI.'
29
+ relative_uri: 'must be an absolute URI.'
30
+ secured_uri: 'must be an HTTPS/SSL URI.'
31
+
32
+ mongo_mapper:
33
+ attributes:
34
+ doorkeeper/application:
35
+ name: 'Name'
36
+ redirect_uri: 'Redirect URI'
37
+ errors:
38
+ models:
39
+ doorkeeper/application:
40
+ attributes:
41
+ redirect_uri:
42
+ fragment_present: 'cannot contain a fragment.'
43
+ invalid_uri: 'must be a valid URI.'
44
+ relative_uri: 'must be an absolute URI.'
45
+ secured_uri: 'must be an HTTPS/SSL URI.'
46
+
47
+ doorkeeper:
48
+ applications:
49
+ confirmations:
50
+ destroy: 'Are you sure?'
51
+ buttons:
52
+ edit: 'Edit'
53
+ destroy: 'Destroy'
54
+ submit: 'Submit'
55
+ cancel: 'Cancel'
56
+ authorize: 'Authorize'
57
+ form:
58
+ error: 'Whoops! Check your form for possible errors'
59
+ help:
60
+ redirect_uri: 'Use one line per URI'
61
+ native_redirect_uri: 'Use %{native_redirect_uri} for local tests'
62
+ edit:
63
+ title: 'Edit application'
64
+ index:
65
+ title: 'Your applications'
66
+ new: 'New Application'
67
+ name: 'Name'
68
+ callback_url: 'Callback URL'
69
+ new:
70
+ title: 'New Application'
71
+ show:
72
+ title: 'Application: %{name}'
73
+ application_id: 'Application Id'
74
+ secret: 'Secret'
75
+ callback_urls: 'Callback urls'
76
+ actions: 'Actions'
77
+
78
+ authorizations:
79
+ buttons:
80
+ authorize: 'Authorize'
81
+ deny: 'Deny'
82
+ error:
83
+ title: 'An error has occurred'
84
+ new:
85
+ title: 'Authorize required'
86
+ prompt: 'Authorize %{client_name} to use your account?'
87
+ able_to: 'This application will be able to'
88
+ show:
89
+ title: 'Authorization code'
90
+
91
+ authorized_applications:
92
+ confirmations:
93
+ revoke: 'Are you sure?'
94
+ buttons:
95
+ revoke: 'Revoke'
96
+ index:
97
+ title: 'Your authorized applications'
98
+ application: 'Application'
99
+ created_at: 'Created At'
100
+ date_format: '%Y-%m-%d %H:%M:%S'
101
+
102
+ errors:
103
+ messages:
104
+ # Common error messages
105
+ invalid_request: 'The request is missing a required parameter, includes an unsupported parameter value, or is otherwise malformed.'
106
+ invalid_redirect_uri: 'The redirect uri included is not valid.'
107
+ unauthorized_client: 'The client is not authorized to perform this request using this method.'
108
+ access_denied: 'The resource owner or authorization server denied the request.'
109
+ invalid_scope: 'The requested scope is invalid, unknown, or malformed.'
110
+ server_error: 'The authorization server encountered an unexpected condition which prevented it from fulfilling the request.'
111
+ temporarily_unavailable: 'The authorization server is currently unable to handle the request due to a temporary overloading or maintenance of the server.'
112
+
113
+ #configuration error messages
114
+ credential_flow_not_configured: 'Resource Owner Password Credentials flow failed due to Doorkeeper.configure.resource_owner_from_credentials being unconfigured.'
115
+ resource_owner_authenticator_not_configured: 'Resource Owner find failed due to Doorkeeper.configure.resource_owner_authenticator being unconfiged.'
116
+
117
+ # Access grant errors
118
+ unsupported_response_type: 'The authorization server does not support this response type.'
119
+
120
+ # Access token errors
121
+ invalid_client: 'Client authentication failed due to unknown client, no client authentication included, or unsupported authentication method.'
122
+ invalid_grant: 'The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.'
123
+ unsupported_grant_type: 'The authorization grant type is not supported by the authorization server.'
124
+
125
+ # Password Access token errors
126
+ invalid_resource_owner: 'The provided resource owner credentials are not valid, or resource owner cannot be found'
127
+
128
+ invalid_token:
129
+ revoked: "The access token was revoked"
130
+ expired: "The access token expired"
131
+ unknown: "The access token is invalid"
132
+
133
+ flash:
134
+ applications:
135
+ create:
136
+ notice: 'Application created.'
137
+ destroy:
138
+ notice: 'Application deleted.'
139
+ update:
140
+ notice: 'Application updated.'
141
+ authorized_applications:
142
+ destroy:
143
+ notice: 'Application revoked.'
144
+
145
+ layouts:
146
+ admin:
147
+ nav:
148
+ oauth2_provider: 'OAuth2 Provider'
149
+ applications: 'Applications'
150
+ application:
151
+ title: 'OAuth authorize required'
@@ -0,0 +1,151 @@
1
+ zh-TW:
2
+ activerecord:
3
+ attributes:
4
+ doorkeeper/application:
5
+ name: '名稱'
6
+ redirect_uri: '轉向網址'
7
+ errors:
8
+ models:
9
+ doorkeeper/application:
10
+ attributes:
11
+ redirect_uri:
12
+ fragment_present: '不能包含片段(#)'
13
+ invalid_uri: '必須是有效的網址'
14
+ relative_uri: '必須是絕對的網址'
15
+ secured_uri: '必須是有 HTTPS/SSL 的網址'
16
+
17
+ mongoid:
18
+ attributes:
19
+ doorkeeper/application:
20
+ name: '名稱'
21
+ redirect_uri: '轉向網址'
22
+ errors:
23
+ models:
24
+ doorkeeper/application:
25
+ attributes:
26
+ redirect_uri:
27
+ fragment_present: '不能包含片段(#)'
28
+ invalid_uri: '必須是有效的網址'
29
+ relative_uri: '必須是絕對的網址'
30
+ secured_uri: '必須是有 HTTPS/SSL 的網址'
31
+
32
+ mongo_mapper:
33
+ attributes:
34
+ doorkeeper/application:
35
+ name: '名稱'
36
+ redirect_uri: '轉向網址'
37
+ errors:
38
+ models:
39
+ doorkeeper/application:
40
+ attributes:
41
+ redirect_uri:
42
+ fragment_present: '不能包含片段(#)'
43
+ invalid_uri: '必須是有效的網址'
44
+ relative_uri: '必須是絕對的網址'
45
+ secured_uri: '必須是有 HTTPS/SSL 的網址'
46
+
47
+ doorkeeper:
48
+ applications:
49
+ confirmations:
50
+ destroy: '確定嗎?'
51
+ buttons:
52
+ edit: '編輯'
53
+ destroy: '刪除'
54
+ submit: '送出'
55
+ cancel: '取消'
56
+ authorize: '授權'
57
+ form:
58
+ error: 'Whoops! 確認表單內可能的錯誤'
59
+ help:
60
+ redirect_uri: '每個網址必須只有一行'
61
+ native_redirect_uri: '使用 %{native_redirect_uri} 作本地端測試'
62
+ edit:
63
+ title: '編輯應用'
64
+ index:
65
+ title: '你的應用'
66
+ new: '新應用'
67
+ name: '名稱'
68
+ callback_url: '回應網址'
69
+ new:
70
+ title: '新應用'
71
+ show:
72
+ title: '應用: %{name}'
73
+ application_id: '應用 ID'
74
+ secret: '私鑰'
75
+ callback_urls: '回應網址'
76
+ actions: '動作'
77
+
78
+ authorizations:
79
+ buttons:
80
+ authorize: '授權'
81
+ deny: '拒絕'
82
+ error:
83
+ title: '發生錯誤'
84
+ new:
85
+ title: '授權需求'
86
+ prompt: '授權 %{client_name} 使用您的帳戶?'
87
+ able_to: '這個應用將會'
88
+ show:
89
+ title: '授權碼'
90
+
91
+ authorized_applications:
92
+ confirmations:
93
+ revoke: '確認嗎?'
94
+ buttons:
95
+ revoke: '撤銷'
96
+ index:
97
+ title: '你授權的應用'
98
+ application: '應用'
99
+ created_at: '建立時間'
100
+ date_format: '%Y-%m-%d %H:%M:%S'
101
+
102
+ errors:
103
+ messages:
104
+ # Common error messages
105
+ invalid_request: '這個請求少了一個必要的參數,可能是不支援的參數值或是其他格式錯誤'
106
+ invalid_redirect_uri: '這個轉向網址無效'
107
+ unauthorized_client: '這個應用並無被授權可以執行這個請求的方法'
108
+ access_denied: '擁有者或認證伺服器拒絕此需求'
109
+ invalid_scope: '請求範圍無效、未知或格式錯誤'
110
+ server_error: '授權伺服器因不明原因無法完成此請求'
111
+ temporarily_unavailable: '授權伺服器超載或維護中,無法處理此項請求'
112
+
113
+ #configuration error messages
114
+ credential_flow_not_configured: '資源擁有者密碼認證流程失敗,因為 Doorkeeper.configure.resource_owner_from_credentials 並未設定'
115
+ resource_owner_authenticator_not_configured: '資源擁有者查詢失敗,因為 Doorkeeper.configure.resource_owner_authenticator 並未設定'
116
+
117
+ # Access grant errors
118
+ unsupported_response_type: '授權伺服器並不支援此回應'
119
+
120
+ # Access token errors
121
+ invalid_client: '由於未知、不支援或是沒有客戶端認證而失敗'
122
+ invalid_grant: '轉向網址的授權許可無效、過期或已被撤銷'
123
+ unsupported_grant_type: '授權伺服器不支援此授權許可型態'
124
+
125
+ # Password Access token errors
126
+ invalid_resource_owner: '資源擁有者認證無效或無此擁有者'
127
+
128
+ invalid_token:
129
+ revoked: "Access Token 已被撤銷"
130
+ expired: "Access Token 已過期"
131
+ unknown: "Access Token 是無效的"
132
+
133
+ flash:
134
+ applications:
135
+ create:
136
+ notice: '應用已建立'
137
+ destroy:
138
+ notice: '應用已刪除'
139
+ update:
140
+ notice: '應用已更新'
141
+ authorized_applications:
142
+ destroy:
143
+ notice: '應用已撤銷'
144
+
145
+ layouts:
146
+ admin:
147
+ nav:
148
+ oauth2_provider: 'OAuth2 Provider'
149
+ applications: '應用'
150
+ application:
151
+ title: 'OAuth 認證需求'
@@ -0,0 +1,19 @@
1
+ $:.push File.expand_path("../lib", __FILE__)
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = "doorkeeper-i18n"
5
+ s.version = "2.0.0"
6
+ s.authors = ["Tute Costa"]
7
+ s.email = %w(tutecosta@gmail.com)
8
+ s.homepage = "https://github.com/doorkeeper-gem/doorkeeper-i18n"
9
+ s.summary = "Translations for doorkeeper rubygem."
10
+ s.description = "Translations for doorkeeper rubygem."
11
+ s.license = "MIT"
12
+
13
+ s.files = `git ls-files`.split("\n")
14
+ s.test_files = `git ls-files -- test/*`.split("\n")
15
+ s.require_paths = ["lib"]
16
+
17
+ s.add_development_dependency "rspec"
18
+ s.add_development_dependency "i18n-spec", "~> 0.6.0"
19
+ end
@@ -0,0 +1,4 @@
1
+ module DoorkeeperI18n
2
+ class Engine < ::Rails::Engine
3
+ end
4
+ end
@@ -0,0 +1,8 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ Dir.glob('config/locales/*.yml').each do |locale_file|
4
+ describe "a doorkeeper-i18n #{locale_file} locale file" do
5
+ it_behaves_like 'a valid locale file', locale_file
6
+ it { expect(locale_file).to be_a_subset_of 'config/locales/en.yml' }
7
+ end
8
+ end
@@ -0,0 +1,5 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
3
+
4
+ require "rspec"
5
+ require "i18n-spec"
metadata ADDED
@@ -0,0 +1,85 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: doorkeeper-i18n
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Tute Costa
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-03-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: i18n-spec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.6.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.6.0
41
+ description: Translations for doorkeeper rubygem.
42
+ email:
43
+ - tutecosta@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".gitignore"
49
+ - Gemfile
50
+ - Gemfile.lock
51
+ - MIT-LICENSE
52
+ - README.md
53
+ - Rakefile
54
+ - config/locales/en.yml
55
+ - config/locales/zh-TW.yml
56
+ - doorkeeper-i18n.gemspec
57
+ - lib/doorkeeper-i18n.rb
58
+ - spec/doorkeeper-i18n_spec.rb
59
+ - spec/spec_helper.rb
60
+ homepage: https://github.com/doorkeeper-gem/doorkeeper-i18n
61
+ licenses:
62
+ - MIT
63
+ metadata: {}
64
+ post_install_message:
65
+ rdoc_options: []
66
+ require_paths:
67
+ - lib
68
+ required_ruby_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
73
+ required_rubygems_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ requirements: []
79
+ rubyforge_project:
80
+ rubygems_version: 2.4.5
81
+ signing_key:
82
+ specification_version: 4
83
+ summary: Translations for doorkeeper rubygem.
84
+ test_files: []
85
+ has_rdoc: