darktable-org / dtdocs

darktable user manual
GNU General Public License v3.0
74 stars 74 forks source link

Unable to generate translations with latest po4a #563

Closed elstoc closed 10 months ago

elstoc commented 1 year ago

With latest version of po4a (v0.69) on ArchLinux, if I run ./generate-translations.sh --no-translations from the tools directory, it fails with the following output:

/usr/bin/vendor_perl/po4a
Generating the POT and PO files.
Updating po/content.pot:Unknown format type: text.
po4a::chooser: Module loading error: Can't locate Syntax/Keyword/Try.pm in @INC (you may need to install the Syntax::Keyword::Try module) (@INC contains: /usr/lib/perl5/5.36/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.36/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.36/core_perl /usr/share/perl5/core_perl) at /usr/share/perl5/vendor_perl/Locale/Po4a/Text.pm line 61.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Locale/Po4a/Text.pm line 61.
Compilation failed in require at (eval 36) line 1.
BEGIN failed--compilation aborted at (eval 36) line 1.

List of valid formats:
  - asciidoc: AsciiDoc format.
  - dia: uncompressed Dia diagrams.
  - docbook: DocBook XML.
  - guide: Gentoo Linux's XML documentation format.
  - ini: INI format.
  - kernelhelp: Help messages of each kernel compilation option.
  - latex: LaTeX format.
  - man: Good old manual page format.
  - pod: Perl Online Documentation format.
  - rubydoc: Ruby Documentation (RD) format.
  - sgml: either DebianDoc or DocBook DTD.
  - texinfo: The info page format.
  - tex: generic TeX documents (see also latex).
  - text: simple text document.
  - wml: WML documents.
  - xhtml: XHTML documents.
  - xml: generic XML documents (see also docbook).
  - yaml: YAML documents.

Works fine on v0.63

github-actions[bot] commented 1 year ago

This issue has not had any activity in the past 60 days and will be closed in 365 days if not updated.

elstoc commented 10 months ago

Looks like it was a missing perl module on ArchLinux (perl-syntax-keyword-try)