diff --git a/static_gettext.py b/static_gettext.py index 69d1e7e..756d99c 100755 --- a/static_gettext.py +++ b/static_gettext.py @@ -104,7 +104,7 @@ def xgettext( self, file, locale ): potfile = self.potpath( locale ) msgs, errors = _popen( Localizer.XGETTEXT_CMD, src.encode( 'utf-8' ) ) - msgs = re.sub( r'#: standard input:(\d+)', r'#: %s:\1' % file, msgs ) + msgs = re.sub( r'#: .+?:(\d+)', r'#: %s:\1' % file, msgs ) if os.path.exists( potfile ): msgs = '\n'.join( dropwhile( len, msgs.split( '\n' ) ) ) else: