https://github.com/jmartsch/processwire-language-pack-helper
ProcessWire environment for german language pack
https://github.com/jmartsch/processwire-language-pack-helper
processwire
Last synced: 10 months ago
JSON representation
ProcessWire environment for german language pack
- Host: GitHub
- URL: https://github.com/jmartsch/processwire-language-pack-helper
- Owner: jmartsch
- License: other
- Created: 2020-08-25T16:23:09.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2021-09-07T13:58:35.000Z (over 4 years ago)
- Last Synced: 2025-01-16T16:24:05.858Z (over 1 year ago)
- Topics: processwire
- Language: PHP
- Homepage:
- Size: 8.48 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.TXT
Awesome Lists containing this project
README
# ProcessWire environment for german language pack
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](https://github.com/BernhardBaumrock/tabulator.test) is based upon work from [Bernhard Baumrock](https://github.com/BernhardBaumrock).
Check out Bernhard's nice ProcessWire modules RockTabulator and RockFinder.
## Installation
### Clone this repo with submodules
```bash
git clone --recurse-submodules git@github.com:jmartsch/processwire-language-pack-helper.git processwire-language-pack-helper
```
If you forgot the `--recurse-submodules` option no problem. Do this:
```bash
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.
## Fork the language pack so you can commit changes
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):
```bash
$ cd site/assets/files/1019
$ git remote add fork https://github.com/$yourusername>/$pw-lang-de-forkname
```
### Restore the DB dump
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.
## Login
```
username = admin
password = password
```
## Translate
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
## Commit your changes
```bash
$ cd site/assets/files/1019
$ git add .
$ git commit -m "Update translations"
$ git push fork master:master
```
## Create a pull request
Go to github and create a pull request