sahana eden : localisation (sahanacamp 1.2)
TRANSCRIPT
![Page 2: Sahana Eden : Localisation (SahanaCamp 1.2)](https://reader036.vdocuments.us/reader036/viewer/2022082810/5586607ed8b42a99308b476c/html5/thumbnails/2.jpg)
Brainstorm
What might we need to Localise?
![Page 3: Sahana Eden : Localisation (SahanaCamp 1.2)](https://reader036.vdocuments.us/reader036/viewer/2022082810/5586607ed8b42a99308b476c/html5/thumbnails/3.jpg)
Localise
• Language
• Locations: Hierarchy, Maps
• Messaging Provider
• Security Policy– Authentication Database
• Workflow
• Theme
![Page 4: Sahana Eden : Localisation (SahanaCamp 1.2)](https://reader036.vdocuments.us/reader036/viewer/2022082810/5586607ed8b42a99308b476c/html5/thumbnails/4.jpg)
Translation Tools
• Web2Py admin interface– simple
• Pootle– Collaborative refinement
• Virtaal– Faster for Offline
![Page 5: Sahana Eden : Localisation (SahanaCamp 1.2)](https://reader036.vdocuments.us/reader036/viewer/2022082810/5586607ed8b42a99308b476c/html5/thumbnails/5.jpg)
Pootle: Practical
• Sign-up for Pootle
• Translate some Strings
• Download the PO file
• Convert to Web2Py format
![Page 6: Sahana Eden : Localisation (SahanaCamp 1.2)](https://reader036.vdocuments.us/reader036/viewer/2022082810/5586607ed8b42a99308b476c/html5/thumbnails/6.jpg)
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
![Page 7: Sahana Eden : Localisation (SahanaCamp 1.2)](https://reader036.vdocuments.us/reader036/viewer/2022082810/5586607ed8b42a99308b476c/html5/thumbnails/7.jpg)
Locations Hierarchy
Available in Wikipedia:•Country•(Regions) ?•Provinces•Municipalities•Communes
Needs converting to CSV for Import
![Page 8: Sahana Eden : Localisation (SahanaCamp 1.2)](https://reader036.vdocuments.us/reader036/viewer/2022082810/5586607ed8b42a99308b476c/html5/thumbnails/8.jpg)
Locations Hierarchy
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")
}
![Page 9: Sahana Eden : Localisation (SahanaCamp 1.2)](https://reader036.vdocuments.us/reader036/viewer/2022082810/5586607ed8b42a99308b476c/html5/thumbnails/9.jpg)
Locations
• Admin Boundaries?(Polygons)
• Local WMS?(Web Map Service)
• KML files?
![Page 10: Sahana Eden : Localisation (SahanaCamp 1.2)](https://reader036.vdocuments.us/reader036/viewer/2022082810/5586607ed8b42a99308b476c/html5/thumbnails/10.jpg)
Messaging Provider
• Local Web service provider?
• HTTP API
• SMPP
![Page 11: Sahana Eden : Localisation (SahanaCamp 1.2)](https://reader036.vdocuments.us/reader036/viewer/2022082810/5586607ed8b42a99308b476c/html5/thumbnails/11.jpg)
End