Skip to content

Commit

Permalink
Merge pull request #53 from Remo/lang-dir
Browse files Browse the repository at this point in the history
lang strings
  • Loading branch information
msurguy committed Apr 21, 2014
2 parents e32647c + 9dbfcdf commit aed545a
Show file tree
Hide file tree
Showing 36 changed files with 332 additions and 154 deletions.
41 changes: 41 additions & 0 deletions app/lang/en/admin.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

return array(
'editing_category' => 'Editing category',
'viewing_category' => 'Viewing category',
'category_for_tricks' => 'Categories for Laravel tricks',
'add_new_category' => 'Add new Category',
'title' => 'Title',
'name' => 'Name',
'description' => 'Description',
'num_of_tricks' => '# of Tricks',
'actions' => 'Actions',
'cancel' => 'Cancel',
'edit' => 'Edit',
'create' => 'Create',
'keep' => 'Keep',
'tag' => 'Tag',
'add_new_tag' => 'Add new Tag',
'viewing_users' => 'Viewing Users',
'tag_will_be_deleted' => 'This Tag will be deleted!',
'all_tags' => 'All Tags',
'adding_new_tag' => 'Adding new Tag',
'delete' => 'Delete',
'viewing_tags' => 'Viewing Tags',
'adding_new_category' => 'Adding new category',
'editing_a_category' => 'Editing a category',
'editing_tag' => 'Editing tag',
'editing_a_tag' => 'Editing a tag',
'save_category' => 'Save category',
'save_tag' => 'Save tag',
'please_fix_errors' => 'Please fix the errors below:',
'are_you_sure' => 'Are you sure?',
'category_will_be_deleted' => 'This Category will be deleted!',
'showing_all_users' => 'Showing all users',
'avatar' => 'Avatar',
'email' => 'Email',
'tricks' => 'Tricks',
'date_registered' => 'Date Registered',
'github_profile' => 'Github Profile?',

);
7 changes: 7 additions & 0 deletions app/lang/en/emails.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

return array(
'password_reset' => 'Password Reset',
'reset_password_here' => 'To reset your password, complete this form: :form_link',

);
17 changes: 17 additions & 0 deletions app/lang/en/feeds.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

return array(
'title' => 'Laravel-Tricks',
'link' => 'http://www.laravel-tricks.com',
'sub_title' => 'Laravel tricks is a website that aggregates useful tips and tricks for Laravel PHP framework',
'author' => '
<author>
<name>Maks Surguy</name>
<uri>http://twitter.com/msurguy</uri>
</author>
<author>
<name>Stidges</name>
<uri>http://twitter.com/stidges</uri>
</author>',
);

42 changes: 40 additions & 2 deletions app/lang/en/home.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,48 @@

return array(
'about_tricks_website' => 'About Laravel-Tricks website',
'about_title' => 'About Laravel tricks',
'error' => 'Error',
'error_title' => 'Whoops... That\'s an error...',
'registration' => 'Registration',
'errors_during_registration' => 'There were errors during registration:',
'password' => 'Password',
'password_placeholder' => 'Password...',
'or' => 'OR',
'already_have_an_account' => 'Already have an account?',
'confirm_password' => 'Confirm Password',
'confirm_password_placeholder' => 'Confirm Password...',
'email' => 'Email',
'email_placeholder' => 'Email...',
'username' => 'Username',
'username_placeholder' => 'Username...',
'password_placeholder' => 'Password...',
'register' => 'Register',
'register_with_github' => 'Register with Github',
'github_mail_not_verified' => 'You don\'t have any verified emails in your Github profile, please register using email',
'welcome' => 'Welcome',
'forgot_your_password' => 'Forgot your password?',
'do_not_have_account_yet' => 'Don\'t have an account yet?',
'login' => 'Login',
'registration' => 'Registration',

'login_with_github' => 'Login with Github',
'login_title' => 'Login',
'email_or_password_incorrect' => 'E-mail or password was incorrect, please try again',
'password_has_been_reset' => 'Your password has been reset, please log in',
'remember_me' => 'Remember me',
'latest_tricks' => 'Latest tricks',
'share_title' => 'Share &amp; follow',
'share_twitter' => 'Share on Twitter',
'twitter_text' => 'Tips and Tricks for @laravelphp from @laraveltricks #php #dev #tips',
'share_facebook' => 'Share on Facebook',
'facebook_text' => 'Useful Tips and Tricks for Laravel PHP framework',
'about_what_is_this' => '<h2>What is this</h2>
<p>Laravel Tricks was created to help <a href="http://laravel.com" target="_blank">Laravel</a> community find and share interesting ways of using <a href="http://laravel.com" target="_blank">Laravel</a> framework</p>
<p>The idea is simple: When you work with Laravel long enough you find some cool ways of using it, and to other people they might seem as &quot;tricks&quot; so we thought to create a centralized place for all Laravel users to share those findings.</p>',
'about_who' => '<h2>Who?</h2>
<p>Laravel Tricks website was created by <a target="_blank" href="http://twitter.com/stidges">Stidges</a> and <a target="_blank" href="http://twitter.com/msurguy">Maks Surguy</a> in November 2013</p>
<h3>Want the source?</h3>
The source of this website is available on <a target="_blank" href="https://github.com/CodepadME/laravel-tricks" title="Get the source of this site">Github</a>.'
);

10 changes: 10 additions & 0 deletions app/lang/en/layouts.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

return array(
'meta_description' => 'Laravel tricks is a website that aggregates useful tips and tricks for Laravel PHP framework',
'meta_author' => 'Stidges, @stidges and Maks Surguy, @msurguy',
'site_title' => 'Laravel-Tricks.com',

);


21 changes: 21 additions & 0 deletions app/lang/en/partials.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

return array(
'credits' => 'Website built with <a href="http://laravel.com">Laravel</a> by <a target="_blank" href="http://twitter.com/stidges">Stidges</a> &amp; <a target="_blank" href="http://twitter.com/msurguy">Maks Surguy</a>',
'about' => 'About',
'register' => 'Register',
'login' => 'Login',
'profile' => 'Profile',
'my_tricks' => 'My Tricks',
'my_profile' => 'My Profile',
'toggle_navigation' => 'Toggle navigation',
'search_placeholder' => 'Search...',
'my_favorites' => 'My Favorites',
'settings' => 'Settings',
'logout' => 'Logout',
'footer_links' => '<a target="_blank" href="http://twitter.com/laraveltricks" title="Follow updates"><i class="fa fa-twitter fa-lg"></i></a>
|
<a target="_blank" href="https://github.com/CodepadME/laravel-tricks" title="Get the source of this site"><i class="fa fa-github fa-lg"></i></a>',

);

10 changes: 10 additions & 0 deletions app/lang/en/password.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
return array(
'reset_password' => 'Reset password',
'resetting_password' => 'Resetting password',
'mail_has_been_sent' => 'An e-mail with the password reset link has been sent.',
'email' => 'Email',
'email_reset_placeholder' => 'Email',
'new_password' => 'New Password',
'confirm_password' => 'Confirm New Password',
'reset' => 'Reset password',
'remember_password' => 'Remembered password? Login',
'invalid_password_or_mail' => 'The password reset token or email is invalid',
'resetting_password' => 'Resetting password',
'email_placeholder' => 'E-mail to send password reminder...',

);

1 change: 1 addition & 0 deletions app/lang/en/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

return array(
'search_results_for' => 'Search results for ":term"',
'please_provide_search_term' => 'Please provide a search term',

);

20 changes: 20 additions & 0 deletions app/lang/en/tricks.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,24 @@

return array(
'trick' => 'Trick',
'submitted' => 'Submitted :timeago :categories',
'are_you_sure' => 'Are you sure?',
'cancel' => 'Cancel',
'creating_new_trick' => 'Creating a new trick',
'update_trick' => 'Update Trick',
'delete' => 'Delete',
'title' => 'Title',
'no_tricks_found' => 'Sorry, but I couldn\'t find any tricks for you!',
'tag_trick_placeholder' => 'Tag this trick',
'categorize_trick_placeholder' => 'Choose Categories for this trick',
'title_placeholder' => 'Name this trick',
'description' => 'Description',
'remove_trick' => 'Remove trick',
'trick_description_placeholder' => 'Give detailed description of the trick',
'trick_code' => 'Trick code:',
'save_trick' => 'Save Trick',
'editing_trick' => 'Editing trick',
'errors_while_editing' => 'There were errors while editing this trick:',
'errors_while_creating' => 'There were errors while creating this trick:',
'are_you_sure_text' => 'Are you sure you want to remove this trick?',
);
27 changes: 27 additions & 0 deletions app/lang/en/user.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,34 @@
<?php

return array(
'account_settings' => 'Account Settings',
'my_favorites' => 'My Favorites',
'profile' => 'Profile',
'settings' => 'Settings',
'welcome' => 'Welcome to Laravel tricks!',
'welcome_subtitle' => 'Explore the tricks, create and share some of your own!',
'my_tricks' => 'My tricks',
'create_new' => 'Create new',
'submitted_tricks' => 'Submitted tricks',
'last_trick' => 'Last trick:',
'total_tricks' => 'Total tricks:',
'joined' => 'Joined:',
'upload' => 'Upload',
'crop_picture' => 'Crop the picture',
'reset_form' => 'Reset form',
'update' => 'Update',
'confirm_password' => 'Confirm Password',
'password' => 'Password',
'new_password' => 'New Password,
'uploading' => 'Uploading',
'username' => 'Username',
'user_settings' => 'User settings',
'back_to_profile' => 'Back to profile',
'choose' => 'Choose',
'notice' => 'Notice:',
'notice_password' => 'Please create a password if you\'d like to login with email as well',
'profile_picture' => 'Profile Picture',
'settings_updated' => 'Your settings have been updated!',
'email' => 'Email',
'github_user_already_taken' => 'Your Github username has already been taken on this site, please choose a different username',
);
2 changes: 1 addition & 1 deletion app/views/browse/categories.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="container">
<div class="row push-down">
<div class="col-lg-8 col-md-6 col-sm-6 col-xs-12">
<h1 class="page-title">Categories</h1>
<h1 class="page-title">{{ trans('browse.categories') }}</h1>
</div>
<div class="col-lg-4 col-md-6 col-sm-6 col-xs-12">
@include('partials.search')
Expand Down
2 changes: 1 addition & 1 deletion app/views/browse/tags.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="container">
<div class="row push-down">
<div class="col-lg-8 col-md-6 col-sm-6 col-xs-12">
<h1 class="page-title">Tags</h1>
<h1 class="page-title">{{ trans('browse.tags') }}</h1>
</div>
<div class="col-lg-4 col-md-6 col-sm-6 col-xs-12">
@include('partials.search')
Expand Down
4 changes: 2 additions & 2 deletions app/views/emails/auth/reminder.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<meta charset="utf-8">
</head>
<body>
<h2>Password Reset</h2>
<h2>{{ trans('emails.password_reset') }}</h2>

<div>
To reset your password, complete this form: {{ URL::to('password/reset', array($token)) }}.
{{ trans('emails.reset_password_here', array('form_link' => URL::to('password/reset', array($token)))) }}
</div>
</body>
</html>
13 changes: 3 additions & 10 deletions app/views/feeds/atom.blade.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
{{ '<?xml version="1.0" encoding="utf-8"?>' }}

<feed xmlns="http://www.w3.org/2005/Atom">
<title>Laravel-Tricks</title>
<subtitle>Laravel tricks is a website that aggregates useful tips and tricks for Laravel PHP framework</subtitle>
<title>{{ trans('feeds.title') }}</title>
<subtitle>{{ trans('feeds.sub_title') }}</subtitle>
<link href="{{ Request::url() }}" rel="self" />
<updated>{{ Carbon\Carbon::now()->toATOMString() }}</updated>
<author>
<name>Maks Surguy</name>
<uri>http://twitter.com/msurguy</uri>
</author>
<author>
<name>Stidges</name>
<uri>http://twitter.com/stidges</uri>
</author>
{{ trans('feeds.author') }}
<id>tag:{{ Request::getHost() }},{{ date('Y') }}:/feed.atom</id>

@foreach($tricks as $trick)
Expand Down
6 changes: 3 additions & 3 deletions app/views/feeds/rss.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<title>Laravel-Tricks</title>
<link>http://www.laravel-tricks.com</link>
<title>{{ trans('feeds.title') }}</title>
<link>{{ trans('feeds.link') }}</link>
<atom:link href="{{ Request::url() }}" rel="self"></atom:link>
<description>Laravel tricks is a website that aggregates useful tips and tricks for Laravel PHP framework</description>
<description>{{ trans('feeds.sub_title') }}</description>
<language>en-us</language>
<lastBuildDate>{{ Carbon\Carbon::now()->toRSSString() }}</lastBuildDate>

Expand Down
23 changes: 8 additions & 15 deletions app/views/home/about.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,41 +4,34 @@
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<h1 class="text-center">About Laravel tricks </h1>
<h1 class="text-center">{{ trans('home.about_title') }}</h1>
<div class="row">
<div class="col-md-6">
<h2>What is this</h2>
<p>Laravel Tricks was created to help <a href="http://laravel.com" target="_blank">Laravel</a> community find and share interesting ways of using <a href="http://laravel.com" target="_blank">Laravel</a> framework</p>

<p>The idea is simple: When you work with Laravel long enough you find some cool ways of using it, and to other people they might seem as &quot;tricks&quot; so we thought to create a centralized place for all Laravel users to share those findings.</p>
{{ trans('home.about_what_is_this') }}
</div>

<div class="col-md-6">
<h2>Who?</h2>
<p>Laravel Tricks website was created by <a target="_blank" href="http://twitter.com/stidges">Stidges</a> and <a target="_blank" href="http://twitter.com/msurguy">Maks Surguy</a> in November 2013</p>

<h3>Want the source?</h3>
The source of this website is available on <a target="_blank" href="https://github.com/CodepadME/laravel-tricks" title="Get the source of this site">Github</a>.
{{ trans('home.about_who') }}
</div>
</div>
<div class="row">
<div class="col-md-12 text-center">
<h2>Share &amp; follow</h2>
<h2>{{ trans('home.share_title') }}</h2>
<p>
<a href="#" class="btn btn-info btn-lg" onclick="window.open(
'https://twitter.com/share?url='+encodeURIComponent('{{url('/')}}')+'&amp;text='+encodeURIComponent('Tips and Tricks for @laravelphp from @laraveltricks #php #dev #tips') + '&amp;count=none/',
'https://twitter.com/share?url='+encodeURIComponent('{{url('/')}}')+'&amp;text='+encodeURIComponent('{{ trans('home.twitter_text') }}') + '&amp;count=none/',
'twitter-share-dialog',
'width=626,height=436,top='+((screen.height - 436) / 2)+',left='+((screen.width - 626)/2 ));
return false;">
<i class="fa fa-twitter"></i> Share on Twitter
<i class="fa fa-twitter"></i> {{ trans('home.share_twitter') }}
</a>

<a href="#" class="btn btn-lg btn-primary" style="border-color: #4B7FCC; color: #428bca;" onclick="window.open(
'https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent('{{url('/')}}') +'&amp;t=' + encodeURIComponent('Useful Tips and Tricks for Laravel PHP framework'),
'https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent('{{url('/')}}') +'&amp;t=' + encodeURIComponent('{{ trans('home.facebook_text') }}'),
'facebook-share-dialog',
'width=626,height=436,top='+((screen.height - 436) / 2)+',left='+((screen.width - 626)/2 ));
return false;">
<i class="fa fa-facebook"></i> Share on Facebook
<i class="fa fa-facebook"></i> {{ trans('home.share_facebook') }}
</a>
</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/home/error.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="container">
<div class="row push-down">
<div class="col-lg-8 col-md-6 col-sm-6 col-xs-12">
<h1 class="page-title">Whoops... That's an error...</h1>
<h1 class="page-title">{{ trans('home.error_title') }}</h1>
</div>
<div class="col-lg-4 col-md-6 col-sm-6 col-xs-12">
@include('partials.search')
Expand Down
2 changes: 1 addition & 1 deletion app/views/home/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="container">
<div class="row push-down">
<div class="col-lg-8 col-md-6 col-sm-6 col-xs-12">
<h1 class="page-title">Latest tricks</h1>
<h1 class="page-title">{{ trans('home.latest_tricks') }}</h1>
</div>
<div class="col-lg-4 col-md-6 col-sm-6 col-xs-12">
@include('partials.search')
Expand Down

0 comments on commit aed545a

Please sign in to comment.