rodauth-i18n 0.2.0 → 0.2.1
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 +4 -4
- data/lib/rodauth/i18n/login_password_requirements_base.rb +12 -0
- data/locales/en.yml +3 -0
- data/locales/hr.yml +3 -0
- data/rodauth-i18n.gemspec +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d035217bfe2466bbd5b689d59b3469b15dfd9eb5b5b70ac00a2a6868c22108c2
|
4
|
+
data.tar.gz: 1844d4468c69fe7e28704ad0bbcfd9c3c79a5b750bff23552a137a6e3f233a8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3f3b650c95ee21371ac5f3c2e5cc068af598b16430890b5e695feac42ccbacef5523d3f31f4e571f71d8c4219dff1f8d1f754f4c77d2c0ea5692a6a4465642a
|
7
|
+
data.tar.gz: 39cd36cc115f0e54c905c442b5c70971369245cd95901c6d191ac5221afff13ef34b033dd683fe0c90a03aa3c19656f774e49c16c096eb693a3ce341d06b210b
|
@@ -20,6 +20,14 @@ module Rodauth
|
|
20
20
|
i18n_translate(__method__, super) + "#{" (#{password_requirement_message})" if password_requirement_message}"
|
21
21
|
end
|
22
22
|
|
23
|
+
def password_too_long_message
|
24
|
+
i18n_translate(__method__, super, password_maximum_length: password_maximum_length)
|
25
|
+
end
|
26
|
+
|
27
|
+
def password_too_many_bytes_message
|
28
|
+
i18n_translate(__method__, super, password_maximum_bytes: password_maximum_bytes)
|
29
|
+
end
|
30
|
+
|
23
31
|
def password_too_short_message
|
24
32
|
i18n_translate(__method__, super, password_minimum_length: password_minimum_length)
|
25
33
|
end
|
@@ -32,6 +40,10 @@ module Rodauth
|
|
32
40
|
i18n_translate(__method__, super, login_maximum_length: login_maximum_length)
|
33
41
|
end
|
34
42
|
|
43
|
+
def login_too_many_bytes_message
|
44
|
+
i18n_translate(__method__, super, login_maximum_bytes: login_maximum_bytes)
|
45
|
+
end
|
46
|
+
|
35
47
|
def login_too_short_message
|
36
48
|
i18n_translate(__method__, super, login_minimum_length: login_minimum_length)
|
37
49
|
end
|
data/locales/en.yml
CHANGED
@@ -63,6 +63,7 @@ en:
|
|
63
63
|
login_notice_flash: You have been logged in
|
64
64
|
login_page_title: Login
|
65
65
|
login_too_long_message: maximum %{login_maximum_length} characters
|
66
|
+
login_too_many_bytes_message: maximum %{login_maximum_bytes} bytes
|
66
67
|
login_too_short_message: minimum %{login_minimum_length} characters
|
67
68
|
logins_do_not_match_message: logins do not match
|
68
69
|
logout_button: Logout
|
@@ -114,6 +115,8 @@ en:
|
|
114
115
|
password_not_enough_character_groups_message: does not include uppercase letters, lowercase letters, and numbers
|
115
116
|
password_same_as_previous_password_message: same as previous password
|
116
117
|
password_too_many_repeating_characters_message: contains too many of the same character in a row
|
118
|
+
password_too_long_message: maximum %{password_maximum_length} characters
|
119
|
+
password_too_many_bytes_message: maximum %{password_maximum_bytes} bytes
|
117
120
|
password_too_short_message: minimum %{password_minimum_length} characters
|
118
121
|
passwords_do_not_match_message: passwords do not match
|
119
122
|
recovery_auth_button: Authenticate via Recovery Code
|
data/locales/hr.yml
CHANGED
@@ -21,9 +21,12 @@ hr:
|
|
21
21
|
login_does_not_meet_requirements_message: neispravna email adresa, ne ispunjava uvjete
|
22
22
|
login_label: Email adresa
|
23
23
|
login_too_long_message: najviše %{login_maximum_length} znakova
|
24
|
+
login_too_many_bytes_message: najviše %{login_maximum_bytes} bajtova
|
24
25
|
login_too_short_message: najmanje %{login_minimum_length} znakova
|
25
26
|
password_confirm_label: Potvrda lozinke
|
26
27
|
password_does_not_meet_requirements_message: neispravna lozinka, ne ispunjava uvjete
|
27
28
|
password_label: Lozinka
|
29
|
+
password_too_long_message: najviše %{password_maximum_length} znakova
|
30
|
+
password_too_many_bytes_message: najviše %{password_maximum_bytes} bajtova
|
28
31
|
password_too_short_message: najmanje %{password_minimum_length} znakova
|
29
32
|
# ...
|
data/rodauth-i18n.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "rodauth-i18n"
|
5
|
-
spec.version = "0.2.
|
5
|
+
spec.version = "0.2.1"
|
6
6
|
spec.authors = ["Janko Marohnić"]
|
7
7
|
spec.email = ["janko@hey.com"]
|
8
8
|
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.files = Dir["README.md", "LICENSE.txt", "CHANGELOG.md", "lib/**/*", "locales/**/*", "*.gemspec"]
|
16
16
|
spec.require_paths = ["lib"]
|
17
17
|
|
18
|
-
spec.add_dependency "rodauth", "~> 2.
|
18
|
+
spec.add_dependency "rodauth", "~> 2.19"
|
19
19
|
spec.add_dependency "i18n", "~> 1.0"
|
20
20
|
|
21
21
|
spec.add_development_dependency "minitest"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rodauth-i18n
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Janko Marohnić
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rodauth
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '2.
|
19
|
+
version: '2.19'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '2.
|
26
|
+
version: '2.19'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: i18n
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|