From 20ce63bc054050919023f935fd0b9209a6026757 Mon Sep 17 00:00:00 2001 From: ARCANEDEV Date: Mon, 18 Apr 2016 14:29:17 +0100 Subject: [PATCH 1/4] Updating .gitattributes --- .gitattributes | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitattributes b/.gitattributes index 301e170..3a3ac45 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,6 @@ /_docs export-ignore /tests export-ignore +/.editorconfig export-ignore /.gitattributes export-ignore /.gitignore export-ignore /.scrutinizer.yml export-ignore From c5baf55a8b6dd0f73a1e556d90e09bcaa16ff281 Mon Sep 17 00:00:00 2001 From: ARCANEDEV Date: Mon, 18 Apr 2016 14:29:34 +0100 Subject: [PATCH 2/4] Updating LICENSE.md date --- LICENSE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE.md b/LICENSE.md index 2dbf538..84f2321 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015 ARCANEDEV - Localization +Copyright (c) 2015-2016 | ARCANEDEV - Localization Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From 98eb6127745e391b13a32d0d89a07196896a7531 Mon Sep 17 00:00:00 2001 From: ARCANEDEV Date: Mon, 18 Apr 2016 14:30:03 +0100 Subject: [PATCH 3/4] Updating README.md --- README.md | 78 ++++++++++++++++++++++++++++++++----------------------- 1 file changed, 46 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 14a623e..52f48a2 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,15 @@ -# Localization [![Packagist License][badge_license]](LICENSE.md) [![For Laravel 5][badge_laravel]](https://github.com/ARCANEDEV/Localization#localization) +# Localization [![Packagist License][badge_license]](LICENSE.md) [![For Laravel 5][badge_laravel]][link-github-repo] -[![Travis Status][badge_build]](https://travis-ci.org/ARCANEDEV/Localization) -[![HHVM Status][badge_hhvm]](http://hhvm.h4cc.de/package/arcanedev/localization) -[![Coverage Status][badge_coverage]](https://scrutinizer-ci.com/g/ARCANEDEV/Localization/?branch=master) -[![Scrutinizer Code Quality][badge_quality]](https://scrutinizer-ci.com/g/ARCANEDEV/Localization/?branch=master) -[![SensioLabs Insight][badge_insight]](https://insight.sensiolabs.com/projects/30a231b2-295e-466a-8733-fe95cf2bc48d) -[![Github Issues][badge_issues]](https://github.com/ARCANEDEV/Localization/issues) +[![Travis Status][badge_build]][link-travis] +[![HHVM Status][badge_hhvm]][link-hhvm] +[![Coverage Status][badge_coverage]][link-scrutinizer] +[![Scrutinizer Code Quality][badge_quality]][link-scrutinizer] +[![SensioLabs Insight][badge_insight]][link-insight] +[![Github Issues][badge_issues]][link-github-issues] -[![Packagist][badge_package]](https://packagist.org/packages/arcanedev/localization) -[![Packagist Release][badge_release]](https://packagist.org/packages/arcanedev/localization) -[![Packagist Downloads][badge_downloads]](https://packagist.org/packages/arcanedev/localization) - -[badge_license]: http://img.shields.io/packagist/l/arcanedev/localization.svg?style=flat-square -[badge_laravel]: https://img.shields.io/badge/For-Laravel%205-orange.svg?style=flat-square - -[badge_build]: http://img.shields.io/travis/ARCANEDEV/Localization.svg?style=flat-square -[badge_hhvm]: https://img.shields.io/hhvm/arcanedev/localization.svg?style=flat-square -[badge_coverage]: https://img.shields.io/scrutinizer/coverage/g/ARCANEDEV/Localization.svg?style=flat-square -[badge_quality]: https://img.shields.io/scrutinizer/g/ARCANEDEV/Localization.svg?style=flat-square -[badge_insight]: https://img.shields.io/sensiolabs/i/30a231b2-295e-466a-8733-fe95cf2bc48d.svg?style=flat-square -[badge_issues]: http://img.shields.io/github/issues/ARCANEDEV/Localization.svg?style=flat-square - -[badge_package]: https://img.shields.io/badge/package-arcanedev/localization-blue.svg?style=flat-square -[badge_release]: https://img.shields.io/packagist/v/arcanedev/localization.svg?style=flat-square -[badge_downloads]: https://img.shields.io/packagist/dt/arcanedev/localization.svg?style=flat-square +[![Packagist][badge_package]][link-packagist] +[![Packagist Release][badge_release]][link-packagist] +[![Packagist Downloads][badge_downloads]][link-packagist] *By [ARCANEDEV©](http://www.arcanedev.net/)* @@ -51,12 +37,6 @@ Feel free to check out the [releases](https://github.com/ARCANEDEV/Localization/ 5. [Extras](_docs/5-Extras.md) 6. [FAQ](_docs/6-FAQ.md) -### TODOS - - - [ ] 100% Code coverage + Maximum code quality. - - [ ] Complete the documentation. - - [ ] Adding more regionals for locales. - ### DONE - [x] Laravel 5.2 supported. @@ -64,10 +44,44 @@ Feel free to check out the [releases](https://github.com/ARCANEDEV/Localization/ - [x] Laravel 5.0 supported. - [x] Adding language selector view. -## Credit +### TODOS -The Localization package was inspired from [mcamara/laravel-localization](https://github.com/mcamara/laravel-localization). + - [ ] 100% Code coverage + Maximum code quality. + - [ ] Complete the documentation. + - [ ] Adding more regionals for locales. ## Contribution Any ideas are welcome. Feel free to submit any issues or pull requests, please check the [contribution guidelines](CONTRIBUTING.md). + +## Security + +If you discover any security related issues, please email arcanedev.maroc@gmail.com instead of using the issue tracker. + +## Credits + +- The Localization package was inspired from [mcamara/laravel-localization](https://github.com/mcamara/laravel-localization). +- [ARCANEDEV][link-author] +- [All Contributors][link-contributors] + +[badge_license]: http://img.shields.io/packagist/l/arcanedev/localization.svg?style=flat-square +[badge_laravel]: https://img.shields.io/badge/For-Laravel%205-orange.svg?style=flat-square +[badge_build]: http://img.shields.io/travis/ARCANEDEV/Localization.svg?style=flat-square +[badge_hhvm]: https://img.shields.io/hhvm/arcanedev/localization.svg?style=flat-square +[badge_coverage]: https://img.shields.io/scrutinizer/coverage/g/ARCANEDEV/Localization.svg?style=flat-square +[badge_quality]: https://img.shields.io/scrutinizer/g/ARCANEDEV/Localization.svg?style=flat-square +[badge_insight]: https://img.shields.io/sensiolabs/i/30a231b2-295e-466a-8733-fe95cf2bc48d.svg?style=flat-square +[badge_issues]: http://img.shields.io/github/issues/ARCANEDEV/Localization.svg?style=flat-square +[badge_package]: https://img.shields.io/badge/package-arcanedev/localization-blue.svg?style=flat-square +[badge_release]: https://img.shields.io/packagist/v/arcanedev/localization.svg?style=flat-square +[badge_downloads]: https://img.shields.io/packagist/dt/arcanedev/localization.svg?style=flat-square + +[link-author]: https://github.com/arcanedev-maroc +[link-github-repo]: https://github.com/ARCANEDEV/Localization +[link-github-issues]: https://github.com/ARCANEDEV/Localization/issues +[link-contributors]: https://github.com/ARCANEDEV/Localization/graphs/contributors +[link-packagist]: https://packagist.org/packages/arcanedev/localization +[link-travis]: https://travis-ci.org/ARCANEDEV/Localization +[link-hhvm]: http://hhvm.h4cc.de/package/arcanedev/localization +[link-scrutinizer]: https://scrutinizer-ci.com/g/ARCANEDEV/Localization/?branch=master +[link-insight]: https://insight.sensiolabs.com/projects/30a231b2-295e-466a-8733-fe95cf2bc48d From cb1bcbb82f554aa863af4f0ce168df6cc5ace2eb Mon Sep 17 00:00:00 2001 From: ARCANEDEV Date: Mon, 18 Apr 2016 14:31:22 +0100 Subject: [PATCH 4/4] Updating LocalizationServiceProvider --- src/LocalizationServiceProvider.php | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/src/LocalizationServiceProvider.php b/src/LocalizationServiceProvider.php index 3e5e565..4d7ab0b 100644 --- a/src/LocalizationServiceProvider.php +++ b/src/LocalizationServiceProvider.php @@ -67,7 +67,7 @@ public function boot() parent::boot(); $this->publishConfig(); - $this->registerViews(); + $this->publishViews(); } /** @@ -105,31 +105,4 @@ private function registerLocalization() Facades\Localization::class ); } - - /* ------------------------------------------------------------------------------------------------ - | Resources - | ------------------------------------------------------------------------------------------------ - */ - /** - * Publishes configs. - */ - private function publishConfig() - { - $this->publishes([ - $this->getConfigFile() => config_path("{$this->package}.php"), - ], 'config'); - } - - /** - * Register and published Views. - */ - private function registerViews() - { - $viewsPath = $this->getBasePath() . '/resources/views'; - - $this->loadViewsFrom($viewsPath, $this->package); - $this->publishes([ - $viewsPath => base_path('resources/views/vendor/' . $this->package), - ], 'views'); - } }