Skip to content

A Wordpress plugin which provides multiple blocks for EPFL services

Notifications You must be signed in to change notification settings

epfl-si/wp-gutenberg-epfl

Repository files navigation

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

About

A Wordpress plugin which provides multiple blocks for EPFL services

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages