comparison i18n/hggettext @ 29170:2516bba643e7

py3: make i18n/hggettext use absolute_import
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 13 May 2016 02:56:13 +0530
parents 80deae3bc5ea
children de28dedd1ff1
comparison
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