pl_PL, de_DE, ja_jP and ru_RU translations are now merged into ZF-Commons/ZfcUser master branch :-)
Translation continues there.
German de_DE translation / language pack module for the ZF-Commons/ZfcUser module.
Deutsche Übersetzung / Sprachdatei Modul für das ZF-Commons/ZfcUser Modul.
Chdir into Your projects root directory (where composer.json
resides)
and run the following command:
composer require websafe/zf-mod-zfc-user-i18n-de-de:dev-master --prefer-dist
In config/application.conf.php
add WebsafeZfModZfcUserI18nDeDe
after
ZfcUser
:
<?php
return array(
'modules' => array(
// ...
'ZfcUser',
'WebsafeZfModZfcUserI18nDeDe',
// ...
),
// ...
);
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' => 'de_DE',
// ...
),
// ...
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-de-de/
composer update websafe/zf-mod-zfc-user-i18n-de-de
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.
If You want to help with the German translation, just edit de_DE.po located
in ./language
and after all send a pull request. When You're not familiar
with editing .po
files - simply report an issue.
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/de_DE.mo language/de_DE.po