websafe / zf-mod-zfc-user-i18n-pl-pl
Polish pl_PL translation / language pack module for the [ZF-Commons/ZfcUser] module. Moduł polskiego tłumaczenia / paczka językowa dla modułu [ZF-Commons/ZfcUser].
Installs: 1 456
Dependents: 1
Suggesters: 2
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:zf-module
Requires
- php: >=5.3.3
Suggests
- websafe/zf-mod-zfc-user-i18n-de-de: German de_DE translation / language pack module for the [ZF-Commons/ZfcUser] module.
- websafe/zf-mod-zfc-user-i18n-ja-jp: Japanese ja_JP translation / language pack module for the [ZF-Commons/ZfcUser] module.
- zf-commons/zfc-user: This module is a translation / language pack for [zf-commons/zfc-user], so You probably should install it too.
This package is not auto-updated.
Last update: 2024-11-19 02:24:35 UTC
README
pl_PL, de_DE, ja_jP and ru_RU translations are now merged into ZF-Commons/ZfcUser master branch :-)
Translation continues there.
WebsafeZfModZfcUserI18nPlPl
Polish pl_PL translation / language pack module for the ZF-Commons/ZfcUser module.
Moduł polskiego tłumaczenia / paczka językowa dla modułu ZF-Commons/ZfcUser.
Installation
Chdir into Your projects root directory (where composer.json
resides)
and run the following command:
composer require websafe/zf-mod-zfc-user-i18n-pl-pl:dev-master --prefer-dist
Configuration
Enabling the language pack module in Your ZF2 application
In config/application.conf.php
add WebsafeZfModZfcUserI18nPlPl
after
ZfcUser
:
<?php return array( 'modules' => array( // ... 'ZfcUser', 'WebsafeZfModZfcUserI18nPlPl', // ... ), // ... );
Set the locale
This step is not really required - it depends on how the locale is initialized in Your application.
In config/global.conf
or module/Application/config/module.conf.php
add:
// ... 'translator' => array( 'locale' => 'pl_PL', // ... ), // ...
Updating
Chdir into projects root directory (where composer.json
resides)
and run the following commands:
rm -rf ~/.composer/cache/files/websafe/zf-mod-zfc-user-i18n-pl-pl/
composer update websafe/zf-mod-zfc-user-i18n-pl-pl
The rm -rf ...
part is needed when the module was installed with
--prefer-dist
. Without cleaning up the cache before installing - Composer
will probably stick to a cached version.
Contributing
If You want to help with the polish translation, just edit pl_PL.po located
in ./language
and after all send a pull request. When You're not familiar
with editing .po
files - simply report an issue.
Compiling .po files to .mo files
There's no need to compile .po
files after the installation or before sending
pull requests, but if you modify the .po
file locally, recompile it by
executing the following command in this modules root directory:
msgfmt -cv -o language/pl_PL.mo language/pl_PL.po