Skip to content

Commit ae50ba7

Browse files
committed
Merge pull request #232 from Kamahl19/master
Slovak language. Thanks @Kamahl19
2 parents 44d2e5a + 8e030fa commit ae50ba7

File tree

3 files changed

+72
-2
lines changed

3 files changed

+72
-2
lines changed

src/lang/en/confide.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
),
3030

3131
'alerts' => array(
32-
'account_created' => 'Your account has been successfully created. Please check your email for the instructions on how to confirm your account.',
32+
'account_created' => 'Your account has been successfully created.',
33+
'instructions_sent' => 'Please check your email for the instructions on how to confirm your account.',
3334
'too_many_attempts' => 'Too many attempts. Try again in few minutes.',
3435
'wrong_credentials' => 'Incorrect username, email or password.',
3536
'not_confirmed' => 'Your account may not be confirmed. Check your email for the confirmation link',

src/lang/sk/confide.php

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<?php
2+
3+
return array(
4+
5+
'username' => 'Užívateľské meno',
6+
'password' => 'Heslo',
7+
'password_confirmation' => 'Potvrdiť heslo',
8+
'e_mail' => 'Email',
9+
'username_e_mail' => 'Užívateľské meno alebo Email',
10+
11+
'signup' => array(
12+
'title' => 'Registrovať',
13+
'desc' => 'Vytvoriť nový účet',
14+
'confirmation_required' => 'Vyžaduje sa aktivácia účtu emailom',
15+
'submit' => 'Registrovať',
16+
),
17+
18+
'login' => array(
19+
'title' => 'Prihlásiť sa',
20+
'desc' => 'Zadajte svoje prihlasovacie údaje',
21+
'forgot_password' => '(zabudol som heslo)',
22+
'remember' => 'Zapamätať prihlásenie',
23+
'submit' => 'Prihlásiť',
24+
),
25+
26+
'forgot' => array(
27+
'title' => 'Zabudnuté heslo',
28+
'submit' => 'Pokračovať',
29+
),
30+
31+
'alerts' => array(
32+
'account_created' => 'Váš účet bol úspešne vytvorený.',
33+
'instructions_sent' => 'Na email vám boli zaslané inštrukcie na aktiváciu účtu.',
34+
'too_many_attempts' => 'Prekročili ste limit pokusov o registráciu. Skúste to opäť o niekoľko minút.',
35+
'wrong_credentials' => 'Nesprávne užívateľské meno, email alebo heslo.',
36+
'not_confirmed' => 'Váš účet nie je aktivovaný. Inštrukcie na aktiváciu vám boli zaslané na email.',
37+
'confirmation' => 'Váš účet bol aktivovaný. Teraz sa môžete prihlásiť.',
38+
'wrong_confirmation' => 'Nesprávny aktivačný kód.',
39+
'password_forgot' => 'Inštrukcie pre obnovenie hesla boli odoslané na váš email.',
40+
'wrong_password_forgot' => 'Užívateľ nebol nájdený.',
41+
'password_reset' => 'Vaše heslo bolo úspešne zmenené.',
42+
'wrong_password_reset' => 'Nesprávne heslo.',
43+
'wrong_token' => 'Token potrebný pre obnovenie hesla nie je správny.',
44+
'duplicated_credentials' => 'Poskytnuté údaje sa už používajú. Skúste to opäť s inými údajmi.',
45+
),
46+
47+
'email' => array(
48+
'account_confirmation' => array(
49+
'subject' => 'Aktivácia účtu',
50+
'greetings' => 'Dobrý deň :name,',
51+
'body' => 'Pre aktiváciu účtu, kliknite na nasledujúci odkaz.',
52+
'farewell' => 'Prajeme pekný deň',
53+
),
54+
55+
'password_reset' => array(
56+
'subject' => 'Obnovenie hesla',
57+
'greetings' => 'Dobrý deň :name,',
58+
'body' => 'Pre obnovenie hesla, kliknite na nasledujúci odkaz.',
59+
'farewell' => 'Prajeme pekný deň',
60+
),
61+
),
62+
63+
);

src/views/generators/controller.blade.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,19 @@ public function {{ (! $restful) ? 'store' : 'postIndex' }}()
4343
4444
if ( ${{ lcfirst(Config::get('auth.model')) }}->id )
4545
{
46+
@if ( Config::get('confide::signup_confirm') && Config::get('confide::signup_email'))
47+
$notice = Lang::get('confide::confide.alerts.account_created') . ' ' . Lang::get('confide::confide.alerts.instructions_sent');
48+
@else
49+
$notice = Lang::get('confide::confide.alerts.account_created');
50+
@endif
51+
4652
// Redirect with success message, You may replace "Lang::get(..." for your custom message.
4753
@if (! $restful)
4854
return Redirect::action('{{ $name }}@login')
4955
@else
5056
return Redirect::to('user/login')
5157
@endif
52-
->with( 'notice', Lang::get('confide::confide.alerts.account_created') );
58+
->with( 'notice', $notice );
5359
}
5460
else
5561
{

0 commit comments

Comments
 (0)