Merge PR #221: Fix generating translation stubs
This commit is contained in:
commit
65aa05bb48
@ -67,7 +67,7 @@ HEADERS += $$OUT_PWD/plugininfo.h
|
|||||||
TRANSLATIONS *= $$files($${_PRO_FILE_PWD_}/translations/*ts, true)
|
TRANSLATIONS *= $$files($${_PRO_FILE_PWD_}/translations/*ts, true)
|
||||||
lupdate.depends = FORCE
|
lupdate.depends = FORCE
|
||||||
lupdate.depends += qmake_all
|
lupdate.depends += qmake_all
|
||||||
lupdate.commands = nymea-plugininfocompiler $${JSONFILE} --translation $${_PRO_FILE_PWD_}/translations/; \
|
lupdate.commands = nymea-plugininfocompiler $${JSONFILE} --translations $${_PRO_FILE_PWD_}/translations/; \
|
||||||
lupdate -recursive -no-obsolete $${_PRO_FILE_PWD_}/"$$TARGET".pro;
|
lupdate -recursive -no-obsolete $${_PRO_FILE_PWD_}/"$$TARGET".pro;
|
||||||
QMAKE_EXTRA_TARGETS += lupdate
|
QMAKE_EXTRA_TARGETS += lupdate
|
||||||
|
|
||||||
|
|||||||
@ -36,7 +36,7 @@ int main(int argc, char *argv[])
|
|||||||
parser.addHelpOption();
|
parser.addHelpOption();
|
||||||
parser.addOption({{"o", "output"}, "Write generated output header to <file>.", "file"});
|
parser.addOption({{"o", "output"}, "Write generated output header to <file>.", "file"});
|
||||||
parser.addOption({{"e", "extern"}, "Write generated output header (extern definitions) to <file>.", "file"});
|
parser.addOption({{"e", "extern"}, "Write generated output header (extern definitions) to <file>.", "file"});
|
||||||
parser.addOption({{"t", "translations"}, "Write generated output header (extern definitions) to <directory>.", "directory"});
|
parser.addOption({{"t", "translations"}, "Write generated translations file stub to <directory>.", "directory"});
|
||||||
parser.addPositionalArgument("input", "The input json file");
|
parser.addPositionalArgument("input", "The input json file");
|
||||||
|
|
||||||
parser.process(a);
|
parser.process(a);
|
||||||
|
|||||||
Reference in New Issue
Block a user