Skip to content

Commit 06486c7

Browse files
authored
Put installation instructions on top
1 parent ad3d38e commit 06486c7

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

readme.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@
1111
Potrans it's PHP command line tool for automatic translation of [Gettext](https://www.gnu.org/software/gettext/) PO file with
1212
[Google Translator](https://cloud.google.com/translate) or [DeepL Translator](https://www.deepl.com/).
1313

14+
## Install
15+
16+
You can add `om/potrans` to you PHP project like follow:
17+
18+
```shell
19+
composer require --dev om/potrans
20+
```
21+
22+
or you can clone this repository and then run `./bin/potrans`
23+
1424
## Google Translator
1525

1626
```shell
@@ -154,16 +164,6 @@ You can use environment variables to set DeepL API key.
154164
DEEPL_API_KEY=your-deepl-api-key
155165
```
156166

157-
## Install
158-
159-
You can add `om/potrans` to you PHP project like follow:
160-
161-
```shell
162-
composer require --dev om/potrans
163-
```
164-
165-
or you can clone this repository and then run `./bin/potrans`
166-
167167
## Custom translator
168168

169169
If you need to use a custom translator that behaves differently than the original translator.

0 commit comments

Comments
 (0)