clearance-i18n 0.0.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 +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +39 -0
- data/Rakefile +10 -0
- data/config/locales/ar.yml +49 -0
- data/config/locales/bg.yml +71 -0
- data/config/locales/da.yml +54 -0
- data/config/locales/de.yml +54 -0
- data/config/locales/fr.yml +74 -0
- data/config/locales/pt-BR.yml +72 -0
- data/config/locales/zh-CN.yml +54 -0
- data/lib/clearance-i18n.rb +1 -0
- data/lib/clearance/i18n.rb +2 -0
- data/lib/clearance/i18n/railtie.rb +10 -0
- data/lib/clearance/i18n/version.rb +5 -0
- data/spec/clearance/i18n/railtie_spec.rb +8 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +10 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +23 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/test.rb +12 -0
- data/spec/dummy/config/initializers/secret_token.rb +1 -0
- data/spec/dummy/config/initializers/session_store.rb +1 -0
- data/spec/dummy/config/routes.rb +2 -0
- data/spec/dummy/log/test.log +0 -0
- data/spec/spec_helper.rb +5 -0
- metadata +115 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 84757917ca4ce3a6a434d5c516267faf74fa0d8d
|
|
4
|
+
data.tar.gz: 0bf6180038fe8f1827bad3bd35109749f6448191
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 5bbf0f462a40784f7e3c32071acf48fa80bf0375c0764d5e777eca85a8cece827242e08e818c9556e197015af58991bf4688306d08a89cfdf949a5030aeae1e4
|
|
7
|
+
data.tar.gz: 55375d22e2965e83b2f875ae76440f456a0b62e7bb049242fa7ae72e503a85c265d8ede3b11b5f2ee4c9ed446ae374346add0182d2cf1b7db9194badf1921106
|
data/MIT-LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright 2013 thoughtbot, inc
|
|
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,39 @@
|
|
|
1
|
+
Clearance I18n
|
|
2
|
+
==============
|
|
3
|
+
|
|
4
|
+
Adds multilingual support to [clearance] using YML locale files.
|
|
5
|
+
|
|
6
|
+
[clearance]: https://github.com/thoughtbot/clearance
|
|
7
|
+
|
|
8
|
+
Read [CONTRIBUTING.md](/CONTRIBUTING.md) to contribute.
|
|
9
|
+
|
|
10
|
+
Install
|
|
11
|
+
-------
|
|
12
|
+
|
|
13
|
+
Include the gem in your Gemfile:
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
gem 'clearance-i18n'
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Bundle:
|
|
20
|
+
|
|
21
|
+
bundle
|
|
22
|
+
|
|
23
|
+
Credits
|
|
24
|
+
-------
|
|
25
|
+
|
|
26
|
+

|
|
27
|
+
|
|
28
|
+
Clearance I18n is maintained by [thoughtbot, inc](http://thoughtbot.com/community)
|
|
29
|
+
and [contributors] like you. Thank you!
|
|
30
|
+
|
|
31
|
+
[contributors]: https://github.com/thoughtbot/clearance-i18n/contributors
|
|
32
|
+
|
|
33
|
+
License
|
|
34
|
+
-------
|
|
35
|
+
|
|
36
|
+
Clearance I18n is copyright © 2013 thoughtbot. It is free software, and may be
|
|
37
|
+
redistributed under the terms specified in the `LICENSE` file.
|
|
38
|
+
|
|
39
|
+
The names and logos for thoughtbot are trademarks of thoughtbot, inc.
|
data/Rakefile
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
en:
|
|
2
|
+
clearance_mailer:
|
|
3
|
+
change_password: نسيت كلمة السر
|
|
4
|
+
closing: إذا كنت لم تطلب هذا، تجاهل هذا البريد الإلكتروني. لم يتم تغيير كلمة المرور الخاصة بك.
|
|
5
|
+
link_text: تغير كلمة المرور
|
|
6
|
+
opening: "شخص ما، ونأمل أن يكون أنت، طلب أن نرسل لك رابطا لتغيير كلمة المرور الخاصة بك:"
|
|
7
|
+
flashes:
|
|
8
|
+
failure_after_create: البريد الإلكتروني أو كلمة المرور غير صحيحين.
|
|
9
|
+
failure_after_update: كلمة المرور لا يجب أن تكون فارغة .
|
|
10
|
+
failure_when_forbidden: الرجاء التحقق جيدا من الرابط أو محاولة تقديم النموذج مرة أخرى.
|
|
11
|
+
failure_when_not_signed_in: يرجى تسجيل الدخول لمتابعة مسيرتك.
|
|
12
|
+
helpers:
|
|
13
|
+
label:
|
|
14
|
+
password:
|
|
15
|
+
email: عنوان البريد الالكترونى
|
|
16
|
+
password_reset:
|
|
17
|
+
password: اختر كلمة مرور
|
|
18
|
+
submit:
|
|
19
|
+
password:
|
|
20
|
+
submit: إعادة تعيين كلمة المرور
|
|
21
|
+
password_reset:
|
|
22
|
+
submit: حفظ كلمة المرور هذه
|
|
23
|
+
session:
|
|
24
|
+
submit: تسجيل الدخول
|
|
25
|
+
user:
|
|
26
|
+
create: الاشتراك
|
|
27
|
+
layouts:
|
|
28
|
+
application:
|
|
29
|
+
sign_in: تسجيل الدخول
|
|
30
|
+
sign_out: تسجيل الخروج
|
|
31
|
+
passwords:
|
|
32
|
+
create:
|
|
33
|
+
description: سوف تتلقى بريداَ ألكترونيا في غضون الدقائق القليلة المقبلة. سيحتوي على تعليمات لتغيير كلمة المرور الخاصة بك.
|
|
34
|
+
edit:
|
|
35
|
+
description: Your password has been reset. Choose a new password below.
|
|
36
|
+
title: Change your password
|
|
37
|
+
new:
|
|
38
|
+
description: الرجاءأدخال بريدك الألكتروني حتى يتم إرسال رابطة لإعادة تركيب كلمة المرور الخاصة بك.
|
|
39
|
+
title: إعادة تعيين كلمة مرورك
|
|
40
|
+
sessions:
|
|
41
|
+
form:
|
|
42
|
+
forgot_password: هل نسيت كلمة المرور؟
|
|
43
|
+
sign_up: الاشتراك
|
|
44
|
+
new:
|
|
45
|
+
title: تسجيل الدخول
|
|
46
|
+
users:
|
|
47
|
+
new:
|
|
48
|
+
sign_in: تسجيل الدخول
|
|
49
|
+
title: الاشتراك
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
bg:
|
|
2
|
+
clearance_mailer:
|
|
3
|
+
change_password:
|
|
4
|
+
opening:
|
|
5
|
+
'Някой, най-вероятно вие самите, е пожелал да Ви изпратим линк за промяна на паролата.'
|
|
6
|
+
closing:
|
|
7
|
+
'Ако не сте пожелали това съобщение, игнорирайте го - вашата парола няма да се променя.'
|
|
8
|
+
flashes:
|
|
9
|
+
failure_when_forbidden:
|
|
10
|
+
'Моля проверете отново адреса на страницата (URL) или опитайте да изпратите формуляра отново.'
|
|
11
|
+
failure_after_update:
|
|
12
|
+
'Паролата не може да бъде празна.'
|
|
13
|
+
failure_after_create:
|
|
14
|
+
'Неточен имейл или парола. Ако се опитвате да създадете нов акаунт - използвайте линка:
|
|
15
|
+
<a href="%{sign_up_path}">Регистрация</a>.'
|
|
16
|
+
helpers:
|
|
17
|
+
submit:
|
|
18
|
+
password:
|
|
19
|
+
submit:
|
|
20
|
+
'Промени парола'
|
|
21
|
+
password_reset:
|
|
22
|
+
submit:
|
|
23
|
+
'Запиши паролата'
|
|
24
|
+
session:
|
|
25
|
+
submit:
|
|
26
|
+
'Вход'
|
|
27
|
+
user:
|
|
28
|
+
create:
|
|
29
|
+
'Регистрация'
|
|
30
|
+
label:
|
|
31
|
+
password:
|
|
32
|
+
email:
|
|
33
|
+
'Имейл'
|
|
34
|
+
password_reset:
|
|
35
|
+
password:
|
|
36
|
+
'Нова парола'
|
|
37
|
+
layouts:
|
|
38
|
+
application:
|
|
39
|
+
sign_in:
|
|
40
|
+
'Вход'
|
|
41
|
+
sign_out:
|
|
42
|
+
'Изход'
|
|
43
|
+
passwords:
|
|
44
|
+
create:
|
|
45
|
+
description:
|
|
46
|
+
'Ще получите имейл в рамките на няколко минути. Той съдържа инструкции за смяна на парола.'
|
|
47
|
+
edit:
|
|
48
|
+
description:
|
|
49
|
+
'Вашата парола е променена. Изберете нова парола по-долу.'
|
|
50
|
+
title:
|
|
51
|
+
'Промяна на парола'
|
|
52
|
+
new:
|
|
53
|
+
description:
|
|
54
|
+
'За да получите имейл с линк за промяна на паролата си, моля въведете имейла, с който сте се регистрирали.'
|
|
55
|
+
title:
|
|
56
|
+
'Промяна на парола'
|
|
57
|
+
sessions:
|
|
58
|
+
form:
|
|
59
|
+
forgot_password:
|
|
60
|
+
'Забравена парола'
|
|
61
|
+
sign_up:
|
|
62
|
+
'Регистрация'
|
|
63
|
+
new:
|
|
64
|
+
title:
|
|
65
|
+
'Вход'
|
|
66
|
+
users:
|
|
67
|
+
new:
|
|
68
|
+
title:
|
|
69
|
+
'Регистрация'
|
|
70
|
+
sign_in:
|
|
71
|
+
'Вход'
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
da:
|
|
3
|
+
clearance:
|
|
4
|
+
models:
|
|
5
|
+
clearance_mailer:
|
|
6
|
+
change_password: Skift dit password
|
|
7
|
+
clearance_mailer:
|
|
8
|
+
change_password:
|
|
9
|
+
closing: Ignore denne email hvis du ikke har bedt om dette.
|
|
10
|
+
link_text: Skift mit password
|
|
11
|
+
opening: Link til at skifte dit password
|
|
12
|
+
flashes:
|
|
13
|
+
failure_after_create: Forket email eller password.
|
|
14
|
+
failure_after_update: Password skal udfyldes.
|
|
15
|
+
failure_when_forbidden: Der skete en fejl.
|
|
16
|
+
failure_when_not_signed_in: Du skal logge ind for at fortsætte.
|
|
17
|
+
helpers:
|
|
18
|
+
label:
|
|
19
|
+
password:
|
|
20
|
+
email: Din email
|
|
21
|
+
password_reset:
|
|
22
|
+
password: Nyt password
|
|
23
|
+
submit:
|
|
24
|
+
password:
|
|
25
|
+
submit: Nulstil password
|
|
26
|
+
password_reset:
|
|
27
|
+
submit: Gem password
|
|
28
|
+
session:
|
|
29
|
+
submit: Log ind
|
|
30
|
+
user:
|
|
31
|
+
create: Opret konto
|
|
32
|
+
layouts:
|
|
33
|
+
application:
|
|
34
|
+
sign_in: Log ind
|
|
35
|
+
sign_out: Sign ud
|
|
36
|
+
passwords:
|
|
37
|
+
create:
|
|
38
|
+
description: Vi har sendt dig en email med et link til at nulstille dit password
|
|
39
|
+
edit:
|
|
40
|
+
description: Dit password er blevet nustillet. Du kan oprette et nyt herunder
|
|
41
|
+
title: Skift dit password
|
|
42
|
+
new:
|
|
43
|
+
description: Få tilsendt et link til at nustille dit password
|
|
44
|
+
title: Nulstil dit password
|
|
45
|
+
sessions:
|
|
46
|
+
form:
|
|
47
|
+
forgot_password: Glemt password?
|
|
48
|
+
sign_up: Opret konto
|
|
49
|
+
new:
|
|
50
|
+
title: Log ind
|
|
51
|
+
users:
|
|
52
|
+
new:
|
|
53
|
+
sign_in: Log ind
|
|
54
|
+
title: Opret konto
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
de:
|
|
3
|
+
clearance_mailer:
|
|
4
|
+
change_password:
|
|
5
|
+
closing: Bitte ignorieren Sie diese E-Mail, falls Sie kein neues
|
|
6
|
+
Passwort angefordert haben.
|
|
7
|
+
link_text: Mein Passwort ändern
|
|
8
|
+
opening: "Jemand hat einen Link angefordert, um Ihr Passwort zu ändern:"
|
|
9
|
+
flashes:
|
|
10
|
+
failure_after_create: Die Anmeldedaten sind ungültig.
|
|
11
|
+
failure_after_update: Bitte geben Sie ein Passwort ein.
|
|
12
|
+
failure_when_forbidden: Bitte überprüfen Sie die URL und versuchen
|
|
13
|
+
es dann erneut.
|
|
14
|
+
helpers:
|
|
15
|
+
label:
|
|
16
|
+
password:
|
|
17
|
+
email: E-Mail Adresse
|
|
18
|
+
password_reset:
|
|
19
|
+
password: Passwort auswählen
|
|
20
|
+
submit:
|
|
21
|
+
password:
|
|
22
|
+
submit: Passwort zurücksetzen
|
|
23
|
+
password_reset:
|
|
24
|
+
submit: Dieses Passwort speichern
|
|
25
|
+
session:
|
|
26
|
+
submit: Anmelden
|
|
27
|
+
user:
|
|
28
|
+
create: Account anlegen
|
|
29
|
+
layouts:
|
|
30
|
+
application:
|
|
31
|
+
sign_in: Anmelden
|
|
32
|
+
sign_out: Abmelden
|
|
33
|
+
passwords:
|
|
34
|
+
create:
|
|
35
|
+
description: Sie erhalten in einigen Minuten eine E-Mail
|
|
36
|
+
mit Informationen zur Änderung Ihres Passworts.
|
|
37
|
+
edit:
|
|
38
|
+
description: Ihr Passwort wurde zurückgesetzt. Wählen Sie unten ein
|
|
39
|
+
neues aus.
|
|
40
|
+
title: Passwort ändern
|
|
41
|
+
new:
|
|
42
|
+
description: Geben Sie ihre E-Mail Adresse ein, um einen Link zum
|
|
43
|
+
Ändern ihres Passworts zu bekommen.
|
|
44
|
+
title: Passwort zurücksetzen
|
|
45
|
+
sessions:
|
|
46
|
+
form:
|
|
47
|
+
forgot_password: Passwort vergessen?
|
|
48
|
+
sign_up: Account anlegen
|
|
49
|
+
new:
|
|
50
|
+
title: Anmelden
|
|
51
|
+
users:
|
|
52
|
+
new:
|
|
53
|
+
sign_in: Anmelden
|
|
54
|
+
title: Account anlegen
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
fr:
|
|
2
|
+
clearance_mailer:
|
|
3
|
+
change_password:
|
|
4
|
+
opening:
|
|
5
|
+
"Quelqu'un, en espérant que ce soit vous, nous a demandé de vous envoyer cet e-mail
|
|
6
|
+
afin de modifier votre mot de passe:"
|
|
7
|
+
closing:
|
|
8
|
+
"Si vous n'avez rien demandé, vous pouvez ignorer cet e-mail. Votre mot de passe n'a pas été modifié."
|
|
9
|
+
flashes:
|
|
10
|
+
failure_when_forbidden:
|
|
11
|
+
"Merci de vérifier l'URL ou réessayez de soumettre le formulaire."
|
|
12
|
+
failure_after_update:
|
|
13
|
+
'Le mot de passe ne peut être vide.'
|
|
14
|
+
failure_after_create:
|
|
15
|
+
"Adresse e-mail ou mot de passe incorrect. Voulez-vous créer un nouveau compte ?
|
|
16
|
+
<a href='%{sign_up_path}'>S'inscrire</a>."
|
|
17
|
+
failure_when_access_denied: "S'il vous plaît, vous devez vous identifier"
|
|
18
|
+
helpers:
|
|
19
|
+
submit:
|
|
20
|
+
password:
|
|
21
|
+
submit:
|
|
22
|
+
'Réinitialiser votre mot de passe'
|
|
23
|
+
password_reset:
|
|
24
|
+
submit:
|
|
25
|
+
'Sauvegarder le mot de passe'
|
|
26
|
+
session:
|
|
27
|
+
submit:
|
|
28
|
+
'Se connecter'
|
|
29
|
+
user:
|
|
30
|
+
create:
|
|
31
|
+
"S'inscrire"
|
|
32
|
+
label:
|
|
33
|
+
password:
|
|
34
|
+
email:
|
|
35
|
+
'Adresse e-mail'
|
|
36
|
+
password_reset:
|
|
37
|
+
password:
|
|
38
|
+
'Choisissez un mot de passe'
|
|
39
|
+
layouts:
|
|
40
|
+
application:
|
|
41
|
+
sign_in:
|
|
42
|
+
'Se connecter'
|
|
43
|
+
sign_out:
|
|
44
|
+
'Se déconnecter'
|
|
45
|
+
passwords:
|
|
46
|
+
create:
|
|
47
|
+
description:
|
|
48
|
+
'Vous allez prochainement recevoir un e-mail contenant les instructions afin de changer votre mot de passe.'
|
|
49
|
+
edit:
|
|
50
|
+
description:
|
|
51
|
+
"Votre mot de passe a été réinitialisé. Merci d'en choisir un nouveau."
|
|
52
|
+
title:
|
|
53
|
+
'Changez votre mot de passe'
|
|
54
|
+
new:
|
|
55
|
+
description:
|
|
56
|
+
'Afin de recevoir par mail les informations nécessaires pour changer votre mot de passe,
|
|
57
|
+
merci de nous renseigner votre adresse e-mail.'
|
|
58
|
+
title:
|
|
59
|
+
'Réinitialiser votre mot de passe'
|
|
60
|
+
sessions:
|
|
61
|
+
form:
|
|
62
|
+
forgot_password:
|
|
63
|
+
'Mot de pass oublié ?'
|
|
64
|
+
sign_up:
|
|
65
|
+
"S'incrire"
|
|
66
|
+
new:
|
|
67
|
+
title:
|
|
68
|
+
'Se connecter'
|
|
69
|
+
users:
|
|
70
|
+
new:
|
|
71
|
+
title:
|
|
72
|
+
"S'incrire"
|
|
73
|
+
sign_in:
|
|
74
|
+
'Se connecter'
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
pt-BR:
|
|
2
|
+
clearance_mailer:
|
|
3
|
+
change_password:
|
|
4
|
+
opening:
|
|
5
|
+
"Alguém, esperamos que você, solicitou que enviássemos um link para alterar a sua senha:"
|
|
6
|
+
closing:
|
|
7
|
+
"Se você não solicitou isso, ignore este email. Sua senha não foi alterada."
|
|
8
|
+
flashes:
|
|
9
|
+
failure_when_forbidden:
|
|
10
|
+
"Por favor, verifique a URL, ou tente enviar o formulário novamente."
|
|
11
|
+
failure_after_update:
|
|
12
|
+
"Senha não pode ficar em branco."
|
|
13
|
+
failure_after_create:
|
|
14
|
+
"Email ou senha não encontrados. Deseja criar uma nova conta? <a href='%{sign_up_path}'>Registrar-se</a>."
|
|
15
|
+
failure_when_access_denied:
|
|
16
|
+
"Por favor, efetue login."
|
|
17
|
+
helpers:
|
|
18
|
+
submit:
|
|
19
|
+
password:
|
|
20
|
+
submit:
|
|
21
|
+
"Alterar senha"
|
|
22
|
+
password_reset:
|
|
23
|
+
submit:
|
|
24
|
+
"Salvar senha"
|
|
25
|
+
session:
|
|
26
|
+
submit:
|
|
27
|
+
"Entrar"
|
|
28
|
+
user:
|
|
29
|
+
create:
|
|
30
|
+
"Registrar-se"
|
|
31
|
+
label:
|
|
32
|
+
password:
|
|
33
|
+
email:
|
|
34
|
+
"Endereço de email"
|
|
35
|
+
password_reset:
|
|
36
|
+
password:
|
|
37
|
+
"Escolha uma senha"
|
|
38
|
+
layouts:
|
|
39
|
+
application:
|
|
40
|
+
sign_in:
|
|
41
|
+
"Entrar"
|
|
42
|
+
sign_out:
|
|
43
|
+
"Sair"
|
|
44
|
+
passwords:
|
|
45
|
+
create:
|
|
46
|
+
description:
|
|
47
|
+
"Nos próximos minutos você vai receber um email contendo instruções para alterar sua senha."
|
|
48
|
+
edit:
|
|
49
|
+
description:
|
|
50
|
+
"Sua senha foi resetada. Escolha uma nova senha abaixo."
|
|
51
|
+
title:
|
|
52
|
+
"Altere sua senha"
|
|
53
|
+
new:
|
|
54
|
+
description:
|
|
55
|
+
"Para receber um link para resetar sua senha, por favor, digite seu endereço de email."
|
|
56
|
+
title:
|
|
57
|
+
"Resete sua senha"
|
|
58
|
+
sessions:
|
|
59
|
+
form:
|
|
60
|
+
forgot_password:
|
|
61
|
+
"Esqueceu sua senha?"
|
|
62
|
+
sign_up:
|
|
63
|
+
"Registrar-se"
|
|
64
|
+
new:
|
|
65
|
+
title:
|
|
66
|
+
"Entre"
|
|
67
|
+
users:
|
|
68
|
+
new:
|
|
69
|
+
title:
|
|
70
|
+
"Registre-se"
|
|
71
|
+
sign_in:
|
|
72
|
+
"Entrar"
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
zh-CN:
|
|
2
|
+
clearance:
|
|
3
|
+
models:
|
|
4
|
+
clearance_mailer:
|
|
5
|
+
change_password: 修改密码
|
|
6
|
+
clearance_mailer:
|
|
7
|
+
change_password:
|
|
8
|
+
closing: 如果该请求不是您发出的,请忽略这封邮件,同时您的账号密码也不会改变。
|
|
9
|
+
link_text: 修改我的账号密码
|
|
10
|
+
opening: 有人希望我们给您发送一封修改账号密码的邮件,如果不是,请忽略该邮件
|
|
11
|
+
flashes:
|
|
12
|
+
failure_after_create: 邮箱或密码输入不正确
|
|
13
|
+
failure_after_update: 密码不能为空
|
|
14
|
+
failure_when_forbidden: 请点击两次 URL 或者尝试提交表单
|
|
15
|
+
the form again.
|
|
16
|
+
failure_when_not_signed_in: 请登录
|
|
17
|
+
helpers:
|
|
18
|
+
label:
|
|
19
|
+
password:
|
|
20
|
+
email: 输入邮箱
|
|
21
|
+
password_reset:
|
|
22
|
+
password: 输入密码
|
|
23
|
+
submit:
|
|
24
|
+
password:
|
|
25
|
+
submit: 重置密码
|
|
26
|
+
password_reset:
|
|
27
|
+
submit: 保存密码
|
|
28
|
+
session:
|
|
29
|
+
submit: 登录
|
|
30
|
+
user:
|
|
31
|
+
create: 注册
|
|
32
|
+
layouts:
|
|
33
|
+
application:
|
|
34
|
+
sign_in: 登录
|
|
35
|
+
sign_out: 注册
|
|
36
|
+
passwords:
|
|
37
|
+
create:
|
|
38
|
+
description: 您将会接收到一封邮件,请按照邮件内容修改您的账号密码
|
|
39
|
+
edit:
|
|
40
|
+
description: 您的账号密码已经被重置,请输入新的账号密码。
|
|
41
|
+
title: 修改密码
|
|
42
|
+
new:
|
|
43
|
+
description: 请填写您的账号邮箱。
|
|
44
|
+
title: 重置密码
|
|
45
|
+
sessions:
|
|
46
|
+
form:
|
|
47
|
+
forgot_password: "忘记密码 ?"
|
|
48
|
+
sign_up: 注册
|
|
49
|
+
new:
|
|
50
|
+
title: 登录
|
|
51
|
+
users:
|
|
52
|
+
new:
|
|
53
|
+
sign_in: 登录
|
|
54
|
+
title: 注册
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require 'clearance/i18n'
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
|
2
|
+
|
|
3
|
+
require 'rails/all'
|
|
4
|
+
|
|
5
|
+
Bundler.require(*Rails.groups)
|
|
6
|
+
require 'clearance/i18n'
|
|
7
|
+
|
|
8
|
+
module Dummy
|
|
9
|
+
class Application < Rails::Application
|
|
10
|
+
# Settings in config/environments/* take precedence over those specified here.
|
|
11
|
+
# Application configuration should go into files in config/initializers
|
|
12
|
+
# -- all .rb files in that directory are automatically loaded.
|
|
13
|
+
|
|
14
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
|
15
|
+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
|
16
|
+
# config.time_zone = 'Central Time (US & Canada)'
|
|
17
|
+
|
|
18
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
|
19
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
|
20
|
+
# config.i18n.default_locale = :de
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# SQLite version 3.x
|
|
2
|
+
# gem install sqlite3
|
|
3
|
+
#
|
|
4
|
+
# Ensure the SQLite 3 gem is defined in your Gemfile
|
|
5
|
+
# gem 'sqlite3'
|
|
6
|
+
development:
|
|
7
|
+
adapter: sqlite3
|
|
8
|
+
database: db/development.sqlite3
|
|
9
|
+
pool: 5
|
|
10
|
+
timeout: 5000
|
|
11
|
+
|
|
12
|
+
# Warning: The database defined as "test" will be erased and
|
|
13
|
+
# re-generated from your development database when you run "rake".
|
|
14
|
+
# Do not set this db to the same as development or production.
|
|
15
|
+
test:
|
|
16
|
+
adapter: sqlite3
|
|
17
|
+
database: db/test.sqlite3
|
|
18
|
+
pool: 5
|
|
19
|
+
timeout: 5000
|
|
20
|
+
|
|
21
|
+
production:
|
|
22
|
+
adapter: sqlite3
|
|
23
|
+
database: db/production.sqlite3
|
|
24
|
+
pool: 5
|
|
25
|
+
timeout: 5000
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Dummy::Application.configure do
|
|
2
|
+
config.action_controller.allow_forgery_protection = false
|
|
3
|
+
config.action_controller.perform_caching = false
|
|
4
|
+
config.action_dispatch.show_exceptions = false
|
|
5
|
+
config.action_mailer.delivery_method = :test
|
|
6
|
+
config.active_support.deprecation = :stderr
|
|
7
|
+
config.cache_classes = true
|
|
8
|
+
config.consider_all_requests_local = true
|
|
9
|
+
config.eager_load = false
|
|
10
|
+
config.serve_static_assets = true
|
|
11
|
+
config.static_cache_control = 'public, max-age=3600'
|
|
12
|
+
end
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Dummy::Application.config.secret_key_base = 'fe1a3d78d4d0c038f1ac1ffc4fe7e717da7418134093d4700046e67126f4ea8324485e8205ca536671423a44ea1bdc13490cdb1614ca18cbf465d13c98c15e58'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
|
|
File without changes
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: clearance-i18n
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Joe Ferris
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2016-05-25 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: clearance
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: 1.0.0
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: 1.0.0
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: rspec
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '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'
|
|
41
|
+
description: Multilingual support using packaged yml locale files.
|
|
42
|
+
email: support@thoughtbot.com
|
|
43
|
+
executables: []
|
|
44
|
+
extensions: []
|
|
45
|
+
extra_rdoc_files: []
|
|
46
|
+
files:
|
|
47
|
+
- MIT-LICENSE
|
|
48
|
+
- README.md
|
|
49
|
+
- Rakefile
|
|
50
|
+
- config/locales/ar.yml
|
|
51
|
+
- config/locales/bg.yml
|
|
52
|
+
- config/locales/da.yml
|
|
53
|
+
- config/locales/de.yml
|
|
54
|
+
- config/locales/fr.yml
|
|
55
|
+
- config/locales/pt-BR.yml
|
|
56
|
+
- config/locales/zh-CN.yml
|
|
57
|
+
- lib/clearance-i18n.rb
|
|
58
|
+
- lib/clearance/i18n.rb
|
|
59
|
+
- lib/clearance/i18n/railtie.rb
|
|
60
|
+
- lib/clearance/i18n/version.rb
|
|
61
|
+
- spec/clearance/i18n/railtie_spec.rb
|
|
62
|
+
- spec/dummy/app/controllers/application_controller.rb
|
|
63
|
+
- spec/dummy/app/helpers/application_helper.rb
|
|
64
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
|
65
|
+
- spec/dummy/config.ru
|
|
66
|
+
- spec/dummy/config/application.rb
|
|
67
|
+
- spec/dummy/config/boot.rb
|
|
68
|
+
- spec/dummy/config/database.yml
|
|
69
|
+
- spec/dummy/config/environment.rb
|
|
70
|
+
- spec/dummy/config/environments/test.rb
|
|
71
|
+
- spec/dummy/config/initializers/secret_token.rb
|
|
72
|
+
- spec/dummy/config/initializers/session_store.rb
|
|
73
|
+
- spec/dummy/config/routes.rb
|
|
74
|
+
- spec/dummy/log/test.log
|
|
75
|
+
- spec/spec_helper.rb
|
|
76
|
+
homepage: http://github.com/thoughtbot/clearance
|
|
77
|
+
licenses:
|
|
78
|
+
- MIT
|
|
79
|
+
metadata: {}
|
|
80
|
+
post_install_message:
|
|
81
|
+
rdoc_options: []
|
|
82
|
+
require_paths:
|
|
83
|
+
- lib
|
|
84
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
85
|
+
requirements:
|
|
86
|
+
- - ">="
|
|
87
|
+
- !ruby/object:Gem::Version
|
|
88
|
+
version: '0'
|
|
89
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
|
+
requirements:
|
|
91
|
+
- - ">="
|
|
92
|
+
- !ruby/object:Gem::Version
|
|
93
|
+
version: '0'
|
|
94
|
+
requirements: []
|
|
95
|
+
rubyforge_project:
|
|
96
|
+
rubygems_version: 2.4.5
|
|
97
|
+
signing_key:
|
|
98
|
+
specification_version: 4
|
|
99
|
+
summary: Use clearance in multiple languages
|
|
100
|
+
test_files:
|
|
101
|
+
- spec/clearance/i18n/railtie_spec.rb
|
|
102
|
+
- spec/spec_helper.rb
|
|
103
|
+
- spec/dummy/app/helpers/application_helper.rb
|
|
104
|
+
- spec/dummy/app/controllers/application_controller.rb
|
|
105
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
|
106
|
+
- spec/dummy/config.ru
|
|
107
|
+
- spec/dummy/config/environment.rb
|
|
108
|
+
- spec/dummy/config/routes.rb
|
|
109
|
+
- spec/dummy/config/environments/test.rb
|
|
110
|
+
- spec/dummy/config/boot.rb
|
|
111
|
+
- spec/dummy/config/database.yml
|
|
112
|
+
- spec/dummy/config/initializers/session_store.rb
|
|
113
|
+
- spec/dummy/config/initializers/secret_token.rb
|
|
114
|
+
- spec/dummy/config/application.rb
|
|
115
|
+
- spec/dummy/log/test.log
|