Giter VIP home page Giter VIP logo

persona.org's Introduction

Persona.org

Installation instructions

Clone the repository

git clone --recursive git://github.com/mozilla/persona.org.git

curl http://npmjs.org/install.sh | sh

Install node by using brew or through the website http://nodejs.org/#download

cd persona.org

cp settings.js-dist settings.js

npm install

cd persona.org/public/javascripts/lib/shipyard

npm install

L10n extraction/merge

mkdir -p locale/templates/LC_MESSAGES

touch locale/templates/LC_MESSAGES/messages.pot

touch locale/templates/LC_MESSAGES/client.pot

export PATH=$PATH:node_modules/i18n-abide/bin

./bin/extract_po.sh

./bin/update_languages.sh

Merge and compile

merge_po.sh ./locale ;; There's no actual client-side translations yet, so it will probably through errors about trying to merge in client.po

compile_mo.sh locale/

mkdir public/javascripts/i18n

./bin/compile_json.sh locale public/javascripts/i18n/ ;; Only do this if you need client-side l10n

(Note: These instructions are from https://github.com/mozilla/i18n-abide/blob/master/README.md)

We copied the client-side translation steps from i18n-abide, but had to tweak it a little to work. Eventually we should converge on a set of scripts and share them. Mainly, I changed the path to po2json in compile_json.sh, I think that's the only tweak.

NODE_ENV=development node app.js

When deploying, this is important:

NODE_ENV=production node app.js

Run the Tests

make test

Building with Shipyard

To minify the JavaScript using Shipyard:

make shipyard

persona.org's People

Contributors

jlongster avatar sawyerh avatar seanmonstar avatar tofumatt avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.