/usr/lib/python2.6/site-packages/oslo_i18n
Edit: /usr/lib/python2.6/site-packages/oslo_i18n/_translate.pyc (2554B)
Ñò
yDVc @ s1 d d k Z d g Z d d „ Z d d „ Z d S( iÿÿÿÿNt translatec C sa d d k l } | } t | | i ƒ p t i | ƒ } n t | | 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_i18nR t
isinstancet Messaget sixt text_typeR ( t objt desired_localeR t message( ( s7 /tmp/pip-build-lt8jXN/oslo.i18n/oslo_i18n/_translate.pyR s c sr t | t ƒ o t ‡ f d † | Dƒ ƒ St | t ƒ o* t ‡ f d † t i | ƒ 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
c 3 s" x | ] } t | ˆ ƒ Vq Wd S( N( R ( t .0t v( R ( s7 /tmp/pip-build-lt8jXN/oslo.i18n/oslo_i18n/_translate.pys
D s c 3 s. x' | ] \ } } | t | ˆ ƒ f Vq Wd S( N( R ( R
t keyt value( R ( s7 /tmp/pip-build-lt8jXN/oslo.i18n/oslo_i18n/_translate.pys F s ( R t tuplet dictR t iteritemsR ( t argsR t translated_dict( ( R s7 /tmp/pip-build-lt8jXN/oslo.i18n/oslo_i18n/_translate.pyt translate_args4 s ( R t __all__t NoneR R ( ( ( s7 /tmp/pip-build-lt8jXN/oslo.i18n/oslo_i18n/_translate.pyt s