diff --git a/README.md b/README.md index c3a2e6f..ed673d4 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/composer.json b/composer.json index 13f080f..d9c1216 100644 --- a/composer.json +++ b/composer.json @@ -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"