0
SahanaEden:
Localisation
5 November 2010, Sahana Camp
Fran Boon
fran@sahanafoundation.org
Brainstorm
What might we need to Localise?
Localise
• Language
• Locations: Hierarchy, Maps
• Messaging Provider
• Security Policy
– Authentication Database
• Workfl...
Translation Tools
• Web2Py admin interface
– simple
• Pootle
– Collaborative refinement
• Virtaal
– Faster for Offline
Pootle: Practical
• Sign-up for Pootle
• Translate some Strings
• Download the PO file
• Convert to Web2Py format
Language
Strings in Source code are Internationalised by
wrapping in T():
T(“This string can be Localised”)
There may be B...
LocationsHierarchy
Available in Wikipedia:
•Country
•(Regions) ?
•Provinces
•Municipalities
•Communes
Needs converting to ...
LocationsHierarchy
locations_hierarchy = {
"L0":T("Country"),
"L1":T("Region"),
"L2":T("Province"),
"L3":T("Municipality")...
Locations
• Admin Boundaries?
(Polygons)
• Local WMS?
(Web Map Service)
• KML files?
Messaging Provider
• Local Web service provider?
• HTTP API
• SMPP
End
Upcoming SlideShare
Loading in...5
×

Sahana Eden : Localisation (SahanaCamp 1.2)

860

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
860
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
24
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • http://127.0.0.1:8000/admin/default/edit_language/eden/languages/vi.py
    http://pootle.sahanafoundation.org/pootle/vi/eden/edit.html
  • Sign-up:
    http://pootle.sahanafoundation.org/pootle/accounts/register/
    Translate:
    http://pootle.sahanafoundation.org/pootle/vi/eden/edit.html
    Download PO file:
    http://pootle.sahanafoundation.org/pootle/export/eden/vi/vi.po
    Convert to Web2Py format:
    po2web2py -i vi.po -o vi.py
    cp –f vi.py ~/Desktop/web2py/applications/eden/languages
    Select Vietnamese & see if it works!
  • http://en.wikipedia.org/wiki/Vietnam#Subdivisions
    There are also 5 centrally controlled municipalities existing at the same level as provinces.
    The provinces are further subdivided into provincial municipalities, townships and counties.
    The centrally controlled municipalities are subdivided into districts and counties.
    There are three kinds of the third-level (commune-level) administrative subdivision: the rural commune, the commune-level town, and the ward (literal meaning: urban subdistrict).
    CSV file should have columns as-defined in modules/s3gis.py:
    ADM0_NAME
    ADM1_NAME
    ADM2_NAME
    ADM3_NAME
    ADM4_NAME
  • Edit models/000_config.py & amend the deployment_settings.gis.locations_hierarchy as shown (if we wish to include Regions).
  • Admin Boundaries would normally be in Shapefile format which can be imported into Sahana by using OGR to convert to CSV:
    http://eden.sahanafoundation.org/wiki/UserGuidelinesGISData#Shapefiles
    If there is data available, then we can help to setup GeoServer to serve this.
    http://www.vietbando.com/maps/?lang=en have a Geocoder API
  • Clickatell is a global provider for HTTP API (& well-tested with Sahana):
    http://www.clickatell.com/pricing/standard_mt_coverage.php?action=calculate&remove=&country[]=295
    USD 0.05 /message
    Routo Messaging can access Viettel, Mobifone & Vinaphone (not yet tested with Sahana):
    http://www.routomessaging.com/sms/viet-nam.php
    USD 0.03 /message (minimum Euro 50/month)
    SMPP connections seem to be available for these 3 to establish a direct connection:
    http://www.kannel.org/pipermail/users/2009-September/008342.html
    Currently, Sahana has no native SMPP option, so need to use a gateway like Kannel or Nuntium (both of which are free / open source).
    http://kannel.org
    http://code.google.com/p/nuntium/
  • Transcript of "Sahana Eden : Localisation (SahanaCamp 1.2)"

    1. 1. SahanaEden: Localisation 5 November 2010, Sahana Camp Fran Boon fran@sahanafoundation.org
    2. 2. Brainstorm What might we need to Localise?
    3. 3. Localise • Language • Locations: Hierarchy, Maps • Messaging Provider • Security Policy – Authentication Database • Workflow • Theme
    4. 4. Translation Tools • Web2Py admin interface – simple • Pootle – Collaborative refinement • Virtaal – Faster for Offline
    5. 5. Pootle: Practical • Sign-up for Pootle • Translate some Strings • Download the PO file • Convert to Web2Py format
    6. 6. Language Strings in Source code are Internationalised by wrapping in T(): T(“This string can be Localised”) There may be Bugs in Source – e.g. word order •Patches welcomed 
    7. 7. LocationsHierarchy Available in Wikipedia: •Country •(Regions) ? •Provinces •Municipalities •Communes Needs converting to CSV for Import
    8. 8. LocationsHierarchy locations_hierarchy = { "L0":T("Country"), "L1":T("Region"), "L2":T("Province"), "L3":T("Municipality"), "L4":T("Commune"), "L5":T("Location"), # Street Address "XX":T("Imported") }
    9. 9. Locations • Admin Boundaries? (Polygons) • Local WMS? (Web Map Service) • KML files?
    10. 10. Messaging Provider • Local Web service provider? • HTTP API • SMPP
    11. 11. End
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×