Skip to content

Latest commit

 

History

History
 
 

README.md

INSTALL

  • $ curl -L https://cpanmin.us | perl - App::cpanminus
  • $ cpanm Carton
  • $ cd scripts
  • $ carton install

FAQ

(1) compile.pl usage (require cd scripts)

  • build HTMLs by carton exec perl compile.pl
  • re-build all HTML by carton exec perl compile.pl -f
  • build specified url by carton exec perl compile.pl -p why-us

Local test

After HTML build, you can run sudo grunt connect then visits [https://localhost/en/home.html] for test

github.io deploy

  • carton exec perl compile.pl -d

Compile Parameters

  • -f force to overwrite the existing HTMLs
  • -d compile for use in gh-pages of a binary-static fork
  • -p pathname only compile the files having pathname in path
  • -b branchname to compile the changes to sub-folder named br_branchname
  • -vr to display list of all generated files

(2) Make translation

Setup

  • on Mac, install Homebrew by ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  • install GNU gettext by brew install gettext

Update translation files

  • run ./translation.sh
  • .po & .pot files will be updated in ../src/config/ & ../src/config/locales

make translation for javascript

  • run ./js_translation.sh
  • changes update in ../src/javascript/autogenerated/texts.js