iRail.be - The code behind the popular mobile website
PHP JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.tx
datamodel
i18n
requesthandlers
templates
.gitignore
.htaccess
DEVELOPING
README.md
appcache.mf
config.php
favicon.ico
humans.txt
robots.txt

README.md

iRail

This is the WebClient hosted at [http://iRail.be]. Unstable versions can be found at [http://dev.iRail.be] (bleeding edge). It's built upon the iRail api ([http://api.iRail.be]) which delivers public transport information to online applications, free of charge and free as in beer.

This is the WebClient 2.0 branch. The design has been made by Dennis Kestelle. People who brought this client to life:

  • Muhammet "Mojo" Kilic <muhammet aŧ zeropoint.IT>
  • Pieter Colpaert <pieter aŧ iRail.be>

More information can be found on Project iRail.

License

This branch has been written from scratch and therefor relicensed to: AGPL

(c) 2012 iRail vzw/asbl

Developers

Check the DEVELOPERS file

Installation

Adjust config.php to your needs and copy the entire repository to your server.

You need:

  • PHP5
  • url rewrite mod
  • http request

Translations

All translation files are located in i18n/, contain a PHP translation array, and should adhere to the xx.php format.

Note: the en.php file is a treated in a special way. It is used as the source for all other translations, so whenever a string in the code is change this file must be updated to reflect those changes. See below for the syncing procedure.

Syncing with Transifex

We are using http://transifex.net as a frontend for translating the client, use the Transifex client to fetch new translations from Transifex.

Pushing new source strings

  1. Update i18n/en.php to reflect the changes
  2. tx push -s

Fetching new translations

  1. tx pull -a
  2. git add new translations from i18n/

Some interesting links: