Commit graph

9 commits

Author SHA1 Message Date
Martin Pitt
b0878999de Fix po2json usage help
The output file is an option, not a positional argument.

`opts.args` is undefined if there are no positional arguments, so that
just calling `po/po2json` crashed with

    TypeError: Cannot read property 'length' of undefined
2020-12-26 08:08:46 +01:00
Martin Pitt
42abfc4cef Fix po2json default option arguments
Similarly to commit cbedf06704, provide default values, so that
`po2json po/de.po` does not error out with

    Option "--module" requires 1 arguments, but 0 were provided
2020-12-26 08:05:15 +01:00
Martin Pitt
48a58cad8c po: Add Language: header value to German translations 2020-12-26 07:51:25 +01:00
Martin Pitt
cbedf06704 Fix building PO template
The current version failed with

    Option "--directory" requires 1 arguments, but 0 were provided

In the current stdio npm module version, getopt() now requires a
`default:` attribute, otherwise it considers the options as required.

Also sync PO helpers with current cockpit.

Add PO template build to travis check, to make sure that it keeps
working.

Closes #375
2020-09-29 13:50:31 +03:00
Matej Marusak
d9a67b1f86 manifest2po: Parse also documentation
Closes #275
2020-02-03 11:48:38 +01:00
Matej Marusak
ec85d30d0f manifest2po: Parse also keywords 2020-02-03 11:48:38 +01:00
Martin Pitt
9fa5c6ab05 Properly initialize state of Application
This will otherwise crash with React 16.
2018-08-29 00:40:16 +02:00
Martin Pitt
47e02ef136 Add i18n for HTML and manifest 2018-06-19 18:09:57 +02:00
Martin Pitt
7ce7b2b40b Add i18n support
Make the "Running on.." string translatable and copy the extraction and
conversion of JSX and PO files from Cockpit.
2018-06-19 14:40:45 +02:00