rodauth-i18n 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b0cc8e3763b320a13f457addc4195eb46c11d1313068d2bd872b2b2f276805b
4
- data.tar.gz: 28e406079c1ce8777d7db7b132c8cbdcb9b688ac9fea97eb6d62cb7bdc14bd3e
3
+ metadata.gz: d035217bfe2466bbd5b689d59b3469b15dfd9eb5b5b70ac00a2a6868c22108c2
4
+ data.tar.gz: 1844d4468c69fe7e28704ad0bbcfd9c3c79a5b750bff23552a137a6e3f233a8d
5
5
  SHA512:
6
- metadata.gz: c180a031e73fd0ca82e34b206f2b7f841b19ae3cb534ca8f5dd3f25ea5e33f9209e23007d9f3dea9e46c5c60945de67642c147450c6cbf36534c925f02fe002a
7
- data.tar.gz: b57892ee7404a04e77a8dcb1ed490de6744413cda20623c1d4564fa4a1dc81055926e9f3c89f9f27f9ea5991bb58c30e22de859be2dd0d2da3e91ede01c6cf2b
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.0"
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.0"
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.0
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-03 00:00:00.000000000 Z
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.0'
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.0'
26
+ version: '2.19'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: i18n
29
29
  requirement: !ruby/object:Gem::Requirement