assembl.lib.locale module

Utilities for locale conversion, between posix, iso639 1 & 2; and for pyramid locale negotiation.


Get the localizer. Searches the given request, or the current request, or provides a default locale.

assembl.lib.locale.locale_compatible(locname1, locname2)[source]

Are the two locales similar enough to be substituted one for the other. Mostly same language/script, disregard country.