gettext.install never worked reliably; we kept getting errors where _ would be inexplicably undefined. Hence the decision to switch to static imports of it in each module. Its not pretty, but it is reliable. Additionally, going through our own module allows us to override gettext with a custom function for systems built without NLS, which was requested by a maintainer of our BSD packages.
gettext.install never worked reliably; we kept getting errors where _ would be inexplicably undefined. Hence the decision to switch to static imports of it in each module. Its not pretty, but it is reliable. Additionally, going through our own module allows us to override gettext with a custom function for systems built without NLS, which was requested by a maintainer of our BSD packages.