Skip to content

Commit

Permalink
Merge pull request #38 from ARCANEDEV/patch-1
Browse files Browse the repository at this point in the history
Updating the package + cleaning
  • Loading branch information
arcanedev-maroc committed Apr 18, 2016
2 parents da32d9e + cb1bcbb commit 8024cdb
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 61 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/_docs export-ignore
/tests export-ignore
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.scrutinizer.yml export-ignore
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 ARCANEDEV <[email protected]> - Localization
Copyright (c) 2015-2016 | ARCANEDEV <[email protected]> - 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
Expand Down
78 changes: 46 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
@@ -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&copy;](http://www.arcanedev.net/)*

Expand Down Expand Up @@ -51,23 +37,51 @@ 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.
- [x] Laravel 5.1 supported.
- [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 [email protected] 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
29 changes: 1 addition & 28 deletions src/LocalizationServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function boot()
parent::boot();

$this->publishConfig();
$this->registerViews();
$this->publishViews();
}

/**
Expand Down Expand Up @@ -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');
}
}

0 comments on commit 8024cdb

Please sign in to comment.