Skip to content

Commit

Permalink
Merge pull request #232 from Kamahl19/master
Browse files Browse the repository at this point in the history
Slovak language. Thanks @Kamahl19
  • Loading branch information
andrew13 committed Mar 8, 2014
2 parents 44d2e5a + 8e030fa commit ae50ba7
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/lang/en/confide.php
Expand Up @@ -29,7 +29,8 @@
),

'alerts' => array(
'account_created' => 'Your account has been successfully created. Please check your email for the instructions on how to confirm your account.',
'account_created' => 'Your account has been successfully created.',
'instructions_sent' => 'Please check your email for the instructions on how to confirm your account.',
'too_many_attempts' => 'Too many attempts. Try again in few minutes.',
'wrong_credentials' => 'Incorrect username, email or password.',
'not_confirmed' => 'Your account may not be confirmed. Check your email for the confirmation link',
Expand Down
63 changes: 63 additions & 0 deletions src/lang/sk/confide.php
@@ -0,0 +1,63 @@
<?php

return array(

'username' => 'Užívateľské meno',
'password' => 'Heslo',
'password_confirmation' => 'Potvrdiť heslo',
'e_mail' => 'Email',
'username_e_mail' => 'Užívateľské meno alebo Email',

'signup' => array(
'title' => 'Registrovať',
'desc' => 'Vytvoriť nový účet',
'confirmation_required' => 'Vyžaduje sa aktivácia účtu emailom',
'submit' => 'Registrovať',
),

'login' => array(
'title' => 'Prihlásiť sa',
'desc' => 'Zadajte svoje prihlasovacie údaje',
'forgot_password' => '(zabudol som heslo)',
'remember' => 'Zapamätať prihlásenie',
'submit' => 'Prihlásiť',
),

'forgot' => array(
'title' => 'Zabudnuté heslo',
'submit' => 'Pokračovať',
),

'alerts' => array(
'account_created' => 'Váš účet bol úspešne vytvorený.',
'instructions_sent' => 'Na email vám boli zaslané inštrukcie na aktiváciu účtu.',
'too_many_attempts' => 'Prekročili ste limit pokusov o registráciu. Skúste to opäť o niekoľko minút.',
'wrong_credentials' => 'Nesprávne užívateľské meno, email alebo heslo.',
'not_confirmed' => 'Váš účet nie je aktivovaný. Inštrukcie na aktiváciu vám boli zaslané na email.',
'confirmation' => 'Váš účet bol aktivovaný. Teraz sa môžete prihlásiť.',
'wrong_confirmation' => 'Nesprávny aktivačný kód.',
'password_forgot' => 'Inštrukcie pre obnovenie hesla boli odoslané na váš email.',
'wrong_password_forgot' => 'Užívateľ nebol nájdený.',
'password_reset' => 'Vaše heslo bolo úspešne zmenené.',
'wrong_password_reset' => 'Nesprávne heslo.',
'wrong_token' => 'Token potrebný pre obnovenie hesla nie je správny.',
'duplicated_credentials' => 'Poskytnuté údaje sa už používajú. Skúste to opäť s inými údajmi.',
),

'email' => array(
'account_confirmation' => array(
'subject' => 'Aktivácia účtu',
'greetings' => 'Dobrý deň :name,',
'body' => 'Pre aktiváciu účtu, kliknite na nasledujúci odkaz.',
'farewell' => 'Prajeme pekný deň',
),

'password_reset' => array(
'subject' => 'Obnovenie hesla',
'greetings' => 'Dobrý deň :name,',
'body' => 'Pre obnovenie hesla, kliknite na nasledujúci odkaz.',
'farewell' => 'Prajeme pekný deň',
),
),

);
8 changes: 7 additions & 1 deletion src/views/generators/controller.blade.php
Expand Up @@ -43,13 +43,19 @@ public function {{ (! $restful) ? 'store' : 'postIndex' }}()
if ( ${{ lcfirst(Config::get('auth.model')) }}->id )
{
@if ( Config::get('confide::signup_confirm') && Config::get('confide::signup_email'))
$notice = Lang::get('confide::confide.alerts.account_created') . ' ' . Lang::get('confide::confide.alerts.instructions_sent');
@else
$notice = Lang::get('confide::confide.alerts.account_created');
@endif
// Redirect with success message, You may replace "Lang::get(..." for your custom message.
@if (! $restful)
return Redirect::action('{{ $name }}@login')
@else
return Redirect::to('user/login')
@endif
->with( 'notice', Lang::get('confide::confide.alerts.account_created') );
->with( 'notice', $notice );
}
else
{
Expand Down

0 comments on commit ae50ba7

Please sign in to comment.