A plugin for Wordpress which provides multiple blocks for EPFL services, based on Wordpress Gutenberg.
- Clone this repo to your local machine using
git clone https://github.com/epfl-si/wp-gutenberg-epfl
- node 14 + npm
- Assert you have Node 14.x, the only one working with Wordpress Gutenberg
- Assert you have npm installed or follow this process to install it
- If you use a Wordpress version 5.5, checkout the branch static/5.5. However, the branch is obsolete.
- Install dependencies
npm install
- Start development builds:
npm start
- Develop. Test. Repeat.
- Create production build:
npm run build
- While
npm start
is running, recent entries should be inlanguages/epfl.pot
- Add or Merge the new entries into every
languages/*.po
files - Assert the translations in
languages/epfl-fr_FR.po
- Update the json file with:
./node_modules/po2json/bin/po2json ./languages/epfl-fr_FR.po ./languages/epfl-fr_FR-wp-gutenberg-scripts.json -f jed1.x -p
- Update the *.mo files with
msgfmt -o epfl-fr_FR.mo epfl-fr_FR.po
andmsgfmt -o epfl-de_DE.mo epfl-de_DE.po