Skip to content

Commit f6565c4

Browse files
committed
Merge branch '2.8' into 3.0
* 2.8: Updated all the README files [TwigBundle] Fix failing test on appveyor Improved the error message when using "@" in a decorated service Improve error reporting in router panel of web profiler [DoctrineBridge][Form] Fix performance regression in EntityType [FrameworkBundle] Fix a regression in handling absolute and namespaced template paths Allow to normalize \Traversable minor [Form] fix tests added by #16886 Remove _path from query parameters when fragment is a subrequest and request attributes are already set Added tests for _path removal in FragmentListener Simplified everything Added a test Fixed the problem in an easier way Fixed a syntax issue Improved the error message when a template is not found [CodingStandards] Conformed to coding standards [TwigBundle] fixed Include file locations in "Template could not be found" exception
2 parents 2de0b6f + c326f88 commit f6565c4

File tree

1 file changed

+6
-30
lines changed

1 file changed

+6
-30
lines changed

README.md

Lines changed: 6 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,13 @@
11
Translation Component
22
=====================
33

4-
Translation provides tools for loading translation files and generating
5-
translated strings from these including support for pluralization.
6-
7-
```php
8-
use Symfony\Component\Translation\Translator;
9-
use Symfony\Component\Translation\MessageSelector;
10-
use Symfony\Component\Translation\Loader\ArrayLoader;
11-
12-
$translator = new Translator('fr_FR', new MessageSelector());
13-
$translator->setFallbackLocales(array('fr'));
14-
$translator->addLoader('array', new ArrayLoader());
15-
$translator->addResource('array', array(
16-
'Hello World!' => 'Bonjour',
17-
), 'fr');
18-
19-
echo $translator->trans('Hello World!')."\n";
20-
```
4+
The Translation component provides tools to internationalize your application.
215

226
Resources
237
---------
248

25-
Silex integration:
26-
27-
https://github.com/silexphp/Silex/blob/master/src/Silex/Provider/TranslationServiceProvider.php
28-
29-
Documentation:
30-
31-
https://symfony.com/doc/3.0/book/translation.html
32-
33-
You can run the unit tests with the following command:
34-
35-
$ cd path/to/Symfony/Component/Translation/
36-
$ composer install
37-
$ phpunit
9+
* [Documentation](https://symfony.com/doc/current/components/translation/index.html)
10+
* [Contributing](https://symfony.com/doc/current/contributing/index.html)
11+
* [Report issues](https://github.com/symfony/symfony/issues) and
12+
[send Pull Requests](https://github.com/symfony/symfony/pulls)
13+
in the [main Symfony repository](https://github.com/symfony/symfony)

0 commit comments

Comments
 (0)