Skip to content

Commit

Permalink
Add Polish translation (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszkane authored Nov 26, 2023
1 parent 4e1c8d8 commit ba786eb
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ for default the extension supports the following languages:
- English
- French
- German
- Poland
- Portuguese
- Russian
- Spanish
Expand Down
2 changes: 1 addition & 1 deletion config/messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
'sourcePath' => dirname(__DIR__) . '/src',
// array, required, list of language codes that the extracted messages
// should be translated to. For example, ['zh-CN', 'de'].
'languages' => ['de', 'es', 'fr', 'pt', 'ru', 'zh'],
'languages' => ['de', 'es', 'fr', 'pl', 'pt', 'ru', 'zh'],
// 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
Expand Down
30 changes: 30 additions & 0 deletions resource/message/pl/yii.filepond.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

declare(strict_types=1);

/**
* Message translations.
*
* This file is automatically generated by 'yii message/extract' command.
* It contains the localizable messages extracted from source code.
* You may modify this file by translating the extracted messages.
*
* Each array element represents the translation (value) of a message (key).
* If the value is empty, the message is considered as not translated.
* Messages that no longer need translation will have their translations
* enclosed between a pair of '@@' marks.
*
* Message string can be used with plural forms format. Check i18n section
* of the guide for details.
*
* NOTE: this file must be saved in UTF-8 encoding.
*/
return [
'Drag & Drop your files or <span class="filepond--label-action"> Browse </span>' => 'Przeciągnij i upuść pliki lub <span class="filepond--label-action"> Przeglądaj </span>',
'Expects {allButLastType} or {lastType}' => 'Oczekuje {allButLastType} lub {lastType}',
'File is too large' => 'Rozmiar pliku jest za duży',
'File type not allowed' => 'Niedozwolony typ pliku',
'Maximum file size is {filesize}' => 'Maksymalny rozmiar pliku to {filesize}',
'Maximum total file size is {filesize}' => 'Maksymalny całkowity rozmiar plików to {filesize}',
'Maximum total size exceeded' => 'Przekroczono maksymalny łączny rozmiar plików',
];

0 comments on commit ba786eb

Please sign in to comment.