From 7ce4112a0f589731de2159b913c156190072dbca Mon Sep 17 00:00:00 2001 From: Andrzej Kupczyk Date: Sat, 7 Mar 2015 12:46:53 +0100 Subject: [PATCH 1/2] Polish translation --- composer.json | 16 ++++++++-------- messages/config.php | 2 +- messages/pl/omnilight/tokens.php | 22 ++++++++++++++++++++++ 3 files changed, 31 insertions(+), 9 deletions(-) create mode 100644 messages/pl/omnilight/tokens.php diff --git a/composer.json b/composer.json index 4c78807..2e30c7e 100644 --- a/composer.json +++ b/composer.json @@ -1,21 +1,21 @@ { - "name": "omnilight/yii2-tokens", + "name": "andrzejkupczyk/yii2-tokens", "description": "Provides classes for token validations for Yii2 framework", "keywords": ["yii2", "token", "auth"], "minimum-stability": "dev", - "authors": [ - { - "name": "Pavel Agalecky", - "email": "pavel.agalecky@gmail.com" - } - ], + "authors": [{ + "name": "Pavel Agalecky", + "email": "pavel.agalecky@gmail.com" + }], "type": "yii2-extension", "require": { "php": ">=5.4.0", "yiisoft/yii2": "*" }, "autoload": { - "psr-4": { "omnilight\\tokens\\": "" } + "psr-4": { + "omnilight\\tokens\\": "" + } }, "extra": { "bootstrap": "omnilight\\tokens\\Bootstrap" diff --git a/messages/config.php b/messages/config.php index d18e44f..725007b 100644 --- a/messages/config.php +++ b/messages/config.php @@ -7,7 +7,7 @@ 'messagePath' => __DIR__, // array, required, list of language codes that the extracted messages // should be translated to. For example, ['zh_cn', 'de']. - 'languages' => ['ru'], + 'languages' => ['ru', 'pl'], // string, the name of the function for translating messages. // Defaults to 'Yii::t'. This is used as a mark to find the messages to be // translated. You may use a string for single function name or an array for diff --git a/messages/pl/omnilight/tokens.php b/messages/pl/omnilight/tokens.php new file mode 100644 index 0000000..5a555c8 --- /dev/null +++ b/messages/pl/omnilight/tokens.php @@ -0,0 +1,22 @@ + 'Kod potwierdzenia', + 'Token is incorrect' => 'Błędny kod potwierdzenia', +); From 2f23bf4761abc27252082aaa8b37a2abd3036d9a Mon Sep 17 00:00:00 2001 From: Andrzej Kupczyk Date: Sat, 7 Mar 2015 12:51:52 +0100 Subject: [PATCH 2/2] Update composer.json Yikes! --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 2e30c7e..2702348 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "andrzejkupczyk/yii2-tokens", + "name": "omnilight/yii2-tokens", "description": "Provides classes for token validations for Yii2 framework", "keywords": ["yii2", "token", "auth"], "minimum-stability": "dev", @@ -20,4 +20,4 @@ "extra": { "bootstrap": "omnilight\\tokens\\Bootstrap" } -} \ No newline at end of file +}