在源码的main函数中,我设置codecfortr是GB2312,这个基本上没有问题。
我放置中文字符串的源码文件是被保存成GB2312格式的(也就是ANSI)。如果我手动将其存成带BOM的utf-8格式,lupdate还是无法转出来。。。
以下为输出:
D:\work\UniKey\UniKey STD-PRO-Time\Console\标准\Console_V2.0>LUPDATE CONSOLE.PRO
D:/qt473/mkspecs/features/default_post.prf(5):Function 'system' is not implement
ed
D:/qt473/mkspecs/features/debug_and_release.prf(66):Function 'eval' is not imple
mented
D:/qt473/mkspecs/features/debug_and_release.prf(69):Function 'eval' is not imple
mented
D:/qt473/mkspecs/features/debug_and_release.prf(72):Function 'eval' is not imple
mented
D:/qt473/mkspecs/features/debug_and_release.prf(75):Function 'eval' is not imple
mented
D:/qt473/mkspecs/features/debug_and_release.prf(78):Function 'eval' is not imple
mented
D:/qt473/mkspecs/features/debug_and_release.prf(80):Function 'eval' is not imple
mented
D:/qt473/mkspecs/features/debug_and_release.prf(82):Function 'eval' is not imple
mented
D:/qt473/mkspecs/features/debug_and_release.prf(84):Function 'eval' is not imple
mented
D:/qt473/src/corelib/tools/qstringbuilder.h:45: circular inclusion of d:/qt473/i
nclude/QtCore/qstring.h
D:/qt473/src/gui/painting/qwmatrix.h:45: circular inclusion of d:/qt473/include/
QtGui/qmatrix.h
d:/qt473/include/QtGui/qaction.h:1: circular inclusion of D:/qt473/src/gui/kerne
l/qaction.h
D:/qt473/src/gui/kernel/qboxlayout.h:45: circular inclusion of d:/qt473/include/
QtGui/qlayout.h
d:/qt473/include/QtGui/qgridlayout.h:1: circular inclusion of D:/qt473/src/gui/k
ernel/qgridlayout.h
Updating 'trans_EN.ts'...
Found 605 source text(s) (0 new and 605 already existing)
Updating 'trans_CH.ts'...
Found 605 source text(s) (0 new and 605 already existing)
Updating 'trans_FR.ts'...
Found 605 source text(s) (0 new and 605 already existing)
Updating 'trans_JP.ts'...
Found 605 source text(s) (0 new and 605 already existing)
打开TS文件显示内容: