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

wp-gutenberg-epfl

A Wordpress plugin which provides multiple blocks for EPFL services

★ 7stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/epfl-si/wp-gutenberg-epfl/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

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