Skip to content

Commit

Permalink
Improved localization docs #8
Browse files Browse the repository at this point in the history
  • Loading branch information
edigu committed Jul 17, 2015
1 parent e024bf9 commit d181d38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/docs/04.Localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
ZF2 Boilerplate ships with a ready-to-use **Translator Service** to easily create multi-lingual applications. A custom translator factory creates a properly configured `translator` service instance and performs few additinal tasks to see translated validation messages which provided by ZF2. Factory located at `Core\Service\Factory\TranslatorServiceFactory`, you can check out or customize it by your requirements.

## Multi-Language application
You can create additonal language files which are necessary for your app under the [languages](../module/Core/language) folder. Following same convention will be enough. Current language is english (`en`) and fallback language is english (`en`) too by default. If you wish to change the default langauge, modify `translator` > `locale` config key in `Core` > `config` > `module.config.php`
You can create additonal language files which are necessary for your app under the [languages](/module/Core/language) folder. Following same convention will be enough. Current language is english (`en`) and fallback language is english (`en`) too by default. If you wish to change the default langauge, modify `translator` > `locale` config key in `Core` > `config` > `module.config.php`

## Usage of the Translator service
In your controllers, grab the `translator` service instance via serviceLocator and use it:
Expand Down

0 comments on commit d181d38

Please sign in to comment.