This repo sets up a processwire environment which can be used for translating files into other languages.
Right now this is the boilerplate for the german language pack.
This environment idea is based upon work from Bernhard Baumrock.
Check out Bernhard's nice ProcessWire modules RockTabulator and RockFinder.
git clone --recurse-submodules [email protected]:jmartsch/processwire-language-pack-helper.git processwire-language-pack-helper
If you forgot the --recurse-submodules
option no problem. Do this:
cd processwire-language-pack-helper
git submodule update --init --recursive
What this does is cloning this dev environment and then pulling in the language pack as a submodule.
Make a fork of https://github.com/jmartsch/pw-lang-de
After forking go to your command line and enter the following commands (change $yourusername and $pw-lang-de-forkname):
$ cd site/assets/files/1019
$ git remote add fork https://github.com/$yourusername>/$pw-lang-de-forkname
First change your database settings in site/config.php according to your database
Then run this PHP script via command line / terminal in your root directory:
php restore.php
or you can use the dump from site/assets/backups/database/pw-lang-de.sql with your favorite tool like PhpMyAdmin.
username = admin
password = password
Go to http://processwire-language-pack-helper.localhost/processwire/setup/languages/edit/?id=1019
Note: Please make sure to use the correct host if you don't use localhost as your development domain.
- Look for abandoned and empty phrases
- abandoned are not needed any more and can safely be removed
- empty phrases are new additions, which need to be translated
$ cd site/assets/files/1019
$ git add .
$ git commit -m "Update translations"
$ git push fork master:master
Go to github and create a pull request