X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=po%2Flyx_pot.py;h=4e15b1f13971cdd6ac1034225d1443463d65ab43;hb=6bf8a0ade8bd804f634a14cd9cd2ac61e7d3a153;hp=173d29e8cac573bb5ba5da1856c79a7a2143ee81;hpb=a7c1d955c27695d00aadc5eaf4140c3d9bbdaefa;p=lyx.git
diff --git a/po/lyx_pot.py b/po/lyx_pot.py
index 173d29e8ca..4e15b1f139 100755
--- a/po/lyx_pot.py
+++ b/po/lyx_pot.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
# -*- coding: utf-8 -*-
# file lyx_pot.py
@@ -18,7 +18,7 @@
#
from __future__ import print_function
-import sys, os, re, getopt
+import glob, sys, os, re, getopt
import io
def relativePath(path, base):
@@ -445,8 +445,8 @@ def layouts_l10n(input_files, output, base, layouttranslations):
out.close()
-def qt4_l10n(input_files, output, base):
- '''Generate pot file from src/frontends/qt4/ui/*.ui'''
+def qt_l10n(input_files, output, base):
+ '''Generate pot file from src/frontends/qt/ui/*.ui'''
output = io.open(output, 'w', encoding='utf_8', newline='\n')
pat = re.compile(r'\s*(.*)')
prop = re.compile(r'\s*