wp-gutenberg-epfl
A Wordpress plugin which provides multiple blocks for EPFL services
by WordPress EPFL Team · github.com/epfl-si/wp-gutenberg-epfl
★ 7stars
6forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/epfl-si/wp-gutenberg-epfl/archive/refs/heads/master.zipReadme
wp-gutenberg-epfl
A plugin for Wordpress which provides multiple blocks for EPFL services, based on Wordpress Gutenberg.
How to dev
Clone
- Clone this repo to your local machine using
git clone https://github.com/epfl-si/wp-gutenberg-epfl
Setup
- 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
Dev
- Start development builds:
npm start - Develop. Test. Repeat.
- Create production build:
npm run build
Translate
- While
npm startis running, recent entries should be inlanguages/epfl.pot - Add or Merge the new entries into every
languages/*.pofiles - 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.poandmsgfmt -o epfl-de_DE.mo epfl-de_DE.po