|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21573/root/usr/lib/python2.4/site-packages/dogtail/ |
Upload File : |
mò
,Ec @ sÎ d Z d Z d k Z d k Z d k Z d k Z d k Z d k l Z d „ Z
d „ Z g Z d f d „ ƒ YZ
d e
f d „ ƒ YZ d
„ Z d f d „ ƒ YZ d
d „ Z d
e d „ Z e d „ Z d S( sO
Internationalization facilities
Authors: David Malcolm <dmalcolm@redhat.com>
sC David Malcolm <dmalcolm@redhat.com>, Zack Cerza <zcerza@redhat.com>N( s debugLoggerc C sS t | t ƒ p? y | i d ƒ } WqO t j
o | i d d ƒ } qO Xn | S( Ns utf-8t replace( t
isinstancet stringt unicodet decodet UnicodeDecodeError( R ( ( t0 /usr/lib/python2.4/site-packages/dogtail/i18n.pyt
safeDecode s c C s d S( N( ( R ( ( R t
safeEncode s t
TranslationDbc B s t Z d Z d „ Z RS( sE
Abstract base class representing a database of translations
c C s
t ‚ d S( sÉ
Pure virtual method to look up the translation of a string.
Returns a list of candidate strings (the translation), empty if not found.
Note that a source string can map to multiple translated strings. For
example, in the French translation of Evolution, the string "Forward" can
translate to both
(i) "Faire suivre" for forwarding an email, and
(ii) "Suivant" for the next page in a wizard.
N( t NotImplementedError( t selft srcName( ( R t getTranslationsOf+ s
( t __name__t
__module__t __doc__R
( ( ( R R ' s t GettextTranslationDbc B s t Z d Z d „ Z d „ Z RS( sj
Implementation of TranslationDb which leverages gettext, using a single
translation mo-file.
c C s% | | _ t i t | ƒ ƒ | _ d S( N( t moFileR t _GettextTranslationDb__moFilet gettextt GNUTranslationst opent&