Skip to content

Commit 174b7a4

Browse files
authored
Merge pull request #167 from php-translation/tweak-readme
Simplify badges list and other minor README tweaks
2 parents d95f3fd + 41d1a5b commit 174b7a4

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

Readme.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
# Translation extractor
22

33
[![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)
84
[![Total Downloads](https://img.shields.io/packagist/dt/php-translation/extractor.svg?style=flat-square)](https://packagist.org/packages/php-translation/extractor)
95

106
**Extract translation messages from source code**
117

128

139
## Install
1410

15-
Via Composer
11+
Via Composer:
1612

17-
``` bash
13+
```bash
1814
$ composer require php-translation/extractor
1915
```
2016

@@ -23,7 +19,7 @@ $ composer require php-translation/extractor
2319
```php
2420
$extractor = new Extractor();
2521

26-
// Create extractor for PHP files
22+
// Create an extractor for PHP files
2723
$fileExtractor = new PHPFileExtractor();
2824

2925
// Add visitors
@@ -45,13 +41,11 @@ $sourceCollection = $extractor->extract($finder);
4541

4642
## Found an issue?
4743

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:
5147

5248
```php
53-
5449
// ...
5550
$this->translationExists($sc, 'trans.issue_xx');
56-
5751
```

0 commit comments

Comments
 (0)