Skip to content

Commit 0db171e

Browse files
committed
docs fixes
1 parent f543802 commit 0db171e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ $translations = Gettext\Extractors\Po::fromString($string);
171171

172172
The available extractors are the following:
173173

174-
* `Gettext\Extractors\CsvDictionary` - Gets the strings from CSV
175174
* `Gettext\Extractors\Po` - Gets the strings from PO
176175
* `Gettext\Extractors\Mo` - Gets the strings from MO
177176
* `Gettext\Extractors\PhpCode` - To scan a php file looking for all gettext functions (see `translator_functions.php`)
@@ -182,6 +181,8 @@ The available extractors are the following:
182181
* `Gettext\Extractors\Twig` - To scan a Twig template (Thanks [@exnor](https://github.com/exnor))
183182
* `Gettext\Extractors\JsonDictionary` - To get translations from a plain json file with the format `{"original": "translation"}`
184183
* `Gettext\Extractors\YamlDictionary` - To get translations from a plain yaml file with the format `"original": translation`
184+
* `Gettext\Extractors\CsvDictionary` - Gets the strings from plain CSV with the format `"original", "translation"`
185+
185186

186187
## Generators
187188

@@ -198,13 +199,13 @@ $string = file_put_contents('locales/en.po', $content);
198199

199200
The available generators are:
200201

201-
* `Gettext\Generators\CsvDictionary` - Exports to CSV format
202202
* `Gettext\Generators\Mo` - Exports to Mo format
203203
* `Gettext\Generators\Po` - Exports to Po format
204204
* `Gettext\Generators\PhpArray` - Exports to php code that returns an array with all values
205205
* `Gettext\Generators\Jed` - Exports to json format compatible with [Jed library](http://slexaxton.github.com/Jed/)
206206
* `Gettext\Generators\JsonDictionary` - Export to plain json with the format `{"original": "translation"}` (thanks, [@gator92](https://github.com/Gator92))
207207
* `Gettext\Generators\YamlDictionary` - Export to plain yaml with the format `"original": translation` (thanks, [@sourcerer-mike](https://github.com/sourcerer-mike))
208+
* `Gettext\Generators\CsvDictionary` - Exports to CSV format with the format `"original","translation"` (thanks, [@sourcerer-mike](https://github.com/sourcerer-mike))
208209

209210
To ease the work with generators and extractors you can use the magic methods availables in `Gettext\Translations` that import and export the translations in all these formats:
210211

0 commit comments

Comments
 (0)