Skip to content

jlongster/persona.org

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Persona.org

Installation instructions

Clone the repository

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

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 app.js

Run the Tests

make test

About

NodeJS project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published