qooxdoo-compiler icon indicating copy to clipboard operation
qooxdoo-compiler copied to clipboard

Translation files are not generated

Open alexvinidiktov opened this issue 4 years ago • 3 comments

Steps to reproduce

  1. Create a minimal app.
  2. 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!"));

  1. 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.

alexvinidiktov avatar Mar 03 '20 15:03 alexvinidiktov

verified with latest compiler with node 12 on centos 7

level420 avatar Mar 03 '20 18:03 level420

you have to use qx compile .u to produce po files.

see qx compile --help

hkollmann avatar Mar 05 '20 20:03 hkollmann

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.

derrell avatar Mar 05 '20 20:03 derrell