File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change 1
1
# Translation extractor
2
2
3
3
[ ![ Latest Version] ( https://img.shields.io/github/release/php-translation/extractor.svg?style=flat-square )] ( https://github.com/php-translation/extractor/releases )
4
- [ ![ Build Status] ( https://travis-ci.org/php-translation/extractor.svg?branch=master )] ( http://travis-ci.org/php-translation/extractor )
5
- [ ![ Code Coverage] ( https://img.shields.io/scrutinizer/coverage/g/php-translation/extractor.svg?style=flat-square )] ( https://scrutinizer-ci.com/g/php-translation/extractor )
6
- [ ![ Quality Score] ( https://img.shields.io/scrutinizer/g/php-translation/extractor.svg?style=flat-square )] ( https://scrutinizer-ci.com/g/php-translation/extractor )
7
- [ ![ SensioLabsInsight] ( https://insight.sensiolabs.com/projects/a5ae0cbe-f213-4ba6-94da-e9cffed86256/mini.png )] ( https://insight.sensiolabs.com/projects/a5ae0cbe-f213-4ba6-94da-e9cffed86256 )
8
4
[ ![ Total Downloads] ( https://img.shields.io/packagist/dt/php-translation/extractor.svg?style=flat-square )] ( https://packagist.org/packages/php-translation/extractor )
9
5
10
6
** Extract translation messages from source code**
11
7
12
8
13
9
## Install
14
10
15
- Via Composer
11
+ Via Composer:
16
12
17
- ``` bash
13
+ ``` bash
18
14
$ composer require php-translation/extractor
19
15
```
20
16
@@ -23,7 +19,7 @@ $ composer require php-translation/extractor
23
19
``` php
24
20
$extractor = new Extractor();
25
21
26
- // Create extractor for PHP files
22
+ // Create an extractor for PHP files
27
23
$fileExtractor = new PHPFileExtractor();
28
24
29
25
// Add visitors
@@ -45,13 +41,11 @@ $sourceCollection = $extractor->extract($finder);
45
41
46
42
## Found an issue?
47
43
48
- Is it something we do not extract? Please add it as a tests . Add a new file with your example code in
49
- ` tests/Resources/Github/Issue_XX.php ` then edit the ` AllExtractorsTest ` to make sure the translation
50
- key is found.
44
+ Is it something we do not extract? Please add it as a test . Add a new file with your example code in
45
+ ` tests/Resources/Github/Issue_XX.php ` , then edit the ` AllExtractorsTest ` to make sure the translation
46
+ key is found:
51
47
52
48
``` php
53
-
54
49
// ...
55
50
$this->translationExists($sc, 'trans.issue_xx');
56
-
57
51
```
You can’t perform that action at this time.
0 commit comments