Skip to content

Commit

Permalink
Add info about setting locale folder path.
Browse files Browse the repository at this point in the history
Refs #9074
  • Loading branch information
ADmad committed Jul 6, 2016
1 parent 446ddf7 commit 6e4f458
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/I18n/README.md
Expand Up @@ -23,6 +23,16 @@ use Cake\I18n\I18n;
I18n::locale('en_US');
```

### Setting path to folder containing po files.

```php
use Cake\Core\Configure;

Configure::write('App.paths.locales', ['/path/with/trailing/slash/']);

Please refer to the [CakePHP Manual](http://book.cakephp.org/3.0/en/core-libraries/internationalization-and-localization.html#language-files) for details
about expected folder structure and file naming.

### Translating a Message

```php
Expand Down

0 comments on commit 6e4f458

Please sign in to comment.