i18n/hggettext
changeset 29170 2516bba643e7
parent 12823 80deae3bc5ea
child 29171 de28dedd1ff1
equal deleted inserted replaced
29169:c9ab5a0bc7c5 29170:2516bba643e7
    18 
    18 
    19 Use xgettext like normal to extract strings marked as translatable and
    19 Use xgettext like normal to extract strings marked as translatable and
    20 join the message cataloges to get the final catalog.
    20 join the message cataloges to get the final catalog.
    21 """
    21 """
    22 
    22 
    23 import os, sys, inspect
    23 from __future__ import absolute_import
       
    24 
       
    25 import inspect
       
    26 import os
       
    27 import sys
    24 
    28 
    25 
    29 
    26 def escape(s):
    30 def escape(s):
    27     # The order is important, the backslash must be escaped first
    31     # The order is important, the backslash must be escaped first
    28     # since the other replacements introduce new backslashes
    32     # since the other replacements introduce new backslashes