WP Manifestindependent plugin directory
manifest / editor / wp-gutenberg-epfl

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.zip

Readme

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
  • 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 start is running, recent entries should be in languages/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 and
    • msgfmt -o epfl-de_DE.mo epfl-de_DE.po

References

Read the full README on GitHub →