Skip to content

Commit

Permalink
Readme and composer version update
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrjozwiak committed Sep 29, 2017
1 parent a3f9fd7 commit cb871ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,15 @@ Change language example:

```php
//All Tpay class constructors load Lang class
$tpay = new PaymentSzkwal();
$tpay = new BankSelectionExample();

//After this line all static messages (input labels, buttons titles) will be displayed in Polish
(new Util())->setLanguage('pl');

If you want to access translations manually, use:
$language = new Lang()
$language->setLang('pl'); for setting language
$language->l('pay'); to echo translated key
```

## License
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "library",
"license": "LGPL-3.0",
"description": "tpay.com library",
"version": "2.0.2",
"version": "2.0.3",
"extra": [
{
"engine": "PHP SDK"
Expand Down

0 comments on commit cb871ea

Please sign in to comment.