isomer.misc package¶
Miscellaneous utility functions for Isomer
-
class
Domain
(domain)[source]¶ Bases:
object
Gettext domain capable of translating into all registered languages
-
i18n
(msg, event=None, lang='en', domain='backend')[source]¶ Gettext function wrapper to return a message in a specified language by domain
To use internationalization (i18n) on your messages, import it as ‘_’ and use as usual. Do not forget to supply the client’s language setting.
-
sorted_alphanumerical
(l, reverse=False)[source]¶ Sort the given iterable in the way that humans expect.