rodauth-i18n 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -3
- data/locales/fr.yml +2 -2
- data/rodauth-i18n.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67fa852edc03b87f43d72b657a5ba96805e99c0f3de2fcdeed8c78c31a6ae19f
|
4
|
+
data.tar.gz: 5dabb3e9bdd0e6cfa3d63e0e5560bb9348c0de36c20189fd4ba3e6c60408a9b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36e034a7ac17a21fff0cc6fe01f9ed686c1227300c084c6d9fdbb744a92da1d32f3d6fd659b05c81e28100700e6b1d3f000e2e2474585cac2e88cbb6e2601dad
|
7
|
+
data.tar.gz: d2892676423abf99734cf533d866284c254cb1aedd700967271fd4e5578302f085e5fe6b450c52c569bc011351ad2166de074121fdeee9b6d9dce25caafb8da3
|
data/README.md
CHANGED
@@ -146,13 +146,16 @@ route do |r|
|
|
146
146
|
all_locales = I18n.available_locales.map(&:to_s) - [I18n.default_locale.to_s]
|
147
147
|
# routes requests starting with `(/:locale)/auth/*`
|
148
148
|
r.on [*all_locales, true], "auth" do |locale|
|
149
|
-
rails_request.params[:locale] = locale
|
150
|
-
r.rodauth
|
151
|
-
break
|
149
|
+
rails_request.params[:locale] = locale # for controller callbacks (if using Rails)
|
150
|
+
r.rodauth # route Rodauth requests
|
151
|
+
break # let other (/:locale)/auth/* requests through
|
152
152
|
end
|
153
153
|
end
|
154
154
|
```
|
155
155
|
|
156
|
+
The static `/auth` path prefix is optional, it was just to show how it would be
|
157
|
+
incorporated.
|
158
|
+
|
156
159
|
## Bundling translations in your Rodauth plugin
|
157
160
|
|
158
161
|
To make texts in your Rodauth plugin translatable, use the `translatable_method` macro. Macros for defining flash messages, button texts, and page titles internally call `translatable_method`, and are thus automatically translatable.
|
data/locales/fr.yml
CHANGED
@@ -30,8 +30,8 @@ fr:
|
|
30
30
|
contains_null_byte_message: contient un byte nul
|
31
31
|
create_account_button: Créer un compte
|
32
32
|
create_account_error_flash: Erreur lors de la création de votre compte
|
33
|
-
create_account_link_text:
|
34
|
-
create_account_notice_flash:
|
33
|
+
create_account_link_text: Créer un compte
|
34
|
+
create_account_notice_flash: Votre compte a été créé
|
35
35
|
create_account_page_title: Créer un nouveau compte
|
36
36
|
email_auth_email_recently_sent_error_flash: Un email vous a été envoyé avec un lien pour vous connecter
|
37
37
|
email_auth_email_sent_notice_flash: Un email vous a été envoyé avec un lien pour accéder à votre compte
|
data/rodauth-i18n.gemspec
CHANGED
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.5.
|
4
|
+
version: 0.5.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: 2022-
|
11
|
+
date: 2022-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rodauth
|