<commit_before># Add Yaml file support for Laravel 4.0.x TranslationServiceProvider
This package uses Symfony/Yaml parser.

**Note:** This is a fork from the orignal version of Devitek: <https://github.com/Devitek/laravel-yaml-translation>


## Installing
Add ```"kaishiyoku/yaml-translation": "*"``` to your **composer.json** by running ```php composer.phar require kaishiyoku/yaml-translation```

And select version ```0.*```


## Add support in Laravel
Replace ```'Illuminate\Translation\TranslationServiceProvider',``` with ```'Kaishiyoku\Core\Translation\TranslationServiceProvider',``` in **app/config/app.php**.


## How to use
Just use regular **php** files or use **yml** or **yaml** files instead.
In order to use Yaml your localization files must end with **\*.yml.php** or **\*.yaml.php**


### Example
**PHP**:

```php
<?php

return array(
	'hello' => 'Hello :name',
    'author' => 'Kaishiyoku',
	'messages' => array(<commit_msg>adjusted readme<commit_after># Add Yaml file support for Laravel 4.0.x TranslationServiceProvider
This package uses Symfony/Yaml parser.

**Note:** This is a fork from the orignal version of Devitek: <https://github.com/Devitek/laravel-yaml-translation>


## Installing
Add ```"kaishiyoku/yaml-translation": "*"``` to your **composer.json**  
by running ```php composer.phar require kaishiyoku/yaml-translation```

And select version ```0.*```


## Add support in Laravel
Replace ```'Illuminate\Translation\TranslationServiceProvider',``` with ```'Kaishiyoku\Core\Translation\TranslationServiceProvider',``` in **app/config/app.php**.


## How to use
Just use regular **php** files or use **yml** or **yaml** files instead.
In order to use Yaml your localization files must end with **\*.yml.php** or **\*.yaml.php**


### Example
**PHP**:

```php
<?php

return array(
	'hello' => 'Hello :name',
    'author' => 'Kaishiyoku',
	'messages' => array(
{'fraction_non_alphanumeric': 0.1693121693121693, 'fraction_numerical': 0.0031746031746031746, 'mean_word_length': 5.1, 'pattern_counts': {'":': 2, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6356547', 'n_tokens_mistral': 604, 'n_tokens_neox': 583, 'n_words': 188}