Package Camelot :: Package camelot :: Package core :: Module utils |
[frames] | no frames]

# Module utils

source code

Utility functions

Classes
| ugettext_lazy

Functions
create_constant_function(constant) | source code
variant_to_pyobject(qvariant=None) Try to convert a QVariant to a python object as good as possible | source code
set_translation(source, value) Store a tranlation in the global translation dictionary | source code
load_translations() Fill the global dictionary of translations with all data from the database, to be able to do fast gui thread lookups of translations | source code
ugettext(string_to_translate) Translate the string_to_translate to the language of the current locale. This is a two step process. First the function will try to get the translation out of the Translation entity, if this is not successfull, the function will ask QCoreApplication to translate string_to_translate (which tries to get the translation from the .po files) | source code

Variables
| _translations_ = ``{``}``
| __package__ = ``'``Camelot.camelot.core``'``