Skip navigation

Localization Resources

GNU gettext

gettext is the technology TriMet uses to manage localizations:

and here’s the basic how-to with gettext and translations for the Pyramid framework:

NOTE: you don't have to use python or pyramid to use gettext ... gettext is ported to many development environs...

TriMet localizations for Spanish trip tools in .po file format

here are TriMet's trip planner localizations:

this is the Spanish localization file:

this is a mako template, and it’s an example of how new strings get into the translations:

NOTE: this stuff is still under development as of June 2014, and will be changing often in the near future.

OpenTripPlanner localizations in .po file format

here’s a thread discussing OTP’s new localizations:

here’s some code (eveloving as of June 2014, and not mainline OTP code yet):

and here’s some old code specific to how OTP localized the .js clients: