Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/okfn/aquarium
Track Open Budget Survey document data and expectations.
https://github.com/okfn/aquarium
Last synced: about 1 month ago
JSON representation
Track Open Budget Survey document data and expectations.
- Host: GitHub
- URL: https://github.com/okfn/aquarium
- Owner: okfn
- License: mit
- Created: 2013-09-17T21:39:22.000Z (about 11 years ago)
- Default Branch: develop
- Last Pushed: 2015-03-05T22:45:44.000Z (almost 10 years ago)
- Last Synced: 2024-08-01T12:19:08.312Z (4 months ago)
- Language: CSS
- Homepage:
- Size: 1.98 MB
- Stars: 4
- Watchers: 18
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - okfn/aquarium - Track Open Budget Survey document data and expectations. (others)
README
## aquarium
[![Build Status](https://travis-ci.org/okfn/aquarium.svg?branch=develop)](https://travis-ci.org/okfn/aquarium)
Aquarium is web application with works with [Beagle](https://github.com/okfn/beagle) to feed it sites to watch.
It also track reports from researchers on budget documents for the [International Budget Survey](http://internationalbudget.org/)'s [Open Budget Survey](http://internationalbudget.org/what-we-do/open-budget-survey/).
## Installation
This assumes you have git installed and node installed.
> git clone https://github.com/okfn/aquarium.git
> cd aquarium
> cp .env-example .env # edit to appropriate values
> npm startThen navigation to the `/login` page to configure the administrator's login.
### Docker
If you don't want to install it on your local machine, there's a Dockerfile
available. You simply need to go to Aquarium's home folder and do:> docker build -t aquarium .
> docker run -p 3000:3000 -v /path/to/your/aquarium/clone:/aquarium -i -t aquarium /bin/bash
# Here you'll be inside Docker
> mongod &
> cd /aquarium
> cp .env-example .env # edit to appropriate values
> npm startAquarium should be running on http://localhost:3000.
## Translations
### Extracting Translations
> xgettext -j --keyword=format -L Python --output-dir=locale --from-code=utf-8 --output=messages.pot `find views -name '*.jade'`
This will generate the translations from all source jade files. This step is only necessary if the source code has changed.
### Initialise Translations
To initialise a new language, do the following:
> mkdir -p locale//LC_MESSAGES
> msginit --input=./locale/messages.pot --output=./locale//LC_MESSAGES/messages.po -lExample:
> mkdir -p locale/en/LC_MESSAGES
> msginit --input=./locale/messages.pot --output=./locale/en/LC_MESSAGES/messages.po -l enThis will generate a file based on the `messages.pot` ready for translation.
### Update Translations
To update an already existing language, use the following command:
> node_modules/i18n-abide/bin/merge-po.sh ./locale
### Translate
Translate with your favourite po file translator, e.g. [poedit](http://www.poedit.net/). The project could also be uploaded to Transifex with little effort (not supported at the moment). The po file to be translated will be available in `locale//LC_MESSAGES/messages.po`
### Compile Translations
Run the following command to compile the translations ready for use:
> ./update_translation-json.sh