-=[ Mr. Bumblebee ]=-
_Indonesia_
ó
î:ïNc @@ s d Z d d l m Z d d l Z d d l Z d d l m Z m Z m Z m
Z
m Z m Z d d l
m Z m Z d d l m Z d „ Z d „ Z d „ Z d
e f d „ ƒ YZ d e f d
„ ƒ YZ d „ Z d „ Z d „ Z d „ Z d d „ Z d „ Z d „ Z d e d „ Z! d S( s‡ Extract docstrings from Bazaar commands.
This module only handles bzrlib objects that use strings not directly wrapped
by a gettext() call. To generate a complete translation template file, this
output needs to be combined with that of xgettext or a similar command for
extracting those strings, as is done in the bzr Makefile. Sorting the output
is also left to that stage of the process.
i ( t absolute_importN( t commandst errorst help_topicst optiont plugint help( t muttert note( t gettextc C@ sF | j d d ƒ j d d ƒ j d d ƒ j d d ƒ j d d
ƒ } | S( Ns \s \\s
s \ns
s \rs s \tt "s \"( t replace( t s( ( s5 /usr/lib/python2.7/dist-packages/bzrlib/export_pot.pyt _escape1 s c C@ sŽ | j d ƒ } t | ƒ d k r8 d t | ƒ d } nR | d s^ | d =| d d | d <n t t | ƒ } d } d | j | ƒ d } | S( Ns
i R
iÿÿÿÿs \n"
"s ""
"( t splitt lenR
t mapt join( R t linest lineterm( ( s5 /usr/lib/python2.7/dist-packages/bzrlib/export_pot.pyt
_normalize: s
c C@ sŸ d d l } i } i } xz | j | j | ƒ ƒ D]` } t | | j ƒ r\ | j | | j <q1 t | | j ƒ r1 | j | j j d ƒ | | j <q1 q1 W| | f S( s4 Get object to lineno mappings from given source_texti Ns
(
t astt walkt parset
isinstancet ClassDeft linenot namet StrR t count( t source_textR t
cls_to_linenot
str_to_linenot node( ( s5 /usr/lib/python2.7/dist-packages/bzrlib/export_pot.pyt
_parse_sourceJ s 't _ModuleContextc B@ s>