qooxdoo-compiler
qooxdoo-compiler copied to clipboard
Translation files are not generated
Steps to reproduce
- Create a minimal app.
- Wrap the strings in this.tr().
var button1 = new qx.ui.form.Button(this.tr("Click me"), "app8/test.png"); alert(this.tr("Hello World!"));
- Compile the app.
Expected result: ru.po and en.po files are generated inside the source/translations folder.
Actual result: The source/translations folder is empty.
Tested with qx compiler 1.0.0-beta.20200228-1557, nodeJS v12.12.0 on macOS 10.15.
verified with latest compiler with node 12 on centos 7
you have to use qx compile .u to produce po files.
see qx compile --help
As discussed, this isn't an adequate solution. Strings are added, deleted, and changed all the time. The compiler should regenerate the .po files. Also as discussed, though, the .po files have line numbers that should not be disturbed (or should be elided, as a non-standards-compliant option by the user) so as to not incur massive changes to .po files when code was added or deleted but the strings didn't change.