/usr/lib/python2.6/site-packages/oslo_i18n
NameSizeModeActions
locale/-0755rm
tests/-0755rm
fixture.py56740644editdlrm
fixture.pyc73980644editdlrm
log.py35420644editdlrm
log.pyc28730644editdlrm
_factory.py70460644editdlrm
_factory.pyc72930644editdlrm
_gettextutils.py29800644editdlrm
_gettextutils.pyc27820644editdlrm
_i18n.py9340644editdlrm
_i18n.pyc3690644editdlrm
_lazy.py12660644editdlrm
_lazy.pyc8570644editdlrm
_locale.py9350644editdlrm
_locale.pyc5580644editdlrm
_message.py92600644editdlrm
_message.pyc67620644editdlrm
_translate.py28710644editdlrm
_translate.pyc25540644editdlrm
__init__.py6730644editdlrm
__init__.pyc2580644editdlrm
Edit: /usr/lib/python2.6/site-packages/oslo_i18n/_translate.pyc (2554B)
Ñò yDVc@s1ddkZdgZdd„Zdd„ZdS(iÿÿÿÿNt translatecCsaddkl}|}t||iƒpti|ƒ}nt||iƒo|i|ƒS|S(s Gets the translated unicode representation of the given object. If the object is not translatable it is returned as-is. If the desired_locale argument is None the object is translated to the system locale. :param obj: the object to translate :param desired_locale: the locale to translate the message to, if None the default system locale will be used :returns: the translated object in unicode, or the original object if it could not be translated iÿÿÿÿ(t_message(t oslo_i18nRt isinstancetMessagetsixt text_typeR(tobjtdesired_localeRtmessage((s7/tmp/pip-build-lt8jXN/oslo.i18n/oslo_i18n/_translate.pyRscsrt|tƒot‡fd†|DƒƒSt|tƒo*t‡fd†ti|ƒDƒƒ}|St|ˆƒS(sŠTranslates all the translatable elements of the given arguments object. This method is used for translating the translatable values in method arguments which include values of tuples or dictionaries. If the object is not a tuple or a dictionary the object itself is translated if it is translatable. If the locale is None the object is translated to the system locale. :param args: the args to translate :param desired_locale: the locale to translate the args to, if None the default system locale will be used :returns: a new args object with the translated contents of the original c3s"x|]}t|ˆƒVqWdS(N(R(t.0tv(R(s7/tmp/pip-build-lt8jXN/oslo.i18n/oslo_i18n/_translate.pys Ds c3s.x'|] \}}|t|ˆƒfVqWdS(N(R(R tkeytvalue(R(s7/tmp/pip-build-lt8jXN/oslo.i18n/oslo_i18n/_translate.pys Fs (RttupletdictRt iteritemsR(targsRttranslated_dict((Rs7/tmp/pip-build-lt8jXN/oslo.i18n/oslo_i18n/_translate.pyttranslate_args4s(Rt__all__tNoneRR(((s7/tmp/pip-build-lt8jXN/oslo.i18n/oslo_i18n/_translate.pyts