|
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/share/xml2po/ |
Upload File : |
mò
v|ŸEc @ s d f d „ ƒ YZ d S( t gsXmlModec B sV t Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z
RS( s6 Abstract class for special handling of document types.c C s d d d d g S( s$ Returns array of tags to be ignored.t links bug-statss cvs-statst unixnameN( ( t self( ( t /usr/share/xml2po/gs.pyt getIgnoredTags s c C s d d d d g S( s/ Returns array of tags to be considered 'final'.t titlet parat namet descN( ( R ( ( R t getFinalTags s c C s g S( s: Returns array of tags in which spaces are to be preserved.N( ( R ( ( R t getSpacePreserveTags! s c C s d S( s5 Preprocess a document and perhaps adds some messages.N( ( R t doct msg( ( R t
preProcessXml% s c C s[ | i d j o | Sn | i } x3 | o+ | i | ƒ } | o | Sn | i } q$ Wd S( Nt salute( t nodeR t childrent childR t _find_salutet rett nextt None( R R R R ( ( R R ) s c C sf | | i ƒ j o d SnH | i | i ƒ ƒ } | o' | i d j o | i d d | ƒ n d Sd S( sÍ Sets a language and translators in "doc" tree.
"translators" is a string consisted of translator credits.
"language" is a simple string.
"doc" is a libxml2.xmlDoc instance.NR R (
t translatorsR t getStringForTranslatorsR R t getRootElementR R t newChildR ( R R t languageR R ( ( R t postProcessXmlTranslation4 s c C s d S( sb Returns None or a string to be added to PO files.
Common example is 'translator-credits'.s translator-creditsN( ( R ( ( R R E s c C s d S( s¢ Returns a comment to be added next to string for crediting translators.
It should explain the format of the string provided by getStringForTranslators().sh Translators: enter a short paragraph creditting yourself and others who helped you with the translation.N( ( R ( ( R t getCommentForTranslatorsK s ( t __name__t
__module__t __doc__R R
R R R R R R ( ( ( R R s N( R ( R ( ( R t ? s